mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-09 06:04:14 +08: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