From: Masami Hiramatsu Date: Tue, 15 Dec 2009 15:31:42 +0000 (-0500) Subject: perf probe: Fix --del to show info instead of warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6bbff77252cf12c82d480eaf6d9189129d1040a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Jim Keniston Cc: Ananth N Mavinakayanahalli Cc: Christoph Hellwig Cc: Frank Ch. Eigler Cc: Jason Baron Cc: K.Prasad Cc: Peter Zijlstra Cc: Srikar Dronamraju Cc: systemtap Cc: DLE Cc: Frederic Weisbecker LKML-Reference: <20091215153142.17436.7793.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 1653a62a478e..1eacee6eca4b 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -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 */