diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-06-17 19:02:07 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-19 03:31:28 +0200 |
commit | 421c7860c6e1989da3962fafdd6699316c9f8e20 (patch) | |
tree | a3247de06867de070ae709bcdca412e0a7900d62 /drivers/hwmon/adt7470.c | |
parent | tracing/function: Avoid perf_trace_buf_*() if event_function.perf_events is e... (diff) | |
download | linux-421c7860c6e1989da3962fafdd6699316c9f8e20.tar.xz linux-421c7860c6e1989da3962fafdd6699316c9f8e20.zip |
tracing/syscall: Avoid perf_trace_buf_*() if sys_data->perf_events is empty
perf_trace_buf_prepare() + perf_trace_buf_submit(head, task => NULL)
make no sense if hlist_empty(head). Change perf_syscall_enter/exit()
to check sys_data->{enter,exit}_event->perf_events beforehand.
Link: http://lkml.kernel.org/r/20130617170207.GA19806@redhat.com
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/hwmon/adt7470.c')
0 files changed, 0 insertions, 0 deletions