]> asedeno.scripts.mit.edu Git - linux.git/commit
perf tools: Add perf_evsel__read_size function
authorJiri Olsa <jolsa@kernel.org>
Wed, 26 Jul 2017 12:02:04 +0000 (14:02 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Jul 2017 17:20:28 +0000 (14:20 -0300)
commitde63403bfd14ae8d613f30c9a0d415581b4cb37e
tree2c4f35b85bf526a276e13dc6e042400d55974d54
parentee438ec8f33c5af0d4a4ffb935c5b9272e8c2680
perf tools: Add perf_evsel__read_size function

Currently we use the size of struct perf_counts_values to read the
event, which prevents us to put any new member to the struct.

Adding perf_evsel__read_size to return size of the buffer needed for
event read.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20170726120206.9099-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c