perf tools: Fix one of the probe events to exclude kernel
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 12 Aug 2014 15:04:29 +0000 (18:04 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Aug 2014 19:20:33 +0000 (16:20 -0300)
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 <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1407855871-15024-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/record.c

index fe8079e..58267a8 100644 (file)
@@ -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;