diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-08-12 11:04:29 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-13 15:20:33 -0400 |
commit | c6fa35659c5fae5f9aeb6874b177baeb2adbc02e (patch) | |
tree | 2dc03e3af81825f4df8048b9d087eb84f67fffef /tools/perf/util/record.c | |
parent | a5b0153c880c2775bf5bdd78306f0a47e860ea04 (diff) |
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 <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>
Diffstat (limited to 'tools/perf/util/record.c')
-rw-r--r-- | tools/perf/util/record.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
47 | 47 | ||
48 | static bool perf_probe_api(setup_probe_fn_t fn) | 48 | static bool perf_probe_api(setup_probe_fn_t fn) |
49 | { | 49 | { |
50 | const char *try[] = {"cycles:u", "instructions:u", "cpu-clock", NULL}; | 50 | const char *try[] = {"cycles:u", "instructions:u", "cpu-clock:u", NULL}; |
51 | struct cpu_map *cpus; | 51 | struct cpu_map *cpus; |
52 | int cpu, ret, i = 0; | 52 | int cpu, ret, i = 0; |
53 | 53 | ||