perf metric: Rename expr__find_other.
A later change will remove the notion of other, rename the function to expr__find_ids as this is what it populates. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: John Garry <john.garry@huawei.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Clarke <pc@us.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sandeep Dasgupta <sdasgup@google.com> Cc: Stephane Eranian <eranian@google.com> Link: https://lore.kernel.org/r/20210923074616.674826-8-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c924e0cc05
commit
7e06a5e30a
@ -392,9 +392,9 @@ void perf_stat__collect_metric_expr(struct evlist *evsel_list)
|
||||
expr__ctx_clear(ctx);
|
||||
metric_events = counter->metric_events;
|
||||
if (!metric_events) {
|
||||
if (expr__find_other(counter->metric_expr,
|
||||
counter->name,
|
||||
ctx, 1) < 0)
|
||||
if (expr__find_ids(counter->metric_expr,
|
||||
counter->name,
|
||||
ctx, 1) < 0)
|
||||
continue;
|
||||
|
||||
metric_events = calloc(sizeof(struct evsel *),
|
||||
|
Reference in New Issue
Block a user