diff options
| author | Namhyung Kim <[email protected]> | 2020-09-24 21:44:53 +0900 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-28 09:16:21 -0300 |
| commit | b214ba8c4275d66029ad34ad222326dca43e7e26 (patch) | |
| tree | 262e4d857b67aae29a6b5d0cce1c934a0dc80f40 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | d1c5a0e86a4e39c9f1bfbfb5ced2ef14103cbf45 (diff) | |
perf tools: Copy metric events properly when expand cgroups
The metricgroup__copy_metric_events() is to handle metrics events when
expanding event for cgroups. As the metric events keep pointers to
evsel, it should be refreshed when events are cloned during the
operation.
The perf_stat__collect_metric_expr() is also called in case an event has
a metric directly.
During the copy, it references evsel by index as the evlist now has
cloned evsels for the given cgroup.
Also kernel test robot found an issue in the python module import so add
empty implementations of those two functions to fix it.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: John Garry <[email protected]>
Cc: Kajol Jain <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions