Prefer sysfs/JSON over legacy events

Description

This will allow you to specify the PMU name on the command line, and will fix any issues in the future where the legacy event is different to the PMU’s own event but has the same name.

This will also make riscv work better because they may not have legacy events.

See:

Regression thread:
https://lkml.org/lkml/2023/11/21/547

Ignore warnings thread:
https://lore.kernel.org/lkml/f30f676e-a1d7-4d6b-94c1-3bdbd1448887@arm.com/

Linus, fix not fully working thread (same as above):
https://lore.kernel.org/lkml/20240525152927.665498-1-irogers@google.com/

Original regression:
https://lore.kernel.org/lkml/CAHk-=wiWvtFyedDNpoV7a8Fq_FpbB+F5KmWK2xPY3QoYseOf_A@mail.gmail.com/

Activity

Show:

James Clark October 25, 2024 at 9:34 AM

Not sure if this is strictly required for risc-V anymore so putting in backlog

Details

Assignee

Priority

Checklist

Sentry

Created August 15, 2024 at 9:43 AM
Updated November 18, 2024 at 11:30 AM