return ui__has_annotation() || ann->use_stdio2;
}
-static int evsel__add_sample(struct evsel *evsel, struct perf_sample *sample,
- struct addr_location *al, struct perf_annotate *ann,
- struct machine *machine)
+static int add_sample(struct perf_sample *sample,
+ struct addr_location *al, struct perf_annotate *ann,
+ struct machine *machine)
{
- struct hists *hists = evsel__hists(evsel);
+ struct hists *hists = evsel__hists(sample->evsel);
struct hist_entry *he;
int ret;
goto out_put;
if (!al.filtered &&
- evsel__add_sample(sample->evsel, sample, &al, ann, machine)) {
+ add_sample(sample, &al, ann, machine)) {
pr_warning("problem incrementing symbol count, "
"skipping event\n");
ret = -1;