Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf jevents: Drop duplicate pending metrics

Drop adding a pending metric if there is an existing one. Ensure the
PMUs differ for hybrid systems.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
a1d9bb1a 3f31651a

+2 -1
+2 -1
tools/perf/pmu-events/jevents.py
··· 501 501 for e in read_json_events(item.path, topic): 502 502 if e.name: 503 503 _pending_events.append(e) 504 - if e.metric_name: 504 + if e.metric_name and not any(e.metric_name == x.metric_name and 505 + e.pmu == x.pmu for x in _pending_metrics): 505 506 _pending_metrics.append(e) 506 507 507 508