perf evsel: Introduce perf_evsel__open_strerror method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 13 Dec 2012 18:10:58 +0000 (15:10 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jan 2013 19:40:09 +0000 (16:40 -0300)
commit56e52e85366717481cde16b3480f015c7eb32ba3
tree5e68bd51510915b6da7db8e0fdcc5fc766dd6b6a
parentc0a54341c0e89333ef201fc3f3001176962f6121
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>
tools/perf/builtin-record.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/ui/util.c
tools/perf/util/debug.h
tools/perf/util/evsel.c
tools/perf/util/evsel.h