From: Adrian Hunter Date: Tue, 12 Aug 2014 15:04:29 +0000 (+0300) Subject: perf tools: Fix one of the probe events to exclude kernel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6fa35659c5fae5f9aeb6874b177baeb2adbc02e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf tools: Fix one of the probe events to exclude kernel When probing the kernel API the kernel should be excluded otherwise the probe will fail for users with insufficient privilege to profile the kernel. Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa Acked-by: Namhyung Kim Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1407855871-15024-3-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/record.c b/tools/perf/util/record.c index fe8079edbdc1..58267a85705f 100644 --- a/tools/perf/util/record.c +++ b/tools/perf/util/record.c @@ -47,7 +47,7 @@ out_delete: static bool perf_probe_api(setup_probe_fn_t fn) { - const char *try[] = {"cycles:u", "instructions:u", "cpu-clock", NULL}; + const char *try[] = {"cycles:u", "instructions:u", "cpu-clock:u", NULL}; struct cpu_map *cpus; int cpu, ret, i = 0;