Skip to content

Commit a3ef39e

Browse files
captain5050namhyung
authored andcommitted
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>
1 parent ad1a008 commit a3ef39e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/perf/python/ilist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ def metric_event_tree() -> Tree:
439439
pmu_node = pmus.add(pmu_name)
440440
try:
441441
for event in sorted(pmu.events(), key=lambda x: x["name"]):
442+
if "deprecated" in event:
443+
continue
442444
if "name" in event:
443445
e = event["name"].lower()
444446
if "alias" in event:

0 commit comments

Comments
 (0)