aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-04-27 21:04:24 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-04-27 21:04:24 -0400
commit37e44bc50d91df1fe7edcf6f02fe168c6d802e64 (patch)
tree40058a2b27e94400dc4345ba13b334fb732ae532 /include/linux/ftrace.h
parenttracing: Show sample std dev in function profiling (diff)
downloadlinux-dev-37e44bc50d91df1fe7edcf6f02fe168c6d802e64.tar.xz
linux-dev-37e44bc50d91df1fe7edcf6f02fe168c6d802e64.zip
tracing: Fix sleep time function profiling
When sleep_time is off the function profiler ignores the time that a task is scheduled out. When the task is scheduled out a timestamp is taken. When the task is scheduled back in, the timestamp is compared to the current time and the saved calltimes are adjusted accordingly. But when stopping the function profiler, the sched switch hook that does this adjustment was stopped before shutting down the tracer. This allowed some tasks to not get their timestamps set when they scheduled out. When the function profiler started again, this would skew the times of the scheduler functions. This patch moves the stopping of the sched switch to after the function profiler is stopped. It also ignores zero set calltimes, which may happen on start up. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
0 files changed, 0 insertions, 0 deletions