diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-06-17 21:02:07 +0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-19 05:31:28 +0400 |
commit | 421c7860c6e1989da3962fafdd6699316c9f8e20 (patch) | |
tree | a3247de06867de070ae709bcdca412e0a7900d62 /kernel/trace/trace_uprobe.c | |
parent | b8ebfd3f7113b63dda93d76bfec638c00e6bd514 (diff) | |
download | linux-421c7860c6e1989da3962fafdd6699316c9f8e20.tar.xz |
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 'kernel/trace/trace_uprobe.c')
0 files changed, 0 insertions, 0 deletions