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 <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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user