Page MenuHomeFreeBSD

hwpmc_logging: less macro magic for type names
ClosedPublic

Authored by mhorne on May 1 2023, 7:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 30, 6:06 PM
Unknown Object (File)
Sun, Jul 26, 12:22 AM
Unknown Object (File)
Fri, Jul 24, 1:24 PM
Unknown Object (File)
Wed, Jul 22, 10:13 AM
Unknown Object (File)
Sat, Jul 18, 2:20 PM
Unknown Object (File)
Sat, Jul 18, 3:12 AM
Unknown Object (File)
Fri, Jul 17, 9:47 PM
Unknown Object (File)
Wed, Jul 8, 9:16 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable