diff options
author | jhb <jhb@FreeBSD.org> | 2009-03-11 21:48:36 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-03-11 21:48:36 +0000 |
commit | 2548f05c6c8be3fe53f4191e634699bb4fa4c56b (patch) | |
tree | 48083c4fab749cb8da99377a83f7d470672d4c2c /usr.bin/ktrace/subr.c | |
parent | de74558fd8fae07358ec61b9001d0a7590bb9d22 (diff) | |
download | FreeBSD-src-2548f05c6c8be3fe53f4191e634699bb4fa4c56b.zip FreeBSD-src-2548f05c6c8be3fe53f4191e634699bb4fa4c56b.tar.gz |
Add a new type of KTRACE record for sysctl(3) invocations. It uses the
internal sysctl_sysctl_name() handler to map the MIB array to a string
name and logs this name in the trace log. This can be useful to see
exactly which sysctls a thread is invoking.
MFC after: 1 month
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 cfc4f3a..a9d3f64 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -83,6 +83,9 @@ getpoints(char *s) case 'w': facs |= KTRFAC_CSW; break; + case 'y': + facs |= KTRFAC_SYSCTL; + break; case '+': facs |= DEF_POINTS; break; |