mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
perf probe: Fix --del to show info instead of warning
Fix --del option to show info message instead of warning if failing to find specified event. Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Jim Keniston <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Frank Ch. Eigler <[email protected]> Cc: Jason Baron <[email protected]> Cc: K.Prasad <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Srikar Dronamraju <[email protected]> Cc: systemtap <[email protected]> Cc: DLE <[email protected]> Cc: Frederic Weisbecker <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
411edfe5c1
commit
f6bbff7725
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,7 @@ static void del_trace_kprobe_event(int fd, const char *group,
|
|||
if (e_snprintf(buf, 128, "%s:%s", group, event) < 0)
|
||||
die("Failed to copy event.");
|
||||
if (!strlist__has_entry(namelist, buf)) {
|
||||
pr_warning("Warning: event \"%s\" is not found.\n", buf);
|
||||
pr_info("Info: event \"%s\" does not exist, could not remove it.\n", buf);
|
||||
return;
|
||||
}
|
||||
/* Convert from perf-probe event to trace-kprobe event */
|
||||
|
|
|
|||
Loading…
Reference in a new issue