> From: Tomasz Duszynski [mailto:tduszyn...@marvell.com] > Sent: Friday, 20 January 2023 00.39 > > Add support for programming PMU counters and reading their values > in runtime bypassing kernel completely. > > This is especially useful in cases where CPU cores are isolated > (nohz_full) i.e run dedicated tasks. In such cases one cannot use > standard perf utility without sacrificing latency and performance. > > Signed-off-by: Tomasz Duszynski <tduszyn...@marvell.com> > ---
If you insist on passing lcore_id around as a function parameter, the function description must mention that the lcore_id parameter must be set to rte_lcore_id() for the functions where this is a requirement, including all functions that use those functions. Alternatively, follow my previous suggestion: Omit the lcore_id function parameter, and use rte_lcore_id() instead.