Skip to content

Commit b14b36d

Browse files
committed
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 <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 74aa90e commit b14b36d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/perf/builtin-inject.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,7 @@ static void sig_handler(int sig __maybe_unused)
561561
session_done = 1;
562562
}
563563

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)
566565
{
567566
struct perf_event_attr *attr = &evsel->core.attr;
568567
const char *name = evsel__name(evsel);
@@ -625,7 +624,7 @@ static int __cmd_inject(struct perf_inject *inject)
625624
const char *name = evsel__name(evsel);
626625

627626
if (!strcmp(name, "sched:sched_switch")) {
628-
if (perf_evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID"))
627+
if (evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID"))
629628
return -EINVAL;
630629

631630
evsel->handler = perf_inject__sched_switch;

0 commit comments

Comments
 (0)