summaryrefslogtreecommitdiff
path: root/tools/perf/python/ilist.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-10-16 15:22:26 -0700
committerNamhyung Kim <namhyung@kernel.org>2025-10-19 11:59:43 +0900
commita3ef39eb975d4ba1bd1a29b7dcc4e76d6745b305 (patch)
treeb0dfaacb0f3c9dc85ac943baac8bb4b021330d77 /tools/perf/python/ilist.py
parentad1a008bf0d01747a84e0090ac3aa6aa44ff8f54 (diff)
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>
Diffstat (limited to 'tools/perf/python/ilist.py')
-rwxr-xr-xtools/perf/python/ilist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/python/ilist.py b/tools/perf/python/ilist.py
index 9d6465c60df3..69005a88872e 100755
--- a/tools/perf/python/ilist.py
+++ b/tools/perf/python/ilist.py
@@ -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: