diff options
author | David Ahern <dsahern@gmail.com> | 2013-05-25 19:54:00 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-05-28 09:24:03 -0400 |
commit | b69e63a45f2d96a0dfe930ed20385058d4574d2f (patch) | |
tree | c3c2e0dba51a08008e75a4044778a9187d070a95 /tools/perf/util/evsel.c | |
parent | ffcbaa1490ab0efcb7bff684f9abd04b91e34221 (diff) |
perf evsel: Fix printing of perf_event_paranoid message
message is currently shown as:
Error:
You may not have permission to collect %sstats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
Note the %sstats. With patch this becomes:
Error:
You may not have permission to collect stats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1369526040-1368-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 07b1a3ad3e24..63b6f8c8edf2 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -1514,7 +1514,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, | |||
1514 | switch (err) { | 1514 | switch (err) { |
1515 | case EPERM: | 1515 | case EPERM: |
1516 | case EACCES: | 1516 | case EACCES: |
1517 | return scnprintf(msg, size, "%s", | 1517 | return scnprintf(msg, size, |
1518 | "You may not have permission to collect %sstats.\n" | 1518 | "You may not have permission to collect %sstats.\n" |
1519 | "Consider tweaking /proc/sys/kernel/perf_event_paranoid:\n" | 1519 | "Consider tweaking /proc/sys/kernel/perf_event_paranoid:\n" |
1520 | " -1 - Not paranoid at all\n" | 1520 | " -1 - Not paranoid at all\n" |