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

Configure Feed

Select the types of activity you want to include in your feed.

perf evsel: Rename perf_evsel__has*() to evsel__has*()

As those are '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>

+6 -6
+1 -1
tools/perf/util/evsel.c
··· 2159 2159 return -EFAULT; 2160 2160 2161 2161 sz = data->branch_stack->nr * sizeof(struct branch_entry); 2162 - if (perf_evsel__has_branch_hw_idx(evsel)) 2162 + if (evsel__has_branch_hw_idx(evsel)) 2163 2163 sz += sizeof(u64); 2164 2164 else 2165 2165 data->no_hw_idx = true;
+2 -2
tools/perf/util/evsel.h
··· 372 372 (_evsel) && (_evsel)->leader == (_leader); \ 373 373 (_evsel) = list_entry((_evsel)->core.node.next, struct evsel, core.node)) 374 374 375 - static inline bool perf_evsel__has_branch_callstack(const struct evsel *evsel) 375 + static inline bool evsel__has_branch_callstack(const struct evsel *evsel) 376 376 { 377 377 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; 378 378 } 379 379 380 - static inline bool perf_evsel__has_branch_hw_idx(const struct evsel *evsel) 380 + static inline bool evsel__has_branch_hw_idx(const struct evsel *evsel) 381 381 { 382 382 return evsel->core.attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; 383 383 }
+1 -1
tools/perf/util/machine.c
··· 2618 2618 if (chain) 2619 2619 chain_nr = chain->nr; 2620 2620 2621 - if (perf_evsel__has_branch_callstack(evsel)) { 2621 + if (evsel__has_branch_callstack(evsel)) { 2622 2622 struct perf_env *env = perf_evsel__env(evsel); 2623 2623 2624 2624 err = resolve_lbr_callchain_sample(thread, cursor, sample, parent,
+2 -2
tools/perf/util/session.c
··· 1059 1059 unsigned int i; 1060 1060 struct ip_callchain *callchain = sample->callchain; 1061 1061 1062 - if (perf_evsel__has_branch_callstack(evsel)) 1062 + if (evsel__has_branch_callstack(evsel)) 1063 1063 callchain__lbr_callstack_printf(sample); 1064 1064 1065 1065 printf("... FP chain: nr:%" PRIu64 "\n", callchain->nr); ··· 1244 1244 callchain__printf(evsel, sample); 1245 1245 1246 1246 if (evsel__has_br_stack(evsel)) 1247 - branch_stack__printf(sample, perf_evsel__has_branch_callstack(evsel)); 1247 + branch_stack__printf(sample, evsel__has_branch_callstack(evsel)); 1248 1248 1249 1249 if (sample_type & PERF_SAMPLE_REGS_USER) 1250 1250 regs_user__printf(sample);