diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-01-24 10:22:49 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-01-24 10:22:49 +0000 |
commit | aaaff3620bd78568076acb0874f8d89e7e1a348f (patch) | |
tree | a06debcfcfe8da7484226ed820d7b5fc2996196e /sys/security | |
parent | 855f844ab0842191f1bd8baf7f493344bd4af8ea (diff) | |
download | FreeBSD-src-aaaff3620bd78568076acb0874f8d89e7e1a348f.zip FreeBSD-src-aaaff3620bd78568076acb0874f8d89e7e1a348f.tar.gz |
Add explicit static DTrace tracing to the callout mechanism, capturing
pointers to the callout handler just before and just after the callout
it invoked. I attempted to do this in a manner congruent to tracing in
Solaris's callout mechanism, but couldn't quite use the same names due
to convention and syntax differences.
Example DTrace script to generate a distribution graph of callout
execution times:
callout_execute:::callout_start
{
self->cstart = timestamp;
}
callout_execute:::callout_end
{
@length = quantize(timestamp - self->cstart);
}
Reviewed by: jb
MFC after: 3 days
Diffstat (limited to 'sys/security')
0 files changed, 0 insertions, 0 deletions