diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-07 23:11:32 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-07 23:11:32 +0000 |
commit | ab85f615594d29298c8047225622a1e35dabe4fa (patch) | |
tree | cff98fa09441a16f9e67be698d090db0b2da1636 /sys/sys/ktr.h | |
parent | e9b8703c85231f8a66ce85044ca4a9bd918d43fd (diff) | |
download | FreeBSD-src-ab85f615594d29298c8047225622a1e35dabe4fa.zip FreeBSD-src-ab85f615594d29298c8047225622a1e35dabe4fa.tar.gz |
Add basic critical section tracing to KTR using event type KTR_CRITICAL.
This generates a KTR event for each critical section entered and exited.
It would be desirable to also log the filename and line number of the
source entering or exiting the critical section, but this requires
hacking up the critical section API, so I've not done that yet.
Diffstat (limited to 'sys/sys/ktr.h')
-rw-r--r-- | sys/sys/ktr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/ktr.h b/sys/sys/ktr.h index d76e33c..9ac8f5a 100644 --- a/sys/sys/ktr.h +++ b/sys/sys/ktr.h @@ -76,7 +76,8 @@ #define KTR_CALLOUT 0x02000000 /* Callouts and timeouts */ #define KTR_GEOM 0x04000000 /* GEOM I/O events */ #define KTR_BUSDMA 0x08000000 /* busdma(9) events */ -#define KTR_ALL 0x0fffffff +#define KTR_CRITICAL 0010000000 /* Critical sections */ +#define KTR_ALL 0x1fffffff /* * Trace classes which can be assigned to particular use at compile time |