perf ilist: Don't display deprecated events

Unsupported legacy events are flagged as deprecated. Don't display
these events in ilist as they won't open and there are over 1,000
legacy cache events.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
Ian Rogers
2025-10-19 11:59:43 +09:00
committed by Namhyung Kim
parent ad1a008bf0
commit a3ef39eb97
+2
View File
@@ -439,6 +439,8 @@ class IListApp(App):
pmu_node = pmus.add(pmu_name)
try:
for event in sorted(pmu.events(), key=lambda x: x["name"]):
if "deprecated" in event:
continue
if "name" in event:
e = event["name"].lower()
if "alias" in event: