mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user