]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add schedgraph traces for callout handlers. Specifically, a callwheel logs
authorjhb <jhb@FreeBSD.org>
Wed, 8 Oct 2014 16:22:59 +0000 (16:22 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 8 Oct 2014 16:22:59 +0000 (16:22 +0000)
commit877e018654bd3c77b3f82408d06f1c8d9e750970
treea40db068054d270c945b3dd7c22058efb07f466f
parenta6a73044a009d2159c47f23783709d616ca6e259
Add schedgraph traces for callout handlers.  Specifically, a callwheel logs
a running event each time it executes a callout function.  The event
includes the function pointer, argument, and whether or not it was run from
hardware interrupt context.  The callwheel is marked idle when each handler
completes.  This effectively logs the duration of each callout routine in
the graph.
sys/kern/kern_timeout.c
tools/sched/schedgraph.py