[PATCH v14 1/4] lib: add generic support for reading PMU events
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 11 16:19:04 CEST 2024
On Fri, 11 Oct 2024 11:56:04 +0000
Konstantin Ananyev <konstantin.ananyev at 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?
More information about the dev
mailing list