[PATCH v2 0/6] lib/pmu: cleanups and trace integration
Tomasz Duszynski
tduszynski at marvell.com
Wed Jun 18 08:56:12 CEST 2025
This series does some cleanup and refactoring around the rc1 code like: trimming unused headers,
switching to callbacks for per-arch handling, and adding trace support. It also re-enables existing
base test to help catch reported issues on some architectures.
v2:
- explicitly check against NULL
- make pmu lib optional by checking if dpdk config has RTE_LIB_PMU
Tomasz Duszynski (6):
lib/pmu: quiesce rte_pmu_read deprecation warning in chkincs
lib/pmu: export only necessary arch headers
lib/pmu: reimplement per-arch ops as callbacks
lib/pmu: use build system defined RTE_LIB_PMU macro
test/pmu: enable fast test
trace: add PMU
MAINTAINERS | 1 +
app/test/test_pmu.c | 4 +-
app/test/test_trace_perf.c | 10 +++
doc/guides/prog_guide/profile_app.rst | 5 ++
doc/guides/prog_guide/trace_lib.rst | 31 ++++++++
doc/guides/rel_notes/release_25_07.rst | 2 +
lib/eal/common/eal_common_trace.c | 5 +-
lib/eal/common/eal_common_trace_pmu.c | 38 ++++++++++
lib/eal/common/eal_common_trace_points.c | 6 ++
lib/eal/common/eal_trace.h | 4 +
lib/eal/common/meson.build | 1 +
lib/eal/include/rte_eal_trace.h | 16 ++++
lib/eal/include/rte_trace_point.h | 7 ++
lib/eal/include/rte_trace_point_register.h | 2 +
lib/eal/meson.build | 3 +
lib/meson.build | 2 +-
lib/pmu/meson.build | 10 +--
lib/pmu/pmu.c | 86 +++++++++++++++++-----
lib/pmu/pmu_arm64.c | 19 +++--
lib/pmu/pmu_private.h | 43 +++++++++--
lib/pmu/rte_pmu.h | 31 +++++++-
21 files changed, 283 insertions(+), 43 deletions(-)
create mode 100644 lib/eal/common/eal_common_trace_pmu.c
--
2.34.1
More information about the dev
mailing list