diff options
author | Robert Richter <[email protected]> | 2012-09-12 12:59:44 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-10-05 13:57:47 +0200 |
commit | 2e132b12f78d88672711ae1d87624951de1089ca (patch) | |
tree | bfbfa9b51e5e01ef9ad599816de2bb8915a2b10f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | c942ee2e62dff1a7bc6f809965e93e46808d554c (diff) |
perf/AMD/IBS: Add sysfs support
Add sysfs format entries for AMD IBS PMUs:
# find /sys/bus/event_source/devices/ibs_*/format
/sys/bus/event_source/devices/ibs_fetch/format
/sys/bus/event_source/devices/ibs_fetch/format/rand_en
/sys/bus/event_source/devices/ibs_op/format
/sys/bus/event_source/devices/ibs_op/format/cnt_ctl
This allows to specify following IBS options:
$ perf record -e ibs_fetch/rand_en=1/GH ...
$ perf record -e ibs_op/cnt_ctl=1/GH ...
Option cnt_ctl is only enabled if the IBS_CAPS_OPCNT bit is set in IBS
cpuid feature flags (AMD family 10h RevC and above).
Signed-off-by: Robert Richter <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Added small readability improvements. ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions