Lines Matching full:struct

12 struct hist_entry;
13 struct hist_entry_ops;
14 struct addr_location;
15 struct map_symbol;
16 struct mem_info;
17 struct kvm_info;
18 struct branch_info;
19 struct branch_stack;
20 struct block_info;
21 struct symbol;
22 struct ui_progress;
91 struct thread;
92 struct dso;
94 struct hists {
95 struct rb_root_cached entries_in_array[2];
96 struct rb_root_cached *entries_in;
97 struct rb_root_cached entries;
98 struct rb_root_cached entries_collapsed;
103 struct thread *thread_filter;
104 const struct dso *dso_filter;
107 struct mutex lock;
108 struct hists_stats stats;
113 struct perf_hpp_list *hpp_list;
114 struct list_head hpp_formats;
120 struct hist_entry_iter;
122 struct hist_iter_ops {
123 int (*prepare_entry)(struct hist_entry_iter *, struct addr_location *);
124 int (*add_single_entry)(struct hist_entry_iter *, struct addr_location *);
125 int (*next_entry)(struct hist_entry_iter *, struct addr_location *);
126 int (*add_next_entry)(struct hist_entry_iter *, struct addr_location *);
127 int (*finish_entry)(struct hist_entry_iter *, struct addr_location *);
130 struct hist_entry_iter {
136 struct evsel *evsel;
137 struct perf_sample *sample;
138 struct hist_entry *he;
139 struct symbol *parent;
142 const struct hist_iter_ops *ops;
144 int (*add_entry_cb)(struct hist_entry_iter *iter,
145 struct addr_location *al, bool single, void *arg);
148 extern const struct hist_iter_ops hist_iter_normal;
149 extern const struct hist_iter_ops hist_iter_branch;
150 extern const struct hist_iter_ops hist_iter_mem;
151 extern const struct hist_iter_ops hist_iter_cumulative;
153 struct hist_entry *hists__add_entry(struct hists *hists,
154 struct addr_location *al,
155 struct symbol *parent,
156 struct branch_info *bi,
157 struct mem_info *mi,
158 struct kvm_info *ki,
159 struct perf_sample *sample,
162 struct hist_entry *hists__add_entry_ops(struct hists *hists,
163 struct hist_entry_ops *ops,
164 struct addr_location *al,
165 struct symbol *sym_parent,
166 struct branch_info *bi,
167 struct mem_info *mi,
168 struct kvm_info *ki,
169 struct perf_sample *sample,
172 struct hist_entry *hists__add_entry_block(struct hists *hists,
173 struct addr_location *al,
174 struct block_info *bi);
176 int hist_entry_iter__add(struct hist_entry_iter *iter, struct addr_location *al,
179 struct perf_hpp;
180 struct perf_hpp_fmt;
182 int64_t hist_entry__cmp(struct hist_entry *left, struct hist_entry *right);
183 int64_t hist_entry__collapse(struct hist_entry *left, struct hist_entry *right);
185 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size,
186 struct hists *hists);
187 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
188 struct perf_hpp_fmt *fmt, int printed);
189 void hist_entry__delete(struct hist_entry *he);
191 typedef int (*hists__resort_cb_t)(struct hist_entry *he, void *arg);
193 void evsel__output_resort_cb(struct evsel *evsel, struct ui_progress *prog,
195 void evsel__output_resort(struct evsel *evsel, struct ui_progress *prog);
196 void hists__output_resort(struct hists *hists, struct ui_progress *prog);
197 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
199 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
201 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
202 void hists__delete_entries(struct hists *hists);
203 void hists__output_recalc_col_len(struct hists *hists, int max_rows);
205 struct hist_entry *hists__get_entry(struct hists *hists, int idx);
207 u64 hists__total_period(struct hists *hists);
208 void hists__reset_stats(struct hists *hists);
209 void hists__inc_stats(struct hists *hists, struct hist_entry *h);
210 void hists__inc_nr_events(struct hists *hists);
211 void hists__inc_nr_samples(struct hists *hists, bool filtered);
212 void hists__inc_nr_lost_samples(struct hists *hists, u32 lost);
214 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
217 size_t evlist__fprintf_nr_events(struct evlist *evlist, FILE *fp,
220 void hists__filter_by_dso(struct hists *hists);
221 void hists__filter_by_thread(struct hists *hists);
222 void hists__filter_by_symbol(struct hists *hists);
223 void hists__filter_by_socket(struct hists *hists);
225 static inline bool hists__has_filter(struct hists *hists) in hists__has_filter()
231 u16 hists__col_len(struct hists *hists, enum hist_column col);
232 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len);
233 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len);
234 void hists__reset_col_len(struct hists *hists);
235 void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
237 void hists__match(struct hists *leader, struct hists *other);
238 int hists__link(struct hists *leader, struct hists *other);
239 int hists__unlink(struct hists *hists);
241 struct hists_evsel {
242 struct evsel evsel;
243 struct hists hists;
246 static inline struct evsel *hists_to_evsel(struct hists *hists) in hists_to_evsel()
248 struct hists_evsel *hevsel = container_of(hists, struct hists_evsel, hists); in hists_to_evsel()
252 static inline struct hists *evsel__hists(struct evsel *evsel) in evsel__hists()
254 struct hists_evsel *hevsel = (struct hists_evsel *)evsel; in evsel__hists()
258 static __pure inline bool hists__has_callchains(struct hists *hists) in hists__has_callchains()
264 int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list);
266 struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists);
268 struct perf_hpp {
276 struct perf_hpp_fmt {
278 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
279 struct hists *hists, int line, int *span);
280 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
281 struct hists *hists);
282 void (*init)(struct perf_hpp_fmt *fmt, struct hist_entry *he);
283 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
284 struct hist_entry *he);
285 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
286 struct hist_entry *he);
287 int64_t (*cmp)(struct perf_hpp_fmt *fmt,
288 struct hist_entry *a, struct hist_entry *b);
289 int64_t (*collapse)(struct perf_hpp_fmt *fmt,
290 struct hist_entry *a, struct hist_entry *b);
291 int64_t (*sort)(struct perf_hpp_fmt *fmt,
292 struct hist_entry *a, struct hist_entry *b);
293 bool (*equal)(struct perf_hpp_fmt *a, struct perf_hpp_fmt *b);
294 void (*free)(struct perf_hpp_fmt *fmt);
296 struct list_head list;
297 struct list_head sort_list;
305 struct perf_hpp_list {
306 struct list_head fields;
307 struct list_head sorts;
319 extern struct perf_hpp_list perf_hpp_list;
321 struct perf_hpp_list_node {
322 struct list_head list;
323 struct perf_hpp_list hpp;
328 void perf_hpp_list__column_register(struct perf_hpp_list *list,
329 struct perf_hpp_fmt *format);
330 void perf_hpp_list__register_sort_field(struct perf_hpp_list *list,
331 struct perf_hpp_fmt *format);
332 void perf_hpp_list__prepend_sort_field(struct perf_hpp_list *list,
333 struct perf_hpp_fmt *format);
335 static inline void perf_hpp__column_register(struct perf_hpp_fmt *format) in perf_hpp__column_register()
340 static inline void perf_hpp__register_sort_field(struct perf_hpp_fmt *format) in perf_hpp__register_sort_field()
345 static inline void perf_hpp__prepend_sort_field(struct perf_hpp_fmt *format) in perf_hpp__prepend_sort_field()
368 extern struct perf_hpp_fmt perf_hpp__format[];
386 void perf_hpp__setup_output_field(struct perf_hpp_list *list);
387 void perf_hpp__reset_output_field(struct perf_hpp_list *list);
388 void perf_hpp__append_sort_keys(struct perf_hpp_list *list);
389 int perf_hpp__setup_hists_formats(struct perf_hpp_list *list,
390 struct evlist *evlist);
393 bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format);
394 bool perf_hpp__is_dynamic_entry(struct perf_hpp_fmt *format);
395 bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists);
396 bool perf_hpp__is_trace_entry(struct perf_hpp_fmt *fmt);
397 bool perf_hpp__is_srcline_entry(struct perf_hpp_fmt *fmt);
398 bool perf_hpp__is_srcfile_entry(struct perf_hpp_fmt *fmt);
399 bool perf_hpp__is_thread_entry(struct perf_hpp_fmt *fmt);
400 bool perf_hpp__is_comm_entry(struct perf_hpp_fmt *fmt);
401 bool perf_hpp__is_dso_entry(struct perf_hpp_fmt *fmt);
402 bool perf_hpp__is_sym_entry(struct perf_hpp_fmt *fmt);
404 struct perf_hpp_fmt *perf_hpp_fmt__dup(struct perf_hpp_fmt *fmt);
406 int hist_entry__filter(struct hist_entry *he, int type, const void *arg);
408 static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format, in perf_hpp__should_skip()
409 struct hists *hists) in perf_hpp__should_skip()
421 void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists);
422 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists);
424 void hists__reset_column_width(struct hists *hists);
426 typedef u64 (*hpp_field_fn)(struct hist_entry *he);
427 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front);
428 typedef int (*hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt, ...);
430 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
431 struct hist_entry *he, hpp_field_fn get_field,
433 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
434 struct hist_entry *he, hpp_field_fn get_field,
437 static inline void advance_hpp(struct perf_hpp *hpp, int inc) in advance_hpp()
455 struct evlist;
457 struct hist_browser_timer {
463 struct res_sample;
471 struct block_hist;
475 void attr_to_script(char *buf, struct perf_event_attr *attr);
477 int map_symbol__tui_annotate(struct map_symbol *ms, struct evsel *evsel,
478 struct hist_browser_timer *hbt);
480 int hist_entry__tui_annotate(struct hist_entry *he, struct evsel *evsel,
481 struct hist_browser_timer *hbt);
483 int evlist__tui_browse_hists(struct evlist *evlist, const char *help, struct hist_browser_timer *hb…
484 float min_pcnt, struct perf_env *env, bool warn_lost_event);
486 int script_browse(const char *script_opt, struct evsel *evsel);
489 int res_sample_browse(struct res_sample *res_samples, int num_res,
490 struct evsel *evsel, enum rstype rstype);
493 int block_hists_tui_browse(struct block_hist *bh, struct evsel *evsel,
494 float min_percent, struct perf_env *env);
497 int evlist__tui_browse_hists(struct evlist *evlist __maybe_unused, in evlist__tui_browse_hists()
499 struct hist_browser_timer *hbt __maybe_unused, in evlist__tui_browse_hists()
501 struct perf_env *env __maybe_unused, in evlist__tui_browse_hists()
506 static inline int map_symbol__tui_annotate(struct map_symbol *ms __maybe_unused, in map_symbol__tui_annotate()
507 struct evsel *evsel __maybe_unused, in map_symbol__tui_annotate()
508 struct hist_browser_timer *hbt __maybe_unused) in map_symbol__tui_annotate()
513 static inline int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused, in hist_entry__tui_annotate()
514 struct evsel *evsel __maybe_unused, in hist_entry__tui_annotate()
515 struct hist_browser_timer *hbt __maybe_unused) in hist_entry__tui_annotate()
521 struct evsel *evsel __maybe_unused) in script_browse()
526 static inline int res_sample_browse(struct res_sample *res_samples __maybe_unused, in res_sample_browse()
528 struct evsel *evsel __maybe_unused, in res_sample_browse()
536 static inline int block_hists_tui_browse(struct block_hist *bh __maybe_unused, in block_hists_tui_browse()
537 struct evsel *evsel __maybe_unused, in block_hists_tui_browse()
539 struct perf_env *env __maybe_unused) in block_hists_tui_browse()
550 unsigned int hists__sort_list_width(struct hists *hists);
551 unsigned int hists__overhead_width(struct hists *hists);
553 void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
554 struct perf_sample *sample, bool nonany_branch_mode,
557 struct option;
558 int parse_filter_percentage(const struct option *opt, const char *arg, int unset);
561 void perf_hpp_list__init(struct perf_hpp_list *list);
569 struct rb_node *rb_hierarchy_last(struct rb_node *node);
570 struct rb_node *__rb_hierarchy_next(struct rb_node *node,
572 struct rb_node *rb_hierarchy_prev(struct rb_node *node);
574 static inline struct rb_node *rb_hierarchy_next(struct rb_node *node) in rb_hierarchy_next()
581 bool hist_entry__has_hierarchy_children(struct hist_entry *he, float limit);
582 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...);
583 int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt, ...);
584 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp,
585 struct perf_hpp_list *hpp_list);
586 int hists__fprintf_headers(struct hists *hists, FILE *fp);
587 int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq);
589 static inline int hists__scnprintf_title(struct hists *hists, char *bf, size_t size) in hists__scnprintf_title()