diff options
author | 2013-04-13 15:36:49 +0200 | |
---|---|---|
committer | 2013-04-15 17:39:52 +0200 | |
commit | 515619f209114697fabd21eed1623bfa69746815 (patch) | |
tree | 84655a5404fb290f8492f3f953f9e61007f7c3e2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | uprobes/tracing: Don't pass addr=ip to perf_trace_buf_submit() (diff) | |
download | linux-dev-515619f209114697fabd21eed1623bfa69746815.tar.xz linux-dev-515619f209114697fabd21eed1623bfa69746815.zip |
uprobes/perf: Avoid perf_trace_buf_prepare/submit if ->perf_events is empty
perf_trace_buf_prepare() + perf_trace_buf_submit() make no sense
if this task/CPU has no active counters. Change uprobe_perf_print()
to return if hlist_empty(call->perf_events).
Note: this is not uprobe-specific, we can change other users too.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions