Skip to content

perf: Adding better precise_ip field handling

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf x86: Add precise sysfs cpu pmu attributearch/x86/kernel/cpu/perf_event.c+25 -90 replies
2/9perf tools: Add precise object to interface sysfs precisetools/perf/Makefile tools/perf/util/precise.c tools/perf/util/util.h+48 -00 replies
3/9perf tests: Add precise event automated testtools/perf/Makefile tools/perf/tests/builtin-test.c tools/perf/tests/precise.c +1 more+58 -00 replies
4/9perf tools: Add a precise event qualifiertools/perf/util/parse-events.c tools/perf/util/parse-events.h tools/perf/util/parse-events.l+8 -00 replies
5/9perf tools: Read maximal precise value for 'precise' termtools/perf/util/parse-events.c tools/perf/util/parse-events.h tools/perf/util/parse-events.y+29 -40 replies
6/9perf tools: Favor 'p' modifier before 'precise' term properlytools/perf/util/parse-events.c+8 -10 replies
7/9perf tests: Add automated precise term testtools/perf/tests/parse-events.c+75 -00 replies
8/9perf: Document the ABI for 'precise' sysfs attributeDocumentation/ABI/testing/sysfs-bus-event_source-devices-cpu-precise+10 -00 replies
9/9perf: Document the ABI for 'rdpmc' sysfs attributeDocumentation/ABI/testing/sysfs-bus-event_source-devices-cpu-rdpmc+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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 'precise' term to get the maximum allowed value for perf_event_attr::precise_ip field.

And finally adding several precise automated tests.

thanks,
jirka

Cc Corey Ashford <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Andi Kleen <[email protected]>
Cc David Ahern <[email protected]>

---
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: Read maximal precise value for 'precise' term perf tools: Favor 'p' modifier before 'precise' term properly 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-cpu-precise | 10 ++++++++++
 Documentation/ABI/testing/sysfs-bus-event_source-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                              | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/tests/precise.c                                   | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/tests/tests.h                                     |  1 +
 tools/perf/util/parse-events.c                               | 38 +++++++++++++++++++++++++++++++++++-
 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                                    | 45 +++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/util.h                                       |  2 ++
 14 files changed, 266 insertions(+), 11 deletions(-)