-
Notifications
You must be signed in to change notification settings - Fork 10
Commit 6f51544
committed
perf/core: Add a 'flags' parameter to the PMU transactional interfaces
jira LE-1907
Rebuild_History Non-Buildable kernel-3.10.0-514.el7
commit-author Sukadev Bhattiprolu <[email protected]>
commit fbbe070
Empty-Commit: Cherry-Pick Conflicts during history rebuild.
Will be included in final tarball splat. Ref for failed cherry-pick at:
ciq/ciq_backports/kernel-3.10.0-514.el7/fbbe0701.failed
Currently, the PMU interface allows reading only one counter at a time.
But some PMUs like the 24x7 counters in Power, support reading several
counters at once. To leveage this functionality, extend the transaction
interface to support a "transaction type".
The first type, PERF_PMU_TXN_ADD, refers to the existing transactions,
i.e. used to _schedule_ all the events on the PMU as a group. A second
transaction type, PERF_PMU_TXN_READ, will be used in a follow-on patch,
by the 24x7 counters to read several counters at once.
Extend the transaction interfaces to the PMU to accept a 'txn_flags'
parameter and use this parameter to ignore any transactions that are
not of type PERF_PMU_TXN_ADD.
Thanks to Peter Zijlstra for his input.
Signed-off-by: Sukadev Bhattiprolu <[email protected]>
[peterz: s390 compile fix]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Michael Ellerman <[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: 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]>
(cherry picked from commit fbbe070)
Signed-off-by: Jonathan Maple <[email protected]>
# Conflicts:
# arch/powerpc/perf/core-book3s.c
# arch/s390/kernel/perf_cpum_cf.c
# arch/sparc/kernel/perf_event.c1 parent 474fcd6 commit 6f51544Copy full SHA for 6f51544
File tree
Expand file treeCollapse file tree
1 file changed
+456
-0
lines changedOpen diff view settings
Filter options
- ciq/ciq_backports/kernel-3.10.0-514.el7
Expand file treeCollapse file tree
1 file changed
+456
-0
lines changedOpen diff view settings
0 commit comments