]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 272315 272757 274091 274902
authorsbruno <sbruno@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Feb 2015 19:06:22 +0000 (19:06 +0000)
committersbruno <sbruno@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Feb 2015 19:06:22 +0000 (19:06 +0000)
commit358c2fffb35b3e9d17273837c6ab96931afce375
tree60a85cd1dd03dd3670daa0c7084a200bec287310
parent3a531af41ce1e1fe43eda4c703cee4429dbfb2fe
MFC 272315 272757 274091 274902

for real this time

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@278694 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