mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
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: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
2bb72dbb82
commit
6e6d1d654e
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user