mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
perf evlist: Use the right prefix for 'struct evlist' 'find' 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:
@@ -3036,8 +3036,7 @@ static int perf_sched__timehist(struct perf_sched *sched)
|
||||
setup_pager();
|
||||
|
||||
/* prefer sched_waking if it is captured */
|
||||
if (perf_evlist__find_tracepoint_by_name(session->evlist,
|
||||
"sched:sched_waking"))
|
||||
if (evlist__find_tracepoint_by_name(session->evlist, "sched:sched_waking"))
|
||||
handlers[1].handler = timehist_sched_wakeup_ignore;
|
||||
|
||||
/* setup per-evsel handlers */
|
||||
@@ -3045,8 +3044,7 @@ static int perf_sched__timehist(struct perf_sched *sched)
|
||||
goto out;
|
||||
|
||||
/* sched_switch event at a minimum needs to exist */
|
||||
if (!perf_evlist__find_tracepoint_by_name(session->evlist,
|
||||
"sched:sched_switch")) {
|
||||
if (!evlist__find_tracepoint_by_name(session->evlist, "sched:sched_switch")) {
|
||||
pr_err("No sched_switch events found. Have you run 'perf sched record'?\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user