Decode kevent structures logged via ktrace(2) in kdump.- Add a new KTR_STRUCT_ARRAY ktrace record type which dumps an array of structures. The structure name in the record payload is preceded
Decode kevent structures logged via ktrace(2) in kdump.- Add a new KTR_STRUCT_ARRAY ktrace record type which dumps an array of structures. The structure name in the record payload is preceded by a size_t containing the size of the individual structures. Use this to replace the previous code that dumped the kevent arrays dumped for kevent(). kdump is now able to decode the kevent structures rather than dumping their contents via a hexdump. One change from before is that the 'changes' and 'events' arrays are not marked with separate 'read' and 'write' annotations in kdump output. Instead, the first array is the 'changes' array, and the second array (only present if kevent doesn't fail with an error) is the 'events' array. For kevent(), empty arrays are denoted by an entry with an array containing zero entries rather than no record.- Move kevent decoding tables from truss to libsysdecode. This adds three new functions to decode members of struct kevent: sysdecode_kevent_filter, sysdecode_kevent_flags, and sysdecode_kevent_fflags. kdump uses these helper functions to pretty-print kevent fields.- Move structure definitions for freebsd11 and freebsd32 kevent structures to <sys/event.h> so that they can be shared with userland. The 32-bit structures are only exposed if _WANT_KEVENT32 is defined. The freebsd11 structures are only exposed if _WANT_FREEBSD11_KEVENT is defined. The 32-bit freebsd11 structure requires both.- Decode freebsd11 kevent structures in truss for the compat11.kevent() system call.- Log 32-bit kevent structures via ktrace for 32-bit compat kevent() system calls.- While here, constify the 'void *data' argument to ktrstruct().Reviewed by: kib (earlier version)MFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D12470
show more ...
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Improve the ktrace(1) man page to make it slightly more obvious that thereare _two_ options that control its behaviour wrt child processes; slightlyimprove the example[1], and add Xrefs.Discussed
Improve the ktrace(1) man page to make it slightly more obvious that thereare _two_ options that control its behaviour wrt child processes; slightlyimprove the example[1], and add Xrefs.Discussed with: wblock [1]MFC after: 2 weeksSponsored by: DARPA, AFRL
Use more usual formatting for the EXAMPLES section of ktrace(1).MFC after: 2 weeksSponsored by: DARPA, AFRL
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Add a cross reference to ktrace(2).Obtained from: CheriBSD (9cb420d6b7f04c1b7d2006180b80932e5d3fe50e)MFC after: 1 weekSponsored by: DARPA, AFRL
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Make vfs.zfs.max_recordsize read-write at runtime.MFC after: 2 weeks
Updated dependencies
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
Don't trace or dump page fault records in the default set of tracepointsas they can be quite noisy.Requested by: Peter JeremyMFC after: 3 days
Add new ktrace records for the start and end of VM faults. This givesa pair of records similar to syscall entry and return that a user canuse to determine how long page faults take. The new ktrac
Add new ktrace records for the start and end of VM faults. This givesa pair of records similar to syscall entry and return that a user canuse to determine how long page faults take. The new ktrace records areenabled via the 'p' trace type, and are enabled in the default set oftrace points.Reviewed by: kibMFC after: 2 weeks
Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking theway in which it handles the -C, -c, -g and -p options.MFC after: 3 weeks
Add a new trace point, KTRFAC_CAPFAIL, which traces capability checkfailures. It is included in the default set for ktrace(1) and kdump(1).
Remove duplicated header files
Teach kdump to understand sv_flags records in the trace files.MFC after: 1 Month.
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $F
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $FreeBSD$ to a few files to keep svn happy.Discussed with: imp, rwatson
- Sort list of trace points.- Note that 'y' (sysctl requests) is in the default set of trace points.MFC after: 3 days
Build usr.bin/ with WARNS=6 by default.Also add some missing $FreeBSD$ to keep svn happy.
Revert most part of 200420 as requested, as more review and polish isneeded.
123