diff options
| author | Sukadev Bhattiprolu <[email protected]> | 2015-09-04 03:07:50 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-09-13 09:27:28 +0000 |
| commit | 7d88962e230c8342080e7e2fe9dd5be43dc13b79 (patch) | |
| tree | 6a74bd3eff85ef018877b85de360f0ede033db7c /tools/lib/api/fs/tracing_path.c | |
| parent | perf/core: Invert perf_read_group() loops (diff) | |
| download | kernel-7d88962e230c8342080e7e2fe9dd5be43dc13b79.tar.gz kernel-7d88962e230c8342080e7e2fe9dd5be43dc13b79.zip | |
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/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions
