diff options
author | Jiri Olsa <[email protected]> | 2020-07-19 20:13:17 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-07-30 07:01:50 -0300 |
commit | b81ef466ace6bf9bfd7e63a4c2bc89721ee0d495 (patch) | |
tree | 5cefaa570215eee898c4bdbc3159af1afd46ff90 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | f6fb0960f920e3040088992f32bbceded7a74322 (diff) |
perf metric: Make compute_single function more precise
So far compute_single function relies on the fact, that there's only
single metric defined within evlist in all tests. In following patch we
will add test for metric group, so we need to be able to compute metric
by given name.
Adding the name argument to compute_single and iterating evlist and
evsel's expression to find the given metric.
Signed-off-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: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Clarke <[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/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions