aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-09-10 19:09:23 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-09-10 19:09:23 -0400
commit8f8ffe2485bcaa890800681451d380779cea06af (patch)
tree1d2ef3a27f1cab9a2b9014f4b75886a96a1ae8db /kernel/trace/trace_events.c
parent70069577323e6f72b845166724f34b9858134437 (diff)
parentd28daf923ac5e4a0d7cecebae56f3e339189366b (diff)
Merge commit 'tracing/core' into tracing/kprobes
Conflicts: kernel/trace/trace_export.c kernel/trace/trace_kprobe.c Merge reason: This topic branch lacks an important build fix in tracing/core: 0dd7b74787eaf7858c6c573353a83c3e2766e674: tracing: Fix double CPP substitution in TRACE_EVENT_FN that prevents from multiple tracepoint headers inclusion crashes. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 197cdaa96c43..ba3492076ab2 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -1485,6 +1485,7 @@ static void
1485function_test_events_call(unsigned long ip, unsigned long parent_ip) 1485function_test_events_call(unsigned long ip, unsigned long parent_ip)
1486{ 1486{
1487 struct ring_buffer_event *event; 1487 struct ring_buffer_event *event;
1488 struct ring_buffer *buffer;
1488 struct ftrace_entry *entry; 1489 struct ftrace_entry *entry;
1489 unsigned long flags; 1490 unsigned long flags;
1490 long disabled; 1491 long disabled;
@@ -1502,7 +1503,8 @@ function_test_events_call(unsigned long ip, unsigned long parent_ip)
1502 1503
1503 local_save_flags(flags); 1504 local_save_flags(flags);
1504 1505
1505 event = trace_current_buffer_lock_reserve(TRACE_FN, sizeof(*entry), 1506 event = trace_current_buffer_lock_reserve(&buffer,
1507 TRACE_FN, sizeof(*entry),
1506 flags, pc); 1508 flags, pc);
1507 if (!event) 1509 if (!event)
1508 goto out; 1510 goto out;
@@ -1510,7 +1512,7 @@ function_test_events_call(unsigned long ip, unsigned long parent_ip)
1510 entry->ip = ip; 1512 entry->ip = ip;
1511 entry->parent_ip = parent_ip; 1513 entry->parent_ip = parent_ip;
1512 1514
1513 trace_nowake_buffer_unlock_commit(event, flags, pc); 1515 trace_nowake_buffer_unlock_commit(buffer, event, flags, pc);
1514 1516
1515 out: 1517 out:
1516 atomic_dec(&per_cpu(test_event_disable, cpu)); 1518 atomic_dec(&per_cpu(test_event_disable, cpu));