Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf inject: Rename perf_evsel__*() operating on 'struct evsel *' to evsel__*()

As those is a 'struct evsel' methods, not part of tools/lib/perf/, aka
libperf, to whom the perf_ prefix belongs.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+2 -3
+2 -3
tools/perf/builtin-inject.c
··· 561 561 session_done = 1; 562 562 } 563 563 564 - static int perf_evsel__check_stype(struct evsel *evsel, 565 - u64 sample_type, const char *sample_msg) 564 + static int evsel__check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg) 566 565 { 567 566 struct perf_event_attr *attr = &evsel->core.attr; 568 567 const char *name = evsel__name(evsel); ··· 624 625 const char *name = evsel__name(evsel); 625 626 626 627 if (!strcmp(name, "sched:sched_switch")) { 627 - if (perf_evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID")) 628 + if (evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID")) 628 629 return -EINVAL; 629 630 630 631 evsel->handler = perf_inject__sched_switch;