diff options
author | Sukadev Bhattiprolu <[email protected]> | 2015-09-03 20:07:50 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-09-13 11:27:28 +0200 |
commit | 7d88962e230c8342080e7e2fe9dd5be43dc13b79 (patch) | |
tree | 6a74bd3eff85ef018877b85de360f0ede033db7c /tools/perf/util/trace-event-scripting.c | |
parent | fa8c269353d560b7c28119ad7617029f92e40b15 (diff) |
perf/core: Add return value for perf_event_read()
When we implement the ability to read several counters at once (using
the PERF_PMU_TXN_READ transaction interface), perf_event_read() can
fail when the 'group' parameter is true (eg: trying to read too many
events at once).
For now, have perf_event_read() return an integer. Ignore the return
value when the 'group' parameter is false.
Signed-off-by: Sukadev Bhattiprolu <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions