]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 272315 272757 274091 274902
authorsbruno <sbruno@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Feb 2015 00:29:57 +0000 (00:29 +0000)
committersbruno <sbruno@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Feb 2015 00:29:57 +0000 (00:29 +0000)
commit369141d387422e11f85e60cc0a0630e5ea0bdf37
treed0eec84147dc302e2a17fd024c99ad62a4bd538b
parent455130ff8e44be484a3d4b2a8d038ead3ed6c63f
MFC 272315 272757 274091 274902

r272315
Explicitly return None for negative event indices.  Prior to this,
eventat(-1) would return the next-to-last event causing the back button
to cycle back to the end of an event source instead of stopping at the
start.

r272757
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.

r274091
Bind Ctrl-Q as a global hotkey to exit.  Bind Ctrl-W as a hotkey to close
dialogs.

r274902
Add a new thread state "spinning" to schedgraph and add tracepoints at the
start and stop of spinning waits in lock primitives.

Reviewed by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/10@278650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_lock.c
sys/kern/kern_mutex.c
sys/kern/kern_rwlock.c
sys/kern/kern_sx.c
sys/kern/kern_timeout.c
tools/sched/schedgraph.py
usr.bin/man/man.sh