Skip to content
Commit 515619f2 authored by Oleg Nesterov's avatar Oleg Nesterov
Browse files

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: default avatarOleg Nesterov <oleg@redhat.com>
parent 32520b2c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment