perf evsel: Rename perf_evsel__env() to evsel__env()

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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 2bb72dbb
...@@ -2382,7 +2382,7 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_sample *sam ...@@ -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) 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); const char *arch_name = perf_env__arch(env);
return arch_syscalls__strerrno(arch_name, err); return arch_syscalls__strerrno(arch_name, err);
......
...@@ -2156,7 +2156,7 @@ int symbol__annotate(struct map_symbol *ms, struct evsel *evsel, ...@@ -2156,7 +2156,7 @@ int symbol__annotate(struct map_symbol *ms, struct evsel *evsel,
.evsel = evsel, .evsel = evsel,
.options = options, .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); const char *arch_name = perf_env__arch(env);
struct arch *arch; struct arch *arch;
int err; int err;
......
...@@ -2563,7 +2563,7 @@ int evsel__open_strerror(struct evsel *evsel, struct target *target, ...@@ -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)); 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) if (evsel && evsel->evlist)
return evsel->evlist->env; return evsel->evlist->env;
......
...@@ -401,7 +401,7 @@ static inline bool evsel__has_br_stack(const struct evsel *evsel) ...@@ -401,7 +401,7 @@ static inline bool evsel__has_br_stack(const struct evsel *evsel)
evsel->synth_sample_type & PERF_SAMPLE_BRANCH_STACK; 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); int perf_evsel__store_ids(struct evsel *evsel, struct evlist *evlist);
#endif /* __PERF_EVSEL_H */ #endif /* __PERF_EVSEL_H */
...@@ -2619,7 +2619,7 @@ static int thread__resolve_callchain_sample(struct thread *thread, ...@@ -2619,7 +2619,7 @@ static int thread__resolve_callchain_sample(struct thread *thread,
chain_nr = chain->nr; chain_nr = chain->nr;
if (evsel__has_branch_callstack(evsel)) { 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, err = resolve_lbr_callchain_sample(thread, cursor, sample, parent,
root_al, max_stack, root_al, max_stack,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment