5 #include <linux/types.h> 94 #define hists__has(__h, __f) (__h)->hpp_list->__f 140 struct symbol *sym_parent,
147 int max_stack_depth,
void *arg);
182 int max_cols,
float min_pcnt, FILE *fp,
203 void hists__match(
struct hists *leader,
struct hists *other);
204 int hists__link(
struct hists *leader,
struct hists *other);
214 return &hevsel->
evsel;
220 return &hevsel->
hists;
244 struct hists *hists,
int line,
int *span);
246 struct hists *hists);
260 struct list_head list;
261 struct list_head sort_list;
271 struct list_head sorts;
286 struct list_head list;
314 #define perf_hpp_list__for_each_format(_list, format) \ 315 list_for_each_entry(format, &(_list)->fields, list) 317 #define perf_hpp_list__for_each_format_safe(_list, format, tmp) \ 318 list_for_each_entry_safe(format, tmp, &(_list)->fields, list) 320 #define perf_hpp_list__for_each_sort_list(_list, format) \ 321 list_for_each_entry(format, &(_list)->sorts, sort_list) 323 #define perf_hpp_list__for_each_sort_list_safe(_list, format, tmp) \ 324 list_for_each_entry_safe(format, tmp, &(_list)->sorts, sort_list) 326 #define hists__for_each_format(hists, format) \ 327 perf_hpp_list__for_each_format((hists)->hpp_list, fmt) 329 #define hists__for_each_sort_list(hists, format) \ 330 perf_hpp_list__for_each_sort_list((hists)->hpp_list, fmt) 423 void (*timer)(
void *arg);
430 #ifdef HAVE_SLANG_SUPPORT 431 #include "../ui/keysyms.h" 444 bool warn_lost_event,
450 const char *help __maybe_unused,
453 struct perf_env *env __maybe_unused,
454 bool warn_lost_event __maybe_unused,
481 #define K_RIGHT -2000 482 #define K_SWITCH_INPUT_DATA -3000 513 #define HIERARCHY_INDENT 3 struct rb_root * entries_in
void perf_hpp_list__prepend_sort_field(struct perf_hpp_list *list, struct perf_hpp_fmt *format)
struct perf_sample * sample
bool perf_hpp__is_dynamic_entry(struct perf_hpp_fmt *format)
void perf_hpp__reset_output_field(struct perf_hpp_list *list)
u64(* hpp_field_fn)(struct hist_entry *he)
int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list)
int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt,...)
void hists__filter_by_dso(struct hists *hists)
int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he, hpp_field_fn get_field, const char *fmtstr, hpp_snprint_fn print_fn, bool fmt_percent)
struct rb_node * rb_hierarchy_prev(struct rb_node *node)
void hists__filter_by_socket(struct hists *hists)
int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he, hpp_field_fn get_field, const char *fmtstr, hpp_snprint_fn print_fn, bool fmt_percent)
static bool perf_hpp__should_skip(struct perf_hpp_fmt *format, struct hists *hists)
u64 callchain_non_filtered_period
const struct hist_iter_ops hist_iter_cumulative
void perf_hpp__init(void)
struct rb_node * rb_hierarchy_last(struct rb_node *node)
void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists)
void hists__calc_col_len(struct hists *hists, struct hist_entry *he)
int hist_entry__transaction_len(void)
int64_t hist_entry__cmp(struct hist_entry *left, struct hist_entry *right)
void hists__reset_column_width(struct hists *hists)
const struct hist_iter_ops hist_iter_mem
void hist__account_cycles(struct branch_stack *bs, struct addr_location *al, struct perf_sample *sample, bool nonany_branch_mode)
int hists__fprintf_headers(struct hists *hists, FILE *fp)
u64 nr_non_filtered_entries
struct hist_entry_ops * ops
const char * uid_filter_str
bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format)
static struct hists * evsel__hists(struct perf_evsel *evsel)
struct rb_root * hists__get_rotate_entries_in(struct hists *hists)
static bool hists__has_filter(struct hists *hists)
static void perf_hpp__column_register(struct perf_hpp_fmt *format)
bool hist_entry__has_hierarchy_children(struct hist_entry *he, float limit)
unsigned int hists__sort_list_width(struct hists *hists)
void hists__inc_stats(struct hists *hists, struct hist_entry *h)
struct hist_entry * hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *parent, struct branch_info *bi, struct mem_info *mi, struct perf_sample *sample, bool sample_self)
struct list_head hpp_formats
int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, struct perf_hpp_fmt *fmt, int printed)
void hists__reset_stats(struct hists *hists)
size_t perf_evlist__fprintf_nr_events(struct perf_evlist *evlist, FILE *fp)
const struct hist_iter_ops hist_iter_normal
int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq)
void perf_hpp__append_sort_keys(struct perf_hpp_list *list)
void perf_hpp__cancel_cumulate(void)
static void perf_hpp__register_sort_field(struct perf_hpp_fmt *format)
int hist_entry__filter(struct hist_entry *he, int type, const void *arg)
int(* hpp_callback_fn)(struct perf_hpp *hpp, bool front)
int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size, struct hists *hists)
u16 hists__col_len(struct hists *hists, enum hist_column col)
void hists__reset_col_len(struct hists *hists)
struct perf_hpp_fmt * perf_hpp_fmt__dup(struct perf_hpp_fmt *fmt)
static struct perf_evsel * hists_to_evsel(struct hists *hists)
void perf_hpp_list__column_register(struct perf_hpp_list *list, struct perf_hpp_fmt *format)
bool perf_hpp__is_srcline_entry(struct perf_hpp_fmt *fmt)
const struct hist_iter_ops hist_iter_branch
size_t events_stats__fprintf(struct events_stats *stats, FILE *fp)
void perf_hpp__column_unregister(struct perf_hpp_fmt *format)
static int entry(u64 ip, struct unwind_info *ui)
struct rb_root entries_in_array[2]
int(* hists__resort_cb_t)(struct hist_entry *he)
unsigned int hists__overhead_width(struct hists *hists)
bool perf_hpp__is_sym_entry(struct perf_hpp_fmt *fmt)
static void perf_hpp__prepend_sort_field(struct perf_hpp_fmt *format)
bool perf_hpp__is_thread_entry(struct perf_hpp_fmt *fmt)
void hists__match(struct hists *leader, struct hists *other)
const struct dso * dso_filter
const char * symbol_filter_str
void hists__inc_nr_events(struct hists *hists, u32 type)
static int script_browse(const char *script_opt __maybe_unused)
static int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct hist_browser_timer *hbt __maybe_unused, struct annotation_options *annotation_opts __maybe_unused)
bool perf_hpp__is_comm_entry(struct perf_hpp_fmt *fmt)
int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, struct perf_hpp_list *hpp_list)
int(* hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt,...)
void hists__output_recalc_col_len(struct hists *hists, int max_rows)
void perf_hpp_list__init(struct perf_hpp_list *list)
bool perf_hpp__is_trace_entry(struct perf_hpp_fmt *fmt)
void perf_hpp__setup_output_field(struct perf_hpp_list *list)
void hists__filter_by_thread(struct hists *hists)
u64 hists__total_period(struct hists *hists)
struct thread * thread_filter
struct perf_hpp_fmt perf_hpp__format[]
void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists)
static int hists__scnprintf_title(struct hists *hists, char *bf, size_t size)
static int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __maybe_unused, const char *help __maybe_unused, struct hist_browser_timer *hbt __maybe_unused, float min_pcnt __maybe_unused, struct perf_env *env __maybe_unused, bool warn_lost_event __maybe_unused, struct annotation_options *annotation_options __maybe_unused)
void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, hists__resort_cb_t cb)
int64_t hist_entry__collapse(struct hist_entry *left, struct hist_entry *right)
void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len)
int hist_entry_iter__add(struct hist_entry_iter *iter, struct addr_location *al, int max_stack_depth, void *arg)
bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists)
static size_t perf_hpp__color_overhead(void)
void perf_evsel__output_resort(struct perf_evsel *evsel, struct ui_progress *prog)
void hists__inc_nr_samples(struct hists *hists, bool filtered)
bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len)
void perf_hpp__set_user_width(const char *width_list_str)
u16 col_len[HISTC_NR_COLS]
static void advance_hpp(struct perf_hpp *hpp, int inc)
struct perf_evsel * evsel
static __pure bool hists__has_callchains(struct hists *hists)
size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, int max_cols, float min_pcnt, FILE *fp, bool use_callchain)
int perf_hist_config(const char *var, const char *value)
struct perf_hpp_list * hpp_list
static size_t perf_hpp__use_color(void)
int hists__link(struct hists *leader, struct hists *other)
void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel)
void events_stats__inc(struct events_stats *stats, u32 type)
void hist_entry__delete(struct hist_entry *he)
int parse_filter_percentage(const struct option *opt, const char *arg, int unset)
static int map_symbol__tui_annotate(struct map_symbol *ms __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct hist_browser_timer *hbt __maybe_unused, struct annotation_options *annotation_options __maybe_unused)
bool perf_hpp__is_srcfile_entry(struct perf_hpp_fmt *fmt)
const struct hist_iter_ops * ops
static struct rb_node * rb_hierarchy_next(struct rb_node *node)
struct hist_entry * hists__add_entry_ops(struct hists *hists, struct hist_entry_ops *ops, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct perf_sample *sample, bool sample_self)
struct rb_root entries_collapsed
static bool evsel__has_callchain(const struct perf_evsel *evsel)
int perf_hpp__setup_hists_formats(struct perf_hpp_list *list, struct perf_evlist *evlist)
void hists__filter_by_symbol(struct hists *hists)
struct rb_node * __rb_hierarchy_next(struct rb_node *node, enum hierarchy_move_dir hmd)
bool perf_hpp__is_dso_entry(struct perf_hpp_fmt *fmt)
int hists__collapse_resort(struct hists *hists, struct ui_progress *prog)
void hists__output_resort(struct hists *hists, struct ui_progress *prog)
void hists__delete_entries(struct hists *hists)
int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt,...)
void perf_hpp_list__register_sort_field(struct perf_hpp_list *list, struct perf_hpp_fmt *format)