]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Use normal error reporting when processing PERF_RECORD_READ events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Oct 2016 21:23:11 +0000 (18:23 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:44 +0000 (11:07 -0300)
commit36b69a40665837cc7dc24fecfa0835200cd9e7ce
treecda5f4c4311a99fd28db7722bd562e7e1f93e7d5
parentaae4460f2c1ee2fbd7e71110cea97f3e70dc43c1
perf tools: Use normal error reporting when processing PERF_RECORD_READ events

We already have handling for errors when processing PERF_RECORD_ events,
so instead of calling die() when not being able to alloc, propagate the
error, so that the normal UI exit sequence can take place, the user be
warned and possibly the terminal be properly reset to a sane mode.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Brice Goglin <Brice.Goglin@inria.fr>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-r90je3c009a125dvs3525yge@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/values.c
tools/perf/util/values.h