ftrace: introduce tracing_reset_online_cpus() helper
[deliverable/linux.git] / kernel / trace / trace.c
index 0eb6d48347f7671f382130bbdb1cf0633831388f..79db26e8216e48c95fbf0b8262675b38d077ecb9 100644 (file)
@@ -679,6 +679,16 @@ void tracing_reset(struct trace_array *tr, int cpu)
        ftrace_enable_cpu();
 }
 
+void tracing_reset_online_cpus(struct trace_array *tr)
+{
+       int cpu;
+
+       tr->time_start = ftrace_now(tr->cpu);
+
+       for_each_online_cpu(cpu)
+               tracing_reset(tr, cpu);
+}
+
 #define SAVED_CMDLINES 128
 static unsigned map_pid_to_cmdline[PID_MAX_DEFAULT+1];
 static unsigned map_cmdline_to_pid[SAVED_CMDLINES];
This page took 0.033704 seconds and 5 git commands to generate.