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 stat: 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 <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>

+5 -6
+5 -6
tools/perf/builtin-stat.c
··· 238 238 239 239 #define SID(e, x, y) xyarray__entry(e->core.sample_id, x, y) 240 240 241 - static int 242 - perf_evsel__write_stat_event(struct evsel *counter, u32 cpu, u32 thread, 243 - struct perf_counts_values *count) 241 + static int evsel__write_stat_event(struct evsel *counter, u32 cpu, u32 thread, 242 + struct perf_counts_values *count) 244 243 { 245 244 struct perf_sample_id *sid = SID(counter, cpu, thread); 246 245 ··· 296 297 perf_counts__set_loaded(counter->counts, cpu, thread, false); 297 298 298 299 if (STAT_RECORD) { 299 - if (perf_evsel__write_stat_event(counter, cpu, thread, count)) { 300 + if (evsel__write_stat_event(counter, cpu, thread, count)) { 300 301 pr_err("failed to write stat event\n"); 301 302 return -1; 302 303 } ··· 409 410 workload_exec_errno = info->si_value.sival_int; 410 411 } 411 412 412 - static bool perf_evsel__should_store_id(struct evsel *counter) 413 + static bool evsel__should_store_id(struct evsel *counter) 413 414 { 414 415 return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID; 415 416 } ··· 634 635 if (l > stat_config.unit_width) 635 636 stat_config.unit_width = l; 636 637 637 - if (perf_evsel__should_store_id(counter) && 638 + if (evsel__should_store_id(counter) && 638 639 evsel__store_ids(counter, evsel_list)) 639 640 return -1; 640 641 }