History

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.

Ian Rogers committed 1 year ago

Commit a3ef39e1 parent ad1a0081 file · +2 −0Browse files

Showing the changes to tools/perf/python (1 of 1 file). Show all

Unified · Split

tools/perf/python/ilist.py+2−0
@@ -439,6 +439,8 @@ class IListApp(App): · 438 unmodified lines
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: