diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-12-13 13:10:58 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-24 14:40:09 -0500 |
commit | 56e52e85366717481cde16b3480f015c7eb32ba3 (patch) | |
tree | 5e68bd51510915b6da7db8e0fdcc5fc766dd6b6a /tools/perf/ui/util.c | |
parent | c0a54341c0e89333ef201fc3f3001176962f6121 (diff) |
perf evsel: Introduce perf_evsel__open_strerror method
That consolidates the error messages in 'record', 'stat' and 'top', that
now get a consistent set of messages and allow other tools to use the
new method to report problems using whatever UI toolkit.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
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/n/tip-1cudb7wl996kz7ilz83ctvhr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/util.c')
-rw-r--r-- | tools/perf/ui/util.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/perf/ui/util.c b/tools/perf/ui/util.c index 3014a7cd5271..e3e0a963d03a 100644 --- a/tools/perf/ui/util.c +++ b/tools/perf/ui/util.c | |||
@@ -52,17 +52,6 @@ int ui__warning(const char *format, ...) | |||
52 | return ret; | 52 | return ret; |
53 | } | 53 | } |
54 | 54 | ||
55 | int ui__error_paranoid(void) | ||
56 | { | ||
57 | return ui__error("Permission error - are you root?\n" | ||
58 | "Consider tweaking /proc/sys/kernel/perf_event_paranoid:\n" | ||
59 | " -1 - Not paranoid at all\n" | ||
60 | " 0 - Disallow raw tracepoint access for unpriv\n" | ||
61 | " 1 - Disallow cpu events for unpriv\n" | ||
62 | " 2 - Disallow kernel profiling for unpriv\n"); | ||
63 | } | ||
64 | |||
65 | |||
66 | /** | 55 | /** |
67 | * perf_error__register - Register error logging functions | 56 | * perf_error__register - Register error logging functions |
68 | * @eops: The pointer to error logging function struct | 57 | * @eops: The pointer to error logging function struct |