perf: Rework event forwarding logic
Status from this message: The following commit has been merged into the perf/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 26 repliesApplied
- v33 patches 6 repliesSuperseded
Changes in v4 from the cover letter
- Split pmu linear searching changes into a separate patch with few additional changes.
- Use special pointer value (void *)(~0) instead of introducing new variable to skip creating sysfs/dev files.
- Move AMD IBS unit test under tools/perf/arch/x86/tests/
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | perf/core: Rework forwarding of {task|cpu}-clock eventsinclude/ kernel/ | +51 | 4 replies | |
| 2/4 | perf/ibs: Fix interface via core pmu eventsarch/ arch/ arch/ | +29 | 0 replies | |
| 3/4 | perf/core: Remove pmu linear searching codekernel/ | +13 | 19 replies | |
| 4/4 | perf test: Add selftest to test IBS invocation via core pmu eventstools/ tools/ tools/ +1 more | +75 | 3 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by.
| Patch | Nathan Chancellor |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | T-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] perf: Rework event forwarding logic
Usually, events are opened on the same pmu as requested by user via perf_event_attr->type argument. But certain special events are internally redirected to different pmu. Currently such pmus needs to be treated specially and thus requires some gruesome hacks.
An approach, suggested by Peter Zijlstra, to get rid of these hacks was to overwrite event attributes with new pmu's attribute values within the kernel and let perf_event_init() retry opening the event with overwritten values. This patch series implements it.
v3: https://lore.kernel.org/r/[email protected]v3->v4:
- Split pmu linear searching changes into a separate patch with few additional changes.
- Use special pointer value (void *)(~0) instead of introducing new variable to skip creating sysfs/dev files.
- Move AMD IBS unit test under tools/perf/arch/x86/tests/
Patches are prepared on v6.3.
Ravi Bangoria (4):
perf/core: Rework forwarding of {task|cpu}-clock events perf/ibs: Fix interface via core pmu events
perf/core: Remove pmu linear searching code
perf test: Add selftest to test IBS invocation via core pmu events
arch/x86/events/amd/core.c | 2 +- arch/x86/events/amd/ibs.c | 53 ++++---- arch/x86/include/asm/perf_event.h | 2 + include/linux/perf_event.h | 10 ++ kernel/events/core.c | 114 +++++++++--------- tools/perf/arch/x86/include/arch-tests.h | 1 + tools/perf/arch/x86/tests/Build | 1 + .../arch/x86/tests/amd-ibs-via-core-pmu.c | 71 +++++++++++ tools/perf/arch/x86/tests/arch-tests.c | 2 + 9 files changed, 168 insertions(+), 88 deletions(-) create mode 100644 tools/perf/arch/x86/tests/amd-ibs-via-core-pmu.c
Signature · 1 line
2.40.0