diff options
Diffstat (limited to 'kernel/trace/trace_hw_branches.c')
| -rw-r--r-- | kernel/trace/trace_hw_branches.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/kernel/trace/trace_hw_branches.c b/kernel/trace/trace_hw_branches.c index ee29e012aa97..b6a3e20a49a9 100644 --- a/kernel/trace/trace_hw_branches.c +++ b/kernel/trace/trace_hw_branches.c | |||
| @@ -25,16 +25,6 @@ static DEFINE_PER_CPU(unsigned char[SIZEOF_BTS], buffer); | |||
| 25 | #define this_buffer per_cpu(buffer, smp_processor_id()) | 25 | #define this_buffer per_cpu(buffer, smp_processor_id()) |
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | static void bts_trace_reset(struct trace_array *tr) | ||
| 29 | { | ||
| 30 | int cpu; | ||
| 31 | |||
| 32 | tr->time_start = ftrace_now(tr->cpu); | ||
| 33 | |||
| 34 | for_each_online_cpu(cpu) | ||
| 35 | tracing_reset(tr, cpu); | ||
| 36 | } | ||
| 37 | |||
| 38 | static void bts_trace_start_cpu(void *arg) | 28 | static void bts_trace_start_cpu(void *arg) |
| 39 | { | 29 | { |
| 40 | if (this_tracer) | 30 | if (this_tracer) |
| @@ -54,7 +44,7 @@ static void bts_trace_start(struct trace_array *tr) | |||
| 54 | { | 44 | { |
| 55 | int cpu; | 45 | int cpu; |
| 56 | 46 | ||
| 57 | bts_trace_reset(tr); | 47 | tracing_reset_online_cpus(tr); |
| 58 | 48 | ||
| 59 | for_each_cpu_mask(cpu, cpu_possible_map) | 49 | for_each_cpu_mask(cpu, cpu_possible_map) |
| 60 | smp_call_function_single(cpu, bts_trace_start_cpu, NULL, 1); | 50 | smp_call_function_single(cpu, bts_trace_start_cpu, NULL, 1); |
| @@ -78,7 +68,7 @@ static void bts_trace_stop(struct trace_array *tr) | |||
| 78 | 68 | ||
| 79 | static int bts_trace_init(struct trace_array *tr) | 69 | static int bts_trace_init(struct trace_array *tr) |
| 80 | { | 70 | { |
| 81 | bts_trace_reset(tr); | 71 | tracing_reset_online_cpus(tr); |
| 82 | bts_trace_start(tr); | 72 | bts_trace_start(tr); |
| 83 | 73 | ||
| 84 | return 0; | 74 | return 0; |
