perf evsel: Rename perf_evsel__env() to evsel__env()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 May 2020 16:44:03 +0000 (13:44 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2020 19:35:31 +0000 (16:35 -0300)
As it is a 'struct evsel' method, 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>
tools/perf/builtin-trace.c
tools/perf/util/annotate.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/machine.c

index 025e190..3157571 100644 (file)
@@ -2382,7 +2382,7 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_sample *sam
 
 static const char *errno_to_name(struct evsel *evsel, int err)
 {
-       struct perf_env *env = perf_evsel__env(evsel);
+       struct perf_env *env = evsel__env(evsel);
        const char *arch_name = perf_env__arch(env);
 
        return arch_syscalls__strerrno(arch_name, err);
index dc3342f..d828c2d 100644 (file)
@@ -2156,7 +2156,7 @@ int symbol__annotate(struct map_symbol *ms, struct evsel *evsel,
                .evsel          = evsel,
                .options        = options,
        };
-       struct perf_env *env = perf_evsel__env(evsel);
+       struct perf_env *env = evsel__env(evsel);
        const char *arch_name = perf_env__arch(env);
        struct arch *arch;
        int err;
index 5908cd8..32d178a 100644 (file)
@@ -2563,7 +2563,7 @@ int evsel__open_strerror(struct evsel *evsel, struct target *target,
                         err, str_error_r(err, sbuf, sizeof(sbuf)), evsel__name(evsel));
 }
 
-struct perf_env *perf_evsel__env(struct evsel *evsel)
+struct perf_env *evsel__env(struct evsel *evsel)
 {
        if (evsel && evsel->evlist)
                return evsel->evlist->env;
index 9de7efb..d76111c 100644 (file)
@@ -401,7 +401,7 @@ static inline bool evsel__has_br_stack(const struct evsel *evsel)
               evsel->synth_sample_type & PERF_SAMPLE_BRANCH_STACK;
 }
 
-struct perf_env *perf_evsel__env(struct evsel *evsel);
+struct perf_env *evsel__env(struct evsel *evsel);
 
 int perf_evsel__store_ids(struct evsel *evsel, struct evlist *evlist);
 #endif /* __PERF_EVSEL_H */
index da630e9..8ed2135 100644 (file)
@@ -2619,7 +2619,7 @@ static int thread__resolve_callchain_sample(struct thread *thread,
                chain_nr = chain->nr;
 
        if (evsel__has_branch_callstack(evsel)) {
-               struct perf_env *env = perf_evsel__env(evsel);
+               struct perf_env *env = evsel__env(evsel);
 
                err = resolve_lbr_callchain_sample(thread, cursor, sample, parent,
                                                   root_al, max_stack,