aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_irqsoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r--kernel/trace/trace_irqsoff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 9b52f9cf7a0d..5aa40ab72b57 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -121,7 +121,7 @@ static int func_prolog_dec(struct trace_array *tr,
121 if (!irqs_disabled_flags(*flags)) 121 if (!irqs_disabled_flags(*flags))
122 return 0; 122 return 0;
123 123
124 *data = per_cpu_ptr(tr->data, cpu); 124 *data = per_cpu_ptr(tr->trace_buffer.data, cpu);
125 disabled = atomic_inc_return(&(*data)->disabled); 125 disabled = atomic_inc_return(&(*data)->disabled);
126 126
127 if (likely(disabled == 1)) 127 if (likely(disabled == 1))
@@ -175,7 +175,7 @@ static int irqsoff_set_flag(u32 old_flags, u32 bit, int set)
175 per_cpu(tracing_cpu, cpu) = 0; 175 per_cpu(tracing_cpu, cpu) = 0;
176 176
177 tracing_max_latency = 0; 177 tracing_max_latency = 0;
178 tracing_reset_online_cpus(irqsoff_trace); 178 tracing_reset_online_cpus(&irqsoff_trace->trace_buffer);
179 179
180 return start_irqsoff_tracer(irqsoff_trace, set); 180 return start_irqsoff_tracer(irqsoff_trace, set);
181} 181}
@@ -380,7 +380,7 @@ start_critical_timing(unsigned long ip, unsigned long parent_ip)
380 if (per_cpu(tracing_cpu, cpu)) 380 if (per_cpu(tracing_cpu, cpu))
381 return; 381 return;
382 382
383 data = per_cpu_ptr(tr->data, cpu); 383 data = per_cpu_ptr(tr->trace_buffer.data, cpu);
384 384
385 if (unlikely(!data) || atomic_read(&data->disabled)) 385 if (unlikely(!data) || atomic_read(&data->disabled))
386 return; 386 return;
@@ -418,7 +418,7 @@ stop_critical_timing(unsigned long ip, unsigned long parent_ip)
418 if (!tracer_enabled) 418 if (!tracer_enabled)
419 return; 419 return;
420 420
421 data = per_cpu_ptr(tr->data, cpu); 421 data = per_cpu_ptr(tr->trace_buffer.data, cpu);
422 422
423 if (unlikely(!data) || 423 if (unlikely(!data) ||
424 !data->critical_start || atomic_read(&data->disabled)) 424 !data->critical_start || atomic_read(&data->disabled))
@@ -568,7 +568,7 @@ static void __irqsoff_tracer_init(struct trace_array *tr)
568 irqsoff_trace = tr; 568 irqsoff_trace = tr;
569 /* make sure that the tracer is visible */ 569 /* make sure that the tracer is visible */
570 smp_wmb(); 570 smp_wmb();
571 tracing_reset_online_cpus(tr); 571 tracing_reset_online_cpus(&tr->trace_buffer);
572 572
573 if (start_irqsoff_tracer(tr, is_graph())) 573 if (start_irqsoff_tracer(tr, is_graph()))
574 printk(KERN_ERR "failed to start irqsoff tracer\n"); 574 printk(KERN_ERR "failed to start irqsoff tracer\n");