diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-10-14 18:23:11 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-10-24 11:07:44 -0300 |
commit | 899735066a8d945b7ae56a34847298fd0dd2104b (patch) | |
tree | cda5f4c4311a99fd28db7722bd562e7e1f93e7d5 /tools/perf/util/values.h | |
parent | e7b32d12a287a79f2831c1246baf3de0aed95dcc (diff) | |
download | talos-op-linux-899735066a8d945b7ae56a34847298fd0dd2104b.tar.gz talos-op-linux-899735066a8d945b7ae56a34847298fd0dd2104b.zip |
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>
Diffstat (limited to 'tools/perf/util/values.h')
-rw-r--r-- | tools/perf/util/values.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/values.h b/tools/perf/util/values.h index b21a80c6cf8d..808ff9c73bf5 100644 --- a/tools/perf/util/values.h +++ b/tools/perf/util/values.h @@ -14,10 +14,10 @@ struct perf_read_values { u64 **value; }; -void perf_read_values_init(struct perf_read_values *values); +int perf_read_values_init(struct perf_read_values *values); void perf_read_values_destroy(struct perf_read_values *values); -void perf_read_values_add_value(struct perf_read_values *values, +int perf_read_values_add_value(struct perf_read_values *values, u32 pid, u32 tid, u64 rawid, const char *name, u64 value); |