Page MenuHomeFreeBSD

libpmc: remove pe->alias
ClosedPublic

Authored by mhorne on May 28 2021, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 4, 8:00 PM
Unknown Object (File)
Mon, Sep 29, 4:08 PM
Unknown Object (File)
Mon, Sep 15, 11:13 AM
Unknown Object (File)
Mon, Sep 15, 7:01 AM
Unknown Object (File)
Sep 13 2025, 10:21 PM
Unknown Object (File)
Sep 1 2025, 12:55 AM
Unknown Object (File)
Aug 29 2025, 6:51 PM
Unknown Object (File)
Aug 5 2025, 8:38 AM
Subscribers

Details

Summary

It has never been a part of upstream's struct pmu_event. The jevents
utility will not fill this field, so remove it.

Diff Detail

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

Event Timeline

Linux (now?) has const char *compat; in this slot, is that equivalent?

Linux (now?) has const char *compat; in this slot, is that equivalent?

They seem to be different. The intent of the alias field was to allow events to have multiple names (I guess). The purpose of the compat field is to allow for mapping events to specific SoCs, rather than CPUs. How this is achieved is not obvious from the commit message, but the compat feature was added much more recently (2020).

This revision is now accepted and ready to land.May 28 2021, 7:10 PM
This revision was automatically updated to reflect the committed changes.