Skip to content

Commit 74aa90e

Browse files
committed
perf annotate: 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 <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 794bca2 commit 74aa90e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tools/perf/builtin-annotate.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,9 @@ static bool has_annotation(struct perf_annotate *ann)
212212
return ui__has_annotation() || ann->use_stdio2;
213213
}
214214

215-
static int perf_evsel__add_sample(struct evsel *evsel,
216-
struct perf_sample *sample,
217-
struct addr_location *al,
218-
struct perf_annotate *ann,
219-
struct machine *machine)
215+
static int evsel__add_sample(struct evsel *evsel, struct perf_sample *sample,
216+
struct addr_location *al, struct perf_annotate *ann,
217+
struct machine *machine)
220218
{
221219
struct hists *hists = evsel__hists(evsel);
222220
struct hist_entry *he;
@@ -278,7 +276,7 @@ static int process_sample_event(struct perf_tool *tool,
278276
goto out_put;
279277

280278
if (!al.filtered &&
281-
perf_evsel__add_sample(evsel, sample, &al, ann, machine)) {
279+
evsel__add_sample(evsel, sample, &al, ann, machine)) {
282280
pr_warning("problem incrementing symbol count, "
283281
"skipping event\n");
284282
ret = -1;

0 commit comments

Comments
 (0)