perf evlist: Use the right prefix for 'struct evlist' stats methods
perf_evlist__ is for 'struct perf_evlist' methods, in tools/lib/perf/, go on completing this split. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -1847,7 +1847,7 @@ static void perf_sample__fprint_metric(struct perf_script *script,
|
||||
u64 val;
|
||||
|
||||
if (!evsel->stats)
|
||||
perf_evlist__alloc_stats(script->session->evlist, false);
|
||||
evlist__alloc_stats(script->session->evlist, false);
|
||||
if (evsel_script(evsel->leader)->gnum++ == 0)
|
||||
perf_stat__reset_shadow_stats();
|
||||
val = sample->period * evsel->scale;
|
||||
@@ -3308,7 +3308,7 @@ static int set_maps(struct perf_script *script)
|
||||
|
||||
perf_evlist__set_maps(&evlist->core, script->cpus, script->threads);
|
||||
|
||||
if (perf_evlist__alloc_stats(evlist, true))
|
||||
if (evlist__alloc_stats(evlist, true))
|
||||
return -ENOMEM;
|
||||
|
||||
script->allocated = true;
|
||||
@@ -3935,7 +3935,7 @@ out_delete:
|
||||
zfree(&script.ptime_range);
|
||||
}
|
||||
|
||||
perf_evlist__free_stats(session->evlist);
|
||||
evlist__free_stats(session->evlist);
|
||||
perf_session__delete(session);
|
||||
|
||||
if (script_started)
|
||||
|
||||
Reference in New Issue
Block a user