diff options
| author | Sukadev Bhattiprolu <[email protected]> | 2015-09-04 03:07:46 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-09-13 09:27:25 +0000 |
| commit | 01add3eaf1b25e497b14ca210f3bfe5f5dd2b112 (patch) | |
| tree | 50f2e21629f3168525f82402e5477fea4ece6d8b /tools/lib/api/fs/tracing_path.c | |
| parent | perf/core: Add a 'flags' parameter to the PMU transactional interfaces (diff) | |
| download | kernel-01add3eaf1b25e497b14ca210f3bfe5f5dd2b112.tar.gz kernel-01add3eaf1b25e497b14ca210f3bfe5f5dd2b112.zip | |
perf/core: Split perf_event_read() and perf_event_count()
perf_event_read() does two things:
- call the PMU to read/update the counter value, and
- compute the total count of the event and its children
Not all callers need both. perf_event_reset() for instance needs the
first piece but doesn't need the second. Similarly, when we implement
the ability to read a group of events using the transaction interface,
we would need the two pieces done independently.
Break up perf_event_read() and have it just read/update the counter
and have the callers compute the total count if necessary.
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
