diff options
author | jhb <jhb@FreeBSD.org> | 2012-04-05 17:13:14 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-04-05 17:13:14 +0000 |
commit | 5829de48d948e74cb77c117659140afff0ee33b3 (patch) | |
tree | c9ac7a271fa3242d8c2cd110bfe596a577e6f5f0 /usr.bin/ktrace/subr.c | |
parent | 1bdacb70cf554a29338ec17d997277abfc6f57e1 (diff) | |
download | FreeBSD-src-5829de48d948e74cb77c117659140afff0ee33b3.zip FreeBSD-src-5829de48d948e74cb77c117659140afff0ee33b3.tar.gz |
Add new ktrace records for the start and end of VM faults. This gives
a pair of records similar to syscall entry and return that a user can
use to determine how long page faults take. The new ktrace records are
enabled via the 'p' trace type, and are enabled in the default set of
trace points.
Reviewed by: kib
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/ktrace/subr.c')
-rw-r--r-- | usr.bin/ktrace/subr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c index 5051de8..eacd44c 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -64,6 +64,9 @@ getpoints(char *s) case 'i': facs |= KTRFAC_GENIO; break; + case 'f': + facs |= KTRFAC_FAULT | KTRFAC_FAULTEND; + break; case 'n': facs |= KTRFAC_NAMEI; break; |