diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-11-11 11:47:06 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-11-11 11:47:06 -0500 |
commit | 3a81a5210b7d33bb6d836b4c4952a54166a336f3 (patch) | |
tree | 2aaf3a8773715709df30ae6acf9a5a8a61214929 /kernel/trace/trace.h | |
parent | 6fc84ea70eae478099c866ace022ecfdef998032 (diff) |
tracing: Add rcu annotation for syscall trace descriptors
sparse complains about the enter/exit_sysycall_files[] variables being
dereferenced with rcu_dereference_sched(). The fields need to be
annotated with __rcu.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 11a04d6eaa23..7ca1993c33e4 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -192,8 +192,8 @@ struct trace_array { | |||
192 | #ifdef CONFIG_FTRACE_SYSCALLS | 192 | #ifdef CONFIG_FTRACE_SYSCALLS |
193 | int sys_refcount_enter; | 193 | int sys_refcount_enter; |
194 | int sys_refcount_exit; | 194 | int sys_refcount_exit; |
195 | struct ftrace_event_file *enter_syscall_files[NR_syscalls]; | 195 | struct ftrace_event_file __rcu *enter_syscall_files[NR_syscalls]; |
196 | struct ftrace_event_file *exit_syscall_files[NR_syscalls]; | 196 | struct ftrace_event_file __rcu *exit_syscall_files[NR_syscalls]; |
197 | #endif | 197 | #endif |
198 | int stop_count; | 198 | int stop_count; |
199 | int clock_id; | 199 | int clock_id; |