Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   mrg
Date:           Thu Oct 29 00:27:08 UTC 2015

Modified Files:
        src/share/man/man4: options.4
        src/sys/kern: init_main.c kern_history.c kern_xxx.c
        src/sys/sys: kernhist.h systm.h

Log Message:
introduce a new way of handling SYSCALL_DEBUG messages -- send them to
a kernel history, settable via the SCDEBUG_KERNHIST flag.

this requires a fairly significantly different set of messages than the
normal debug as histories are restricted:
        - each message can take one literal format string and upto 4
          arguments
        - the arguments can not be strings if you want vmstat -u to
          work (this could be fixed, and i might, as it would be nice
          if we could print syscall names as well as numbers.)

introduce SCDEBUG_DEFAULT that is settable in the kernel config.

fix a problem in kernhist_dump_histories() where it would crash when a
history with no allocated entries was found.

extend kernhist_dumpmask() to handle the usbhist and scdebughist.


To generate a diff of this commit:
cvs rdiff -u -r1.449 -r1.450 src/share/man/man4/options.4
cvs rdiff -u -r1.471 -r1.472 src/sys/kern/init_main.c
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_history.c
cvs rdiff -u -r1.72 -r1.73 src/sys/kern/kern_xxx.c
cvs rdiff -u -r1.9 -r1.10 src/sys/sys/kernhist.h
cvs rdiff -u -r1.268 -r1.269 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index