]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf ilist: Don't display deprecated events
authorIan Rogers <irogers@google.com>
Thu, 16 Oct 2025 22:22:26 +0000 (15:22 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Sun, 19 Oct 2025 02:59:43 +0000 (11:59 +0900)
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>
tools/perf/python/ilist.py

index 9d6465c60df31654c43efc3b96c62e8eba546718..69005a88872e99d3343f9c400f69b7a9a1ab2f25 100755 (executable)
@@ -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: