Lines Matching refs:hists
91 struct hists {
150 struct hist_entry *hists__add_entry(struct hists *hists,
159 struct hist_entry *hists__add_entry_ops(struct hists *hists,
169 struct hist_entry *hists__add_entry_block(struct hists *hists,
183 struct hists *hists);
193 void hists__output_resort(struct hists *hists, struct ui_progress *prog);
194 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
196 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
198 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
199 void hists__delete_entries(struct hists *hists);
200 void hists__output_recalc_col_len(struct hists *hists, int max_rows);
202 struct hist_entry *hists__get_entry(struct hists *hists, int idx);
204 u64 hists__total_period(struct hists *hists);
205 void hists__reset_stats(struct hists *hists);
206 void hists__inc_stats(struct hists *hists, struct hist_entry *h);
207 void hists__inc_nr_events(struct hists *hists);
208 void hists__inc_nr_samples(struct hists *hists, bool filtered);
209 void hists__inc_nr_lost_samples(struct hists *hists, u32 lost);
211 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
217 void hists__filter_by_dso(struct hists *hists);
218 void hists__filter_by_thread(struct hists *hists);
219 void hists__filter_by_symbol(struct hists *hists);
220 void hists__filter_by_socket(struct hists *hists);
222 static inline bool hists__has_filter(struct hists *hists)
224 return hists->thread_filter || hists->dso_filter ||
225 hists->symbol_filter_str || (hists->socket_filter > -1);
228 u16 hists__col_len(struct hists *hists, enum hist_column col);
229 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len);
230 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len);
231 void hists__reset_col_len(struct hists *hists);
232 void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
234 void hists__match(struct hists *leader, struct hists *other);
235 int hists__link(struct hists *leader, struct hists *other);
236 int hists__unlink(struct hists *hists);
240 struct hists hists;
243 static inline struct evsel *hists_to_evsel(struct hists *hists)
245 struct hists_evsel *hevsel = container_of(hists, struct hists_evsel, hists);
249 static inline struct hists *evsel__hists(struct evsel *evsel)
252 return &hevsel->hists;
255 static __pure inline bool hists__has_callchains(struct hists *hists)
257 return hists->has_callchains;
261 int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list);
263 struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists);
276 struct hists *hists, int line, int *span);
278 struct hists *hists);
359 #define hists__for_each_format(hists, format) \
360 perf_hpp_list__for_each_format((hists)->hpp_list, format)
362 #define hists__for_each_sort_list(hists, format) \
363 perf_hpp_list__for_each_sort_list((hists)->hpp_list, format)
392 bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists);
406 struct hists *hists)
412 !perf_hpp__defined_dynamic_entry(format, hists))
418 void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists);
419 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists);
421 void hists__reset_column_width(struct hists *hists);
556 unsigned int hists__sort_list_width(struct hists *hists);
557 unsigned int hists__overhead_width(struct hists *hists);
592 int hists__fprintf_headers(struct hists *hists, FILE *fp);
593 int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq);
595 static inline int hists__scnprintf_title(struct hists *hists, char *bf, size_t size)
597 return __hists__scnprintf_title(hists, bf, size, true);