freebsd-skq/sys/sparc64
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
..
compile
conf Sync with other arches; add bloat. 2002-03-23 16:55:37 +00:00
ebus Make the OpenFirmware interrupt mapping code more generic, to reduce 2002-03-24 02:11:06 +00:00
include Compromise for critical*()/cpu_critical*() recommit. Cleanup the interrupt 2002-03-27 05:39:23 +00:00
isa Make the OpenFirmware interrupt mapping code more generic, to reduce 2002-03-24 02:11:06 +00:00
pci Revamp the busdma implementation a bit: 2002-03-24 02:50:53 +00:00
sbus Revamp the busdma implementation a bit: 2002-03-24 02:50:53 +00:00
sparc64 ktr changes to improve performance and make writing a userland utility to 2002-04-01 05:35:26 +00:00