perf: Adding better precise_ip field handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 30 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | perf x86: Add precise sysfs cpu pmu attributearch/ | +25 | 0 replies | |
| 2/9 | perf tools: Add precise object to interface sysfs precisetools/ tools/ tools/ | +48 | 2 replies | |
| 3/9 | perf tests: Add precise event automated testtools/ tools/ tools/ +1 more | +55 | 0 replies | |
| 4/9 | perf tools: Add a precise event qualifiertools/ tools/ tools/ | +8 | 2 replies | |
| 5/9 | perf tools: Set maximum precise value for event 'p' modifiertools/ | +38 | 4 replies | |
| 6/9 | perf tools: Set maximum precise value for 'precise' termtools/ tools/ tools/ | +29 | 0 replies | |
| 7/9 | perf tests: Add automated precise term testtools/ | +161 | 0 replies | |
| 8/9 | perf: Document the ABI for 'precise' sysfs attributeDocumentation/ | +10 | 1 reply | |
| 9/9 | perf: Document the ABI for 'rdpmc' sysfs attributeDocumentation/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] perf: Adding better precise_ip field handling
hi,
adding sysfs attribute to specify the maximum allowed value for perf_event_attr::precise_ip field.
Adding functionality for simple 'p' modifier and 'precise' term to get the maximum allowed value for perf_event_attr::precise_ip field.
Following events:
-e 'cycles:p'
-e 'cpu/cycles,precise/'
get maximum allowed value for perf_event_attr::precise_ip field.
Following event:
-e 'cycles:pp'
-e 'cpu/cycles,precise=2/'
get perf_event_attr::precise_ip == 2.
If precise is disabled completely (sysfs precise == 0), we display warning and continue with standard non-PEBS event.
If precise attribute is not supported '1' is used as current default.
Adding automated test to test precise event could be properly created (if sysfs precise is supported). And customizing parsing tests with precise modifier.
Updating Documentation/ABI with 'precise' attribute and also forgotten 'rdpmc' attribute.
thanks,
jirka
---
Andi Kleen (1):
perf tools: Add a precise event qualifier
Jiri Olsa (8):
perf x86: Add precise sysfs cpu pmu attribute perf tools: Add precise object to interface sysfs precise perf tests: Add precise event automated test
perf tools: Set maximum precise value for event 'p' modifier perf tools: Set maximum precise value for 'precise' term perf tests: Add automated precise term test
perf: Document the ABI for 'precise' sysfs attribute
perf: Document the ABI for 'rdpmc' sysfs attribute
Documentation/ABI/testing/sysfs-bus-event_source-devices-cpu-precise | 10 ++++ Documentation/ABI/testing/sysfs-bus-event_source-devices-cpu-rdpmc | 8 +++ arch/x86/kernel/cpu/perf_event.c | 34 +++++++++---- tools/perf/Makefile | 2 + tools/perf/tests/builtin-test.c | 4 ++ tools/perf/tests/parse-events.c | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- tools/perf/tests/precise.c | 49 ++++++++++++++++++ tools/perf/tests/tests.h | 1 + tools/perf/util/parse-events.c | 69 ++++++++++++++++++++++++- tools/perf/util/parse-events.h | 3 ++ tools/perf/util/parse-events.l | 1 + tools/perf/util/parse-events.y | 2 +- tools/perf/util/precise.c | 44 ++++++++++++++++ tools/perf/util/util.h | 3 ++ 14 files changed, 379 insertions(+), 21 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-cpu-precise create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-cpu-rdpmc create mode 100644 tools/perf/tests/precise.c create mode 100644 tools/perf/util/precise.c