On Fri, 11 Oct 2024 11:56:04 +0000 Konstantin Ananyev <konstantin.anan...@huawei.com> wrote:
> > + * > > + * @return > > + * 0 in case of success, negative value otherwise. > > + */ > > +__rte_experimental > > +int > > +rte_pmu_init(void); > > + > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this API may change without prior notice > > + * > > + * Finalize PMU library. This should be called after PMU counters are no > > longer being read. > > + */ > > +__rte_experimental > > +void > > +rte_pmu_fini(void); > > Hmm..., why _fini_() is allowed to be called directly while _init_() doesn't? Is this handled by destructor, called from rte_eal_cleanup() and/or testpmd?