diff options
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_events.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 78b1ed23017..97e2c4d2e9e 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1432,7 +1432,7 @@ static __init void event_trace_self_tests(void) | |||
1432 | 1432 | ||
1433 | #ifdef CONFIG_FUNCTION_TRACER | 1433 | #ifdef CONFIG_FUNCTION_TRACER |
1434 | 1434 | ||
1435 | static DEFINE_PER_CPU(atomic_t, test_event_disable); | 1435 | static DEFINE_PER_CPU(atomic_t, ftrace_test_event_disable); |
1436 | 1436 | ||
1437 | static void | 1437 | static void |
1438 | function_test_events_call(unsigned long ip, unsigned long parent_ip) | 1438 | function_test_events_call(unsigned long ip, unsigned long parent_ip) |
@@ -1449,7 +1449,7 @@ function_test_events_call(unsigned long ip, unsigned long parent_ip) | |||
1449 | pc = preempt_count(); | 1449 | pc = preempt_count(); |
1450 | resched = ftrace_preempt_disable(); | 1450 | resched = ftrace_preempt_disable(); |
1451 | cpu = raw_smp_processor_id(); | 1451 | cpu = raw_smp_processor_id(); |
1452 | disabled = atomic_inc_return(&per_cpu(test_event_disable, cpu)); | 1452 | disabled = atomic_inc_return(&per_cpu(ftrace_test_event_disable, cpu)); |
1453 | 1453 | ||
1454 | if (disabled != 1) | 1454 | if (disabled != 1) |
1455 | goto out; | 1455 | goto out; |
@@ -1468,7 +1468,7 @@ function_test_events_call(unsigned long ip, unsigned long parent_ip) | |||
1468 | trace_nowake_buffer_unlock_commit(buffer, event, flags, pc); | 1468 | trace_nowake_buffer_unlock_commit(buffer, event, flags, pc); |
1469 | 1469 | ||
1470 | out: | 1470 | out: |
1471 | atomic_dec(&per_cpu(test_event_disable, cpu)); | 1471 | atomic_dec(&per_cpu(ftrace_test_event_disable, cpu)); |
1472 | ftrace_preempt_enable(resched); | 1472 | ftrace_preempt_enable(resched); |
1473 | } | 1473 | } |
1474 | 1474 | ||