freebsd-dev/sys
Jake Burkholder 60a57b73ef ktr changes to improve performance and make writing a userland utility to
dump the trace buffer feasible.
- Remove KTR_EXTEND.  This changes the format of the trace entries when
  activated, making writing a userland tool which is not tied to a specific
  kernel configuration difficult.
- Use get_cyclecount() for timestamps.  nanotime() is much too heavy weight
  and requires recursion protection due to ktr traces occuring as a result
  of ktr traces.  KTR_VERBOSE may still require recursion protection, which
  is now conditional on it.
- Allow KTR_CPU to be overridden by MD code.  This is so that it is possible
  to trace early in startup before pcpu and/or curthread are setup.
- Add a version number for the ktr interface.  A userland tool can check this
  to detect mismatches.
- Use an array for the parameters to make decoding in userland easier.
- Add file and line recording to the non-extended traces now that the extended
  version is no more.

These changes will break gdb macros to decode the extended version of the
trace buffer which are floating around.  Users of these macros should either
use the show ktr command in ddb, or use the userland utility which can be run
on a core dump.

Approved by:	jhb
Tested on:	i386, sparc64
2002-04-01 05:35:26 +00:00
..
alpha Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
amd64 Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
arm Guard against redefining __gnuc_va_list. 2002-03-24 11:25:46 +00:00
boot Only install the help file if we can find it. Use ${BASE}.help 2002-03-31 20:48:13 +00:00
cam Fix an indentation problem. 2002-04-01 03:59:47 +00:00
coda Remove __P. 2002-03-20 05:00:21 +00:00
compat Protect proc struct (p_args and p_comm) when doing procfs IO that pulls 2002-03-29 19:12:40 +00:00
conf ktr changes to improve performance and make writing a userland utility to 2002-04-01 05:35:26 +00:00
contrib We don't need ip_ipsec_pxy.c in userland. 2002-03-26 13:42:09 +00:00
crypto Remove __P. 2002-03-20 05:14:42 +00:00
ddb Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-23 11:53:03 +00:00
dev Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
fs In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
geom Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
gnu In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
i4b Add support for Q.931 subaddresses. 2002-03-26 15:13:54 +00:00
i386 Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
ia64 Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
isa Compromise for critical*()/cpu_critical*() recommit. Cleanup the interrupt 2002-03-27 05:39:23 +00:00
isofs/cd9660 In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
kern ktr changes to improve performance and make writing a userland utility to 2002-04-01 05:35:26 +00:00
libkern Remove 'register' keyword. 2002-03-21 18:49:23 +00:00
modules Fix kernel build. 2002-03-25 08:02:54 +00:00
net - Merge the pdq driver (if_fpa and if_fea) from NetBSD. 2002-03-29 11:22:22 +00:00
netatalk Remove __P. 2002-03-20 02:39:27 +00:00
netatm Remove __P. 2002-03-20 08:00:54 +00:00
netgraph Fix bugs where the ng_ppp node could transmit PPP frames whose length 2002-03-15 02:31:14 +00:00
netinet Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-24 10:19:10 +00:00
netinet6 Fix cached route problem. 2002-03-29 15:42:44 +00:00
netipx Remove __P. 2002-03-20 02:39:27 +00:00
netkey Remove __P. 2002-03-20 02:39:27 +00:00
netnatm Remove __P. 2002-03-20 02:39:27 +00:00
netncp
netns Remove __P. 2002-03-20 02:39:27 +00:00
netsmb Missed this file for select SMP fixes associated with rev 1.93 of 2002-03-14 05:16:18 +00:00
nfs Remove unused include. 2002-03-20 10:12:07 +00:00
nfsclient Remove references to vm_zone.h and switch over to the new uma API. 2002-03-20 10:07:52 +00:00
nfsserver Remove references to vm_zone.h and switch over to the new uma API. 2002-03-20 10:07:52 +00:00
pc98 MFi386: revision 1.508. 2002-03-31 08:00:35 +00:00
pccard Better power code and better power diagnostics 2002-03-20 19:02:08 +00:00
pci smbus_alloc_bus is not part of the smbus interface anymore 2002-03-23 18:27:16 +00:00
posix4 Remove __P. 2002-03-19 22:20:14 +00:00
powerpc Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
rpc
security/lomac DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
sparc64 ktr changes to improve performance and make writing a userland utility to 2002-04-01 05:35:26 +00:00
svr4
sys ktr changes to improve performance and make writing a userland utility to 2002-04-01 05:35:26 +00:00
tools Return vnode_if back to its AWK roots. 2002-03-01 01:20:23 +00:00
ufs In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
vm Add a new mtx_init option "MTX_DUPOK" which allows duplicate acquires of locks 2002-03-27 09:23:41 +00:00
Makefile