HomeFreeBSD

libpmc: make libpmc_pmu_utils.c more amenable to porting

Description

libpmc: make libpmc_pmu_utils.c more amenable to porting

The current version has every function stubbed out for !x86. Only two
functions (pmu_alias_get() and pmc_pmu_pmcallocate() are really platform
dependent, so reduce the width of the ifdefs and remove some of the
stubs.

Reviewed by: ray
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30532

(cherry picked from commit 0024f1aa7720d5f4f587a6c5911fc5238195ae49)

Details

Provenance
mhorneAuthored on May 31 2021, 2:24 PM
Reviewer
ray
Differential Revision
D30532: libpmc: make libpmc_pmu_utils.c more amenable to porting
Parents
rG6911f3988766: libpmc: limit pmu-events to 64-bit powerpc
Branches
Unknown
Tags
Unknown