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>
Showing
- tools/perf/builtin-record.c 6 additions, 48 deletionstools/perf/builtin-record.c
- tools/perf/builtin-stat.c 5 additions, 11 deletionstools/perf/builtin-stat.c
- tools/perf/builtin-top.c 5 additions, 29 deletionstools/perf/builtin-top.c
- tools/perf/ui/util.c 0 additions, 11 deletionstools/perf/ui/util.c
- tools/perf/util/debug.h 0 additions, 1 deletiontools/perf/util/debug.h
- tools/perf/util/evsel.c 49 additions, 0 deletionstools/perf/util/evsel.c
- tools/perf/util/evsel.h 3 additions, 0 deletionstools/perf/util/evsel.h
Loading
Please register or sign in to comment