aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/intel-bts.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2020-04-29 19:00:27 +0000
committerArnaldo Carvalho de Melo <[email protected]>2020-05-05 19:35:30 +0000
commit2aaefde4d98baf73ef5a6c7c09941fe5e16f5b51 (patch)
tree45596dedfc67672669a5c5377e0a08514f6a9a64 /tools/perf/util/intel-bts.c
parentperf evsel: Rename perf_evsel__calc_id_pos() to evsel__calc_id_pos() (diff)
downloadkernel-2aaefde4d98baf73ef5a6c7c09941fe5e16f5b51.tar.gz
kernel-2aaefde4d98baf73ef5a6c7c09941fe5e16f5b51.zip
perf evsel: Rename __perf_evsel__sample_size() to __evsel__sample_size()
As it is a 'struct evsel' related method, not part of tools/lib/perf/, aka libperf, to whom the perf_ prefix belongs. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/intel-bts.c')
-rw-r--r--tools/perf/util/intel-bts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c
index 506112f52619..af1e78d76228 100644
--- a/tools/perf/util/intel-bts.c
+++ b/tools/perf/util/intel-bts.c
@@ -825,10 +825,10 @@ static int intel_bts_synth_events(struct intel_bts *bts,
bts->branches_id = id;
/*
* We only use sample types from PERF_SAMPLE_MASK so we can use
- * __perf_evsel__sample_size() here.
+ * __evsel__sample_size() here.
*/
bts->branches_event_size = sizeof(struct perf_record_sample) +
- __perf_evsel__sample_size(attr.sample_type);
+ __evsel__sample_size(attr.sample_type);
}
return 0;