mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02: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:
parent
ad1a008bf0
commit
a3ef39eb97
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user