git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftrace: introduce tracing_reset_online_cpus() helper
[safe/jmp/linux-2.6]
/
kernel
/
trace
/
trace_sysprof.c
diff --git
a/kernel/trace/trace_sysprof.c
b/kernel/trace/trace_sysprof.c
index
54960ed
..
01becf1
100644
(file)
--- a/
kernel/trace/trace_sysprof.c
+++ b/
kernel/trace/trace_sysprof.c
@@
-234,20
+234,10
@@
static void stop_stack_timers(void)
stop_stack_timer(cpu);
}
stop_stack_timer(cpu);
}
-static void stack_reset(struct trace_array *tr)
-{
- int cpu;
-
- tr->time_start = ftrace_now(tr->cpu);
-
- for_each_online_cpu(cpu)
- tracing_reset(tr, cpu);
-}
-
static void start_stack_trace(struct trace_array *tr)
{
mutex_lock(&sample_timer_lock);
static void start_stack_trace(struct trace_array *tr)
{
mutex_lock(&sample_timer_lock);
-
stack_reset
(tr);
+
tracing_reset_online_cpus
(tr);
start_stack_timers();
tracer_enabled = 1;
mutex_unlock(&sample_timer_lock);
start_stack_timers();
tracer_enabled = 1;
mutex_unlock(&sample_timer_lock);