summaryrefslogtreecommitdiffstats
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
authorLi Zefan2009-06-01 09:35:13 +0200
committerSteven Rostedt2009-06-02 05:24:53 +0200
commita9c1c3abe1160a5632e48c929b02b740556bf423 (patch)
tree07d2313c9b8c637e6532e61efe034dba5a697231 /include/trace/ftrace.h
parenttracing/events: fix a typo in __string() format output (diff)
downloadkernel-qcow2-linux-a9c1c3abe1160a5632e48c929b02b740556bf423.tar.gz
kernel-qcow2-linux-a9c1c3abe1160a5632e48c929b02b740556bf423.tar.xz
kernel-qcow2-linux-a9c1c3abe1160a5632e48c929b02b740556bf423.zip
tracing/events: put TP_fast_assign into braces
Currently TP_fast_assign has a limitation that we can't define local variables in it. Here's one use case when we introduce __dynamic_array(): TP_fast_assign( type *p = __get_dynamic_array(item); foo(p); bar(p); ), [ Impact: allow defining local variables in TP_fast_assign ] Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> LKML-Reference: <4A2384B1.90100@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r--include/trace/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 9276ec4f34de..ee9268222448 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -471,7 +471,7 @@ static void ftrace_raw_event_##call(proto) \
return; \
entry = ring_buffer_event_data(event); \
\
- assign; \
+ { assign; } \
\
if (!filter_current_check_discard(event_call, entry, event)) \
trace_nowake_buffer_unlock_commit(event, irq_flags, pc); \