HomeFreeBSD

hwpmc_logging: less macro magic for type names

Description

hwpmc_logging: less macro magic for type names

Provide the log type names in their entirely, rather than relying on the
macro to prepend the prefix. This improves their searchability; for
example, if I see PMCLOG_TYPE_PMCALLOCATE in libpmc I will now be able
to find where that is emitted in the kernel with a simple grep.

Reviewed by: jkoshy, emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39911

(cherry picked from commit 3a7c9fc01bdae13edbd5724745b748e6a61065eb)

Details

Provenance
mhorneAuthored on May 5 2023, 9:59 PM
Reviewer
jkoshy
Differential Revision
D39911: hwpmc_logging: less macro magic for type names
Parents
rG67239b0a33b2: hwpmc: don't use deprecated copystr(9)
Branches
Unknown
Tags
Unknown