[PATCH v10 02/10] lib/pmu: fix build error if ALLOW_EXPERIMENAL_API is undefined

Tomasz Duszynski tduszynski at marvell.com
Fri Aug 1 12:21:01 CEST 2025


Workaround that quiesces chincs check should be "turned-ff" not to cause
build failures in scenarios where experimental apis are disallowed.

Fixes: 960c43184c4d ("pmu: introduce library for reading PMU events")

Signed-off-by: Tomasz Duszynski <tduszynski at marvell.com>
---
 lib/pmu/pmu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/pmu/pmu.c b/lib/pmu/pmu.c
index 4c7271522a..d9bc775bf9 100644
--- a/lib/pmu/pmu.c
+++ b/lib/pmu/pmu.c
@@ -291,6 +291,10 @@ cleanup_events(struct rte_pmu_event_group *group)
 	group->enabled = false;
 }
 
+/* stop propagating chkincs quiescing to prevent unintended effects */
+#ifdef __rte_pmu_enable_group
+#undef __rte_pmu_enable_group
+#endif
 RTE_EXPORT_EXPERIMENTAL_SYMBOL(__rte_pmu_enable_group, 25.07)
 int
 __rte_pmu_enable_group(struct rte_pmu_event_group *group)
-- 
2.34.1



More information about the dev mailing list