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
439 pmu_node = pmus.add(pmu_name)439 pmu_node = pmus.add(pmu_name)
440 try:440 try:
441 for event in sorted(pmu.events(), key=lambda x: x["name"]):441 for event in sorted(pmu.events(), key=lambda x: x["name"]):
442 if "deprecated" in event:
443 continue
442 if "name" in event:444 if "name" in event:
443 e = event["name"].lower()445 e = event["name"].lower()
444 if "alias" in event:446 if "alias" in event: