Lines Matching defs:hists
47 static struct hists *perf_session__hists_findnew(struct perf_session *self,
53 struct hists *iter, *new;
57 iter = rb_entry(parent, struct hists, rb_node);
68 new = malloc(sizeof(struct hists));
71 memset(new, 0, sizeof(struct hists));
88 struct hists *hists;
100 hists = perf_session__hists_findnew(self, data->id, attr->type, attr->config);
102 hists = perf_session__hists_findnew(self, data->id, 0, 0);
103 if (hists == NULL)
105 he = __hists__add_entry(hists, al, parent, data->period);
130 struct hists *hists;
133 hists = perf_session__hists_findnew(session, data->id,
136 hists = perf_session__hists_findnew(session, data->id, 0, 0);
138 if (!hists)
141 hists->stats.total_period += data->period;
142 hists__inc_nr_events(hists, PERF_RECORD_SAMPLE);
143 session->hists.stats.total_period += data->period;
249 static size_t hists__fprintf_nr_sample_events(struct hists *self,
268 struct hists *hists = rb_entry(next, struct hists, rb_node);
271 if (rb_first(&hists->entries) != rb_last(&hists->entries))
272 evname = __event_name(hists->type, hists->config);
274 hists__fprintf_nr_sample_events(hists, evname, stdout);
275 hists__fprintf(hists, NULL, false, stdout);
277 next = rb_next(&hists->rb_node);
332 struct hists *hists;
334 hists = rb_entry(next, struct hists, rb_node);
335 hists__collapse_resort(hists);
336 hists__output_resort(hists);
337 next = rb_next(&hists->rb_node);