| /linux/tools/perf/tests/ |
| H A D | hists_output.c | 97 struct hist_entry *he; in del_hist_entries() local 112 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 114 rb_erase_cached(&he->rb_node_in, root_in); in del_hist_entries() 115 hist_entry__delete(he); in del_hist_entries() 131 #define COMM(he) (thread__comm_str(he->thread)) argument 132 #define DSO(he) (dso__short_name(map__dso(he->ms.map))) argument 133 #define SYM(he) (he argument 134 CPU(he) global() argument 135 PID(he) global() argument 142 struct hist_entry *he; test1() local 244 struct hist_entry *he; test2() local 300 struct hist_entry *he; test3() local 374 struct hist_entry *he; test4() local 476 struct hist_entry *he; test5() local [all...] |
| H A D | hists_common.c | 177 struct hist_entry *he; in print_hists_in() local 179 he = rb_entry(node, struct hist_entry, rb_node_in); in print_hists_in() 181 if (!he->filtered) { in print_hists_in() 182 struct dso *dso = map__dso(he->ms.map); in print_hists_in() 185 i, thread__comm_str(he->thread), in print_hists_in() 187 he->ms.sym->name, he->stat.period); in print_hists_in() 206 struct hist_entry *he; in print_hists_out() local 208 he = rb_entry(node, struct hist_entry, rb_node); in print_hists_out() 210 if (!he in print_hists_out() [all...] |
| H A D | hists_link.c | 70 struct hist_entry *he; in add_hist_entries() local 92 he = hists__add_entry(hists, &al, NULL, in add_hist_entries() 94 if (he == NULL) { in add_hist_entries() 112 he = hists__add_entry(hists, &al, NULL, in add_hist_entries() 114 if (he == NULL) { in add_hist_entries() 176 struct hist_entry *he; in __validate_match() local 178 he = rb_entry(node, struct hist_entry, rb_node_in); in __validate_match() 180 if (hist_entry__has_pairs(he)) { in __validate_match() 183 he->thread, he->ms.map, he->ms.sym)) { in __validate_match() 228 struct hist_entry *he; in __validate_link() local [all …]
|
| H A D | hists_cumulate.c | 132 struct hist_entry *he; in del_hist_entries() local 147 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 149 rb_erase_cached(&he->rb_node_in, root_in); in del_hist_entries() 150 hist_entry__delete(he); in del_hist_entries() 166 #define COMM(he) (thread__comm_str(he->thread)) argument 167 #define DSO(he) (dso__short_name(map__dso(he->ms.map))) argument 168 #define SYM(he) (he argument 169 CPU(he) global() argument 170 DEPTH(he) global() argument 195 struct hist_entry *he; do_test() local [all...] |
| /linux/tools/perf/util/ |
| H A D | hist.c | 39 struct hist_entry *he); 41 struct hist_entry *he); 43 struct hist_entry *he); 45 struct hist_entry *he); 47 struct hist_entry *he); 342 static int hists__update_mem_stat(struct hists *hists, struct hist_entry *he, in hists__update_mem_stat() 348 if (he->mem_stat == NULL) { in hists__update_mem_stat() 349 he->mem_stat = calloc(hists->nr_mem_stats, sizeof(*he->mem_stat)); in hists__update_mem_stat() 350 if (he in hists__update_mem_stat() 339 hists__update_mem_stat(struct hists * hists,struct hist_entry * he,struct mem_info * mi,u64 period) hists__update_mem_stat() argument 391 hists__decay_mem_stat(struct hists * hists,struct hist_entry * he) hists__decay_mem_stat() argument 404 hists__decay_entry(struct hists * hists,struct hist_entry * he) hists__decay_entry() argument 445 hists__delete_entry(struct hists * hists,struct hist_entry * he) hists__delete_entry() argument 522 hist_entry__init(struct hist_entry * he,struct hist_entry * template,bool sample_self,size_t callchain_size) hist_entry__init() argument 639 struct hist_entry *he; hist_entry__new() local 666 hist_entry__add_callchain_period(struct hist_entry * he,u64 period,u64 latency) hist_entry__add_callchain_period() argument 686 struct hist_entry *he; hists__findnew_entry() local 775 hists__res_sample(struct hist_entry * he,struct perf_sample * sample) hists__res_sample() argument 849 }, *he = hists__findnew_entry(hists, &entry, al, sample_self); __hists__add_entry() local 897 }, *he = hists__findnew_entry(hists, &entry, al, false); hists__add_entry_block() local 937 struct hist_entry *he; iter_add_single_mem_entry() local 970 struct hist_entry *he = iter->he; iter_finish_mem_entry() local 1039 struct hist_entry *he = NULL; iter_add_next_branch_entry() local 1105 struct hist_entry *he; iter_add_single_normal_entry() local 1120 struct hist_entry *he = iter->he; iter_finish_normal_entry() local 1169 struct hist_entry *he; iter_add_single_cumulative_entry() local 1227 struct hist_entry *he; iter_add_next_cumulative_entry() local 1450 hist_entry__delete(struct hist_entry * he) hist_entry__delete() argument 1503 hist_entry__snprintf_alignment(struct hist_entry * he,struct perf_hpp * hpp,struct perf_hpp_fmt * fmt,int printed) hist_entry__snprintf_alignment() argument 1532 hist_entry__check_and_remove_filter(struct hist_entry * he,enum hist_filter type,fmt_chk_fn check) hist_entry__check_and_remove_filter() argument 1606 hist_entry__apply_hierarchy_filters(struct hist_entry * he) hist_entry__apply_hierarchy_filters() argument 1625 hierarchy_insert_entry(struct hists * hists,struct rb_root_cached * root,struct hist_entry * he,struct hist_entry * parent_he,struct perf_hpp_list * hpp_list) hierarchy_insert_entry() argument 1696 hists__hierarchy_insert_entry(struct hists * hists,struct rb_root_cached * root,struct hist_entry * he) hists__hierarchy_insert_entry() argument 1748 hists__collapse_insert_entry(struct hists * hists,struct rb_root_cached * root,struct hist_entry * he) hists__collapse_insert_entry() argument 1817 hists__apply_filters(struct hists * hists,struct hist_entry * he) hists__apply_filters() argument 1903 struct hist_entry *he; hierarchy_recalc_total_periods() local 1931 hierarchy_insert_output_entry(struct rb_root_cached * root,struct hist_entry * he) hierarchy_insert_output_entry() argument 1969 struct hist_entry *he; hists__hierarchy_output_resort() local 2016 __hists__insert_output_entry(struct rb_root_cached * entries,struct hist_entry * he,u64 min_callchain_hits,bool use_callchain) __hists__insert_output_entry() argument 2147 can_goto_child(struct hist_entry * he,enum hierarchy_move_dir hmd) can_goto_child() argument 2160 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); rb_hierarchy_last() local 2171 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); __rb_hierarchy_next() local 2190 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); rb_hierarchy_prev() local 2203 hist_entry__has_hierarchy_children(struct hist_entry * he,float limit) hist_entry__has_hierarchy_children() argument 2271 hists__filter_entry_by_dso(struct hists * hists,struct hist_entry * he) hists__filter_entry_by_dso() argument 2283 hists__filter_entry_by_thread(struct hists * hists,struct hist_entry * he) hists__filter_entry_by_thread() argument 2295 hists__filter_entry_by_symbol(struct hists * hists,struct hist_entry * he) hists__filter_entry_by_symbol() argument 2308 hists__filter_entry_by_socket(struct hists * hists,struct hist_entry * he) hists__filter_entry_by_socket() argument 2320 hists__filter_entry_by_parallelism(struct hists * hists,struct hist_entry * he) hists__filter_entry_by_parallelism() argument 2351 resort_filtered_entry(struct rb_root_cached * root,struct hist_entry * he) resort_filtered_entry() argument 2547 struct hist_entry *he; hists__add_dummy_entry() local 2596 struct hist_entry *he; add_dummy_hierarchy_entry() local 2632 hists__find_entry(struct hists * hists,struct hist_entry * he) hists__find_entry() argument 2657 hists__find_hierarchy_entry(struct rb_root_cached * root,struct hist_entry * he) hists__find_hierarchy_entry() argument 3029 struct hist_entry *he; hists__delete_remaining_entries() local [all...] |
| H A D | sort.c | 118 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() 121 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf() 124 return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread), in hist_entry__thread_snprintf() 128 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() 135 return th && !RC_CHK_EQUAL(he->thread, th); 154 static int hist_entry__tgid_snprintf(struct hist_entry *he, char *bf, in hist_entry__tgid_snprintf() 157 int tgid = thread__pid(he->thread); in hist_entry__tgid_snprintf() 161 if (thread__pid(he->thread) == thread__tid(he->thread)) { in hist_entry__tgid_snprintf() 162 comm = thread__comm_str(he in hist_entry__tgid_snprintf() 116 hist_entry__thread_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__thread_snprintf() argument 126 hist_entry__thread_filter(struct hist_entry * he,int type,const void * arg) hist_entry__thread_filter() argument 152 hist_entry__tgid_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__tgid_snprintf() argument 202 hist_entry__simd_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width __maybe_unused) hist_entry__simd_snprintf() argument 252 hist_entry__comm_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__comm_snprintf() argument 308 hist_entry__dso_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dso_snprintf() argument 314 hist_entry__dso_filter(struct hist_entry * he,int type,const void * arg) hist_entry__dso_filter() argument 435 hist_entry__sym_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__sym_snprintf() argument 441 hist_entry__sym_filter(struct hist_entry * he,int type,const void * arg) hist_entry__sym_filter() argument 487 hist_entry__symoff_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__symoff_snprintf() argument 508 hist_entry__srcline(struct hist_entry * he) hist_entry__srcline() argument 543 sort__srcline_init(struct hist_entry * he) sort__srcline_init() argument 549 hist_entry__srcline_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__srcline_snprintf() argument 596 sort__srcline_from_init(struct hist_entry * he) sort__srcline_from_init() argument 602 hist_entry__srcline_from_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__srcline_from_snprintf() argument 644 sort__srcline_to_init(struct hist_entry * he) sort__srcline_to_init() argument 650 hist_entry__srcline_to_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__srcline_to_snprintf() argument 666 hist_entry__sym_ipc_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__sym_ipc_snprintf() argument 727 hist_entry__callchain_branch_predicted_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__callchain_branch_predicted_snprintf() argument 759 hist_entry__callchain_branch_abort_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__callchain_branch_abort_snprintf() argument 789 hist_entry__callchain_branch_cycles_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__callchain_branch_cycles_snprintf() argument 861 sort__srcfile_init(struct hist_entry * he) sort__srcfile_init() argument 867 hist_entry__srcfile_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__srcfile_snprintf() argument 897 hist_entry__parent_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__parent_snprintf() argument 919 hist_entry__cpu_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__cpu_snprintf() argument 940 hist_entry__parallelism_filter(struct hist_entry * he,int type,const void * arg) hist_entry__parallelism_filter() argument 950 hist_entry__parallelism_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__parallelism_snprintf() argument 989 hist_entry__cgroup_id_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width __maybe_unused) hist_entry__cgroup_id_snprintf() argument 1012 hist_entry__cgroup_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width __maybe_unused) hist_entry__cgroup_snprintf() argument 1045 hist_entry__socket_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__socket_snprintf() argument 1051 hist_entry__socket_filter(struct hist_entry * he,int type,const void * arg) hist_entry__socket_filter() argument 1077 hist_entry__time_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__time_snprintf() argument 1102 get_trace_output(struct hist_entry * he) get_trace_output() argument 1147 hist_entry__trace_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__trace_snprintf() argument 1181 hist_entry__dso_from_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dso_from_snprintf() argument 1191 hist_entry__dso_from_filter(struct hist_entry * he,int type,const void * arg) hist_entry__dso_from_filter() argument 1213 hist_entry__dso_to_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dso_to_snprintf() argument 1223 hist_entry__dso_to_filter(struct hist_entry * he,int type,const void * arg) hist_entry__dso_to_filter() argument 1269 hist_entry__sym_from_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__sym_from_snprintf() argument 1282 hist_entry__sym_to_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__sym_to_snprintf() argument 1295 hist_entry__sym_from_filter(struct hist_entry * he,int type,const void * arg) hist_entry__sym_from_filter() argument 1307 hist_entry__sym_to_filter(struct hist_entry * he,int type,const void * arg) hist_entry__sym_to_filter() argument 1382 hist_entry__addr_from_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__addr_from_snprintf() argument 1395 hist_entry__addr_to_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__addr_to_snprintf() argument 1486 hist_entry__mispredict_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__mispredict_snprintf() argument 1510 hist_entry__cycles_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__cycles_snprintf() argument 1542 hist_entry__daddr_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__daddr_snprintf() argument 1568 hist_entry__iaddr_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__iaddr_snprintf() argument 1595 hist_entry__dso_daddr_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dso_daddr_snprintf() argument 1625 hist_entry__locked_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__locked_snprintf() argument 1653 hist_entry__tlb_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__tlb_snprintf() argument 1681 hist_entry__lvl_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__lvl_snprintf() argument 1709 hist_entry__snoop_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__snoop_snprintf() argument 1783 hist_entry__dcacheline_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dcacheline_snprintf() argument 1824 hist_entry__local_weight_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__local_weight_snprintf() argument 1837 hist_entry__global_weight_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__global_weight_snprintf() argument 1857 hist_entry__local_ins_lat_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__local_ins_lat_snprintf() argument 1870 hist_entry__global_ins_lat_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__global_ins_lat_snprintf() argument 1890 hist_entry__global_p_stage_cyc_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__global_p_stage_cyc_snprintf() argument 1897 hist_entry__p_stage_cyc_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__p_stage_cyc_snprintf() argument 1992 hist_entry__blocked_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__blocked_snprintf() argument 2021 hist_entry__phys_daddr_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__phys_daddr_snprintf() argument 2062 hist_entry__data_page_size_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__data_page_size_snprintf() argument 2087 hist_entry__code_page_size_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__code_page_size_snprintf() argument 2113 hist_entry__abort_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__abort_snprintf() argument 2145 hist_entry__in_tx_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__in_tx_snprintf() argument 2208 hist_entry__transaction_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__transaction_snprintf() argument 2265 hist_entry__sym_size_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__sym_size_snprintf() argument 2304 hist_entry__dso_size_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__dso_size_snprintf() argument 2335 hist_entry__addr_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__addr_snprintf() argument 2369 sort__type_init(struct hist_entry * he) sort__type_init() argument 2406 hist_entry__type_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width) hist_entry__type_snprintf() argument 2447 hist_entry__typeoff_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width __maybe_unused) hist_entry__typeoff_snprintf() argument 2510 hist_entry__typecln_snprintf(struct hist_entry * he,char * bf,size_t size,unsigned int width __maybe_unused) hist_entry__typecln_snprintf() argument 2761 __sort__hpp_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) __sort__hpp_entry() argument 2861 hse_init(struct perf_hpp_fmt * fmt,struct hist_entry * he) hse_init() argument 2930 hist_entry__filter(struct hist_entry * he,int type,const void * arg) hist_entry__filter() argument 3028 update_dynamic_len(struct hpp_dynamic_entry * hde,struct hist_entry * he) update_dynamic_len() argument 3111 __sort__hde_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) __sort__hde_entry() argument 3228 __sort__hde_init(struct perf_hpp_fmt * fmt,struct hist_entry * he) __sort__hde_init() argument [all...] |
| H A D | block-info.c | 128 int block_info__process_sym(struct hist_entry *he, struct block_hist *bh, in block_info__process_sym() argument 137 if (!he->ms.map || !he->ms.sym) in block_info__process_sym() 141 al.map = he->ms.map; in block_info__process_sym() 142 al.sym = he->ms.sym; in block_info__process_sym() 144 notes = symbol__annotation(he->ms.sym); in block_info__process_sym() 148 for (unsigned int i = 0; i < symbol__size(he->ms.sym); i++) { in block_info__process_sym() 157 init_block_info(bi, he->ms.sym, &ch[i], i, in block_info__process_sym() 160 hists_to_evsel(he->hists)); in block_info__process_sym() 212 struct hist_entry *he) in block_total_cycles_pct_entry() argument 255 block_cycles_lbr_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_cycles_lbr_entry() argument 268 block_cycles_pct_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_cycles_pct_entry() argument 285 block_avg_cycles_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_avg_cycles_entry() argument 299 block_range_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_range_entry() argument 330 block_dso_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_dso_entry() argument 359 block_branch_counter_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) block_branch_counter_entry() argument 445 struct hist_entry *he; process_block_report() local 524 block_info__total_cycles_percent(struct hist_entry * he) block_info__total_cycles_percent() argument [all...] |
| H A D | hist.h | 161 struct hist_entry *he; 322 static __pure inline bool hist_entry__has_callchains(struct hist_entry *he) in hist_entry__has_callchains() 324 return he->callchain_size != 0; in hist_entry__has_callchains() 327 static inline bool hist_entry__has_pairs(struct hist_entry *he) in hist_entry__has_pairs() 329 return !list_empty(&he->pairs.node); in hist_entry__has_pairs() 332 static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) in hist_entry__next_pair() 334 if (hist_entry__has_pairs(he)) in hist_entry__next_pair() 335 return list_entry(he->pairs.node.next, struct hist_entry, pairs.node); in hist_entry__next_pair() 340 struct hist_entry *he) in hist_entry__add_pair() 342 list_add_tail(&pair->pairs.node, &he in hist_entry__add_pair() 160 struct hist_entry *he; global() member 321 hist_entry__has_callchains(struct hist_entry * he) hist_entry__has_callchains() argument 326 hist_entry__has_pairs(struct hist_entry * he) hist_entry__has_pairs() argument 331 hist_entry__next_pair(struct hist_entry * he) hist_entry__next_pair() argument 339 hist_entry__add_pair(struct hist_entry * pair,struct hist_entry * he) hist_entry__add_pair() argument 435 hist_entry__get_percent_limit(struct hist_entry * he) hist_entry__get_percent_limit() argument 709 struct hist_entry he; global() member [all...] |
| H A D | sort.h | 124 int (*se_snprintf)(struct hist_entry *he, char *bf, size_t size, 126 int (*se_filter)(struct hist_entry *he, int type, const void *arg); 127 void (*se_init)(struct hist_entry *he); 161 char *hist_entry__srcline(struct hist_entry *he);
|
| H A D | annotate.c | 590 int hist_entry__inc_addr_samples(struct hist_entry *he, struct perf_sample *sample, in hist_entry__inc_addr_samples() argument 593 return symbol__inc_addr_samples(&he->ms, evsel, ip, sample); in hist_entry__inc_addr_samples() 766 __hist_entry__get_data_type(struct hist_entry *he, const struct arch *arch, 786 struct symbol *sym = apd->he->ms.sym; in annotation_line__print() 842 data->he.period); in annotation_line__print() 845 data->he.nr_samples); in annotation_line__print() 858 data_type = __hist_entry__get_data_type(apd->he, apd->arch, in annotation_line__print() 931 data->he.period = period; in calc_percent() 932 data->he.nr_samples = hits; in calc_percent() 1216 int hist_entry__annotate_printf(struct hist_entry *he, struct evsel *evsel) in hist_entry__annotate_printf() argument [all …]
|
| /linux/net/netfilter/ |
| H A D | nft_set_hash.c | 54 const struct nft_rhash_elem *he = data; in nft_rhash_obj() local 56 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj() 63 const struct nft_rhash_elem *he = ptr; in nft_rhash_cmp() local 65 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp() 67 if (nft_set_elem_is_dead(&he->ext)) in nft_rhash_cmp() 69 if (__nft_set_elem_expired(&he->ext, x->tstamp)) in nft_rhash_cmp() 71 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp() 90 const struct nft_rhash_elem *he; in nft_rhash_lookup() local 98 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup() 99 if (he != NULL) in nft_rhash_lookup() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-c2c.c | 85 struct hist_entry he; member 168 return &c2c_he->he; in c2c_he_zalloc() 177 static void c2c_he_free(void *he) in c2c_he_free() argument 181 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free() 205 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument 214 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists() 303 struct hist_entry *he, in perf_c2c__evsel_hists_inc_stats() argument 308 hists__inc_nr_samples(evsel_hists, he in perf_c2c__evsel_hists_inc_stats() 323 struct hist_entry *he; process_sample_event() local 546 dcacheline_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) dcacheline_entry() argument 560 dcacheline_node_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) dcacheline_node_entry() argument 574 dcacheline_node_count(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) dcacheline_node_count() argument 584 offset_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) offset_entry() argument 613 iaddr_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) iaddr_entry() argument 634 tot_hitm_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) tot_hitm_entry() argument 742 tot_recs_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) tot_recs_entry() argument 780 tot_loads_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) tot_loads_entry() argument 814 percent_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he,get_percent_cb get_percent) percent_color() argument 876 percent_costly_snoop_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_costly_snoop_entry() argument 890 percent_costly_snoop_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_costly_snoop_color() argument 913 he_stats(struct hist_entry * he) he_stats() argument 921 total_stats(struct hist_entry * he) total_stats() argument 966 percent_rmt_hitm_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_rmt_hitm_color() argument 986 percent_lcl_hitm_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_lcl_hitm_entry() argument 997 percent_lcl_hitm_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_lcl_hitm_color() argument 1017 percent_lcl_peer_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_lcl_peer_entry() argument 1028 percent_lcl_peer_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_lcl_peer_color() argument 1048 percent_rmt_peer_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_rmt_peer_entry() argument 1059 percent_rmt_peer_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_rmt_peer_color() argument 1079 percent_stores_l1hit_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_l1hit_entry() argument 1090 percent_stores_l1hit_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_l1hit_color() argument 1110 percent_stores_l1miss_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_l1miss_entry() argument 1121 percent_stores_l1miss_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_l1miss_color() argument 1141 percent_stores_na_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_na_entry() argument 1152 percent_stores_na_color(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) percent_stores_na_color() argument 1212 node_entry(struct perf_hpp_fmt * fmt __maybe_unused,struct perf_hpp * hpp,struct hist_entry * he) node_entry() argument 1308 mean_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he,double mean) mean_entry() argument 1334 cpucnt_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) cpucnt_entry() argument 1348 cl_idx_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) cl_idx_entry() argument 1362 cl_idx_empty_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) cl_idx_empty_entry() argument 1939 c2c_se_entry(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) c2c_se_entry() argument 2135 he__display(struct hist_entry * he,struct c2c_stats * stats) he__display() argument 2168 is_valid_hist_entry(struct hist_entry * he) is_valid_hist_entry() argument 2238 filter_cb(struct hist_entry * he,void * arg __maybe_unused) filter_cb() argument 2255 resort_cl_cb(struct hist_entry * he,void * arg) resort_cl_cb() argument 2370 resort_shared_cl_cb(struct hist_entry * he,void * arg __maybe_unused) resort_shared_cl_cb() argument 2389 struct hist_entry *he; hists__iterate_cb() local 2531 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); print_pareto() local 2595 struct hist_entry *he = browser->he_selection; perf_c2c__toggle_annotation() local 2636 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); c2c_browser__update_nr_entries() local 2649 struct hist_entry *he; global() member 2657 struct hist_entry *he; perf_c2c_cacheline_browser__title() local 2671 c2c_cacheline_browser__new(struct hists * hists,struct hist_entry * he) c2c_cacheline_browser__new() argument 2686 perf_c2c__browse_cacheline(struct hist_entry * he) perf_c2c__browse_cacheline() argument [all...] |
| H A D | builtin-diff.c | 271 static double period_percent(struct hist_entry *he, u64 period) in period_percent() argument 273 u64 total = hists__total_period(he->hists); in period_percent() 278 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument 280 double old_percent = period_percent(he, he->stat.period); in compute_delta() 288 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument 290 double old_period = he->stat.period ?: 1; in compute_ratio() 298 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument 300 u64 old_period = he->stat.period; in compute_wdiff() 310 static int formula_delta(struct hist_entry *he, struc argument 327 formula_ratio(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_ratio() argument 336 formula_wdiff(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_wdiff() argument 347 formula_fprintf(struct hist_entry * he,struct hist_entry * pair,char * buf,size_t size) formula_fprintf() argument 376 block_hist_free(void * he) block_hist_free() argument 505 get_pair_data(struct hist_entry * he,struct data__file * d) get_pair_data() argument 519 get_pair_fmt(struct hist_entry * he,struct diff_hpp_fmt * dfmt) get_pair_fmt() argument 538 struct hist_entry *he = rb_entry(next, struct hist_entry, rb_node_in); hists__baseline_only() local 583 get_block_pair(struct hist_entry * he,struct hists * hists_pair) get_block_pair() argument 619 compute_cycles_diff(struct hist_entry * he,struct hist_entry * pair) compute_cycles_diff() argument 657 struct hist_entry *he = rb_entry(next, struct hist_entry, block_hists_match() local 683 struct hist_entry *he, *pair; hists__precompute() local 1301 baseline_percent(struct hist_entry * he) baseline_percent() argument 1309 hpp__color_baseline(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_baseline() argument 1325 hpp__entry_baseline(struct hist_entry * he,char * buf,size_t size) hpp__entry_baseline() argument 1337 cycles_printf(struct hist_entry * he,struct hist_entry * pair,struct perf_hpp * hpp,int width) cycles_printf() argument 1382 __hpp__color_compare(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he,int comparison_method) __hpp__color_compare() argument 1451 hpp__color_delta(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_delta() argument 1457 hpp__color_ratio(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_ratio() argument 1463 hpp__color_wdiff(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_wdiff() argument 1469 hpp__color_cycles(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_cycles() argument 1502 hpp__color_cycles_hist(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__color_cycles_hist() argument 1559 hpp__entry_unpair(struct hist_entry * he,int idx,char * buf,size_t size) hpp__entry_unpair() argument 1572 hpp__entry_pair(struct hist_entry * he,struct hist_entry * pair,int idx,char * buf,size_t size) hpp__entry_pair() argument 1636 __hpp__entry_global(struct hist_entry * he,struct diff_hpp_fmt * dfmt,char * buf,size_t size) __hpp__entry_global() argument 1654 hpp__entry_global(struct perf_hpp_fmt * _fmt,struct perf_hpp * hpp,struct hist_entry * he) hpp__entry_global() argument [all...] |
| H A D | builtin-kvm.c | 96 struct hist_entry *he); 119 struct hist_entry *he) in ev_name_entry() argument 121 int width = fmt_width(fmt, hpp, he->hists); in ev_name_entry() 123 return scnprintf(hpp->buf, hpp->size, "%*s", width, he->kvm_info->name); in ev_name_entry() 143 event_left = container_of(left, struct kvm_event, he); \ 144 event_right = container_of(right, struct kvm_event, he); \ 160 struct hist_entry *he) \ 163 int width = fmt_width(fmt, hpp, he->hists); \ 166 event = container_of(he, struct kvm_event, he); \ 210 struct hist_entry *he) in ev_entry_mean() argument [all …]
|
| H A D | builtin-annotate.c | 176 struct hist_entry *he = iter->he; in hist_iter__branch_callback() 182 bi = he->branch_info; in hist_iter__branch_callback() 243 struct hist_entry *he; in evsel__add_sample() 274 he = hists__add_entry(hists, al, NULL, NULL, NULL, NULL, sample, true); in evsel__add_sample() 275 if (he == NULL) in evsel__add_sample() 278 ret = hist_entry__inc_addr_samples(he, sample, evsel, al->addr); in evsel__add_sample() 315 static int hist_entry__stdio_annotate(struct hist_entry *he, 320 return hist_entry__tty_annotate2(he, evsel); in process_feature_event() 322 return hist_entry__tty_annotate(he, evse in process_feature_event() 177 struct hist_entry *he = iter->he; hist_iter__branch_callback() local 244 struct hist_entry *he; evsel__add_sample() local 325 hist_entry__stdio_annotate(struct hist_entry * he,struct evsel * evsel,struct perf_annotate * ann) hist_entry__stdio_annotate() argument 422 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); hists__find_annotations() local [all...] |
| /linux/Documentation/core-api/ |
| H A D | errseq.rst | 49 Let me tell you a story about a worker drone. Now, he's a good worker 50 overall, but the company is a little...management heavy. He has to 52 from out of town and he's sure to test the poor fellow too. 54 They're all handing him work to do -- so much he can't keep track of who 56 just want to know when he's finished all of the work they've handed him so 57 far and whether he made any mistakes since they last asked. 59 He might have made the mistake on work they didn't actually hand him, 60 but he can't keep track of things at that level of detail, all he can 61 remember is the most recent mistake that he made. 90 whether he made any mistakes on any of it:: [all …]
|
| /linux/tools/perf/ui/browsers/ |
| H A D | hists.c | 71 struct hist_entry *he = in hist_browser__get_folding() local 74 if (he->leaf && he->unfolded) in hist_browser__get_folding() 75 unfolded_rows += he->nr_rows; in hist_browser__get_folding() 162 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument 164 return he->has_children ? tree__folded_sign(he->unfolded) : ' '; in hist_entry__folded() 273 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument 280 if (he->leaf) in hierarchy_count_rows() 281 return callchain__count_rows(&he->sorted_chain); in hierarchy_count_rows() 283 if (he->has_no_entry) in hierarchy_count_rows() 286 node = rb_first_cached(&he->hroot_out); in hierarchy_count_rows() [all …]
|
| H A D | annotate-data.c | 155 struct hist_entry *he = browser->b.priv; in annotated_data_browser__collect_entries() local 156 struct annotated_data_type *adt = he->mem_type; in annotated_data_browser__collect_entries() 157 struct evsel *evsel = hists_to_evsel(he->hists); in annotated_data_browser__collect_entries() 336 struct hist_entry *he = uib->priv; in browser__show() local 337 struct annotated_data_type *adt = he->mem_type; in browser__show() 343 adt->self.type_name, he->stat.nr_events); in browser__show() 392 struct hist_entry *he = uib->priv; in browser__write() local 393 struct annotated_data_type *adt = he->mem_type; in browser__write() 394 struct evsel *leader = hists_to_evsel(he->hists); in browser__write() 570 int hist_entry__annotate_data_tui(struct hist_entry *he, struct evsel *evsel, in hist_entry__annotate_data_tui() argument [all …]
|
| /linux/tools/perf/ui/stdio/ |
| H A D | hist.c | 385 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument 389 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf() 392 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf() 396 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf() 400 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf() 404 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf() 407 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf() 418 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument 427 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf() 431 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf() [all …]
|
| /linux/tools/perf/ui/gtk/ |
| H A D | hists.c | 44 static u64 he_get_##_field(struct hist_entry *he) \ 46 return he->stat._field; \ 51 struct hist_entry *he) \ 53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 58 static u64 he_get_acc_##_field(struct hist_entry *he) \ 60 return he->stat_acc->_field; \ 65 struct hist_entry *he) \ 67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ 414 struct hist_entry *he; in perf_gtk__add_hierarchy_entries() local 425 he = rb_entry(node, struct hist_entry, rb_node); in perf_gtk__add_hierarchy_entries() [all …]
|
| /linux/tools/perf/ui/ |
| H A D | hist.c | 59 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument 64 struct hists *hists = he->hists; in __hpp__fmt() 80 values[0].val = get_field(he); in __hpp__fmt() 81 values[0].samples = he->stat.nr_events; in __hpp__fmt() 89 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt() 124 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt() argument 131 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt() 140 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmtype); in hpp__fmt() 144 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt_acc() argument 153 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmtype); in hpp__fmt_acc() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-coresight-devices-ultra_smb | 4 Contact: Junhao He <hejunhao3@huawei.com> 11 Contact: Junhao He <hejunhao3@huawei.com> 17 Contact: Junhao He <hejunhao3@huawei.com> 24 Contact: Junhao He <hejunhao3@huawei.com> 30 Contact: Junhao He <hejunhao3@huawei.com>
|
| /linux/include/linux/ |
| H A D | rhashtable.h | 115 const struct rhash_head *he) in rht_obj() argument 117 return (char *)he - ht->p.head_offset; in rht_obj() 160 const struct rhash_head *he, const struct rhashtable_params params) in rht_head_hashfn() argument 162 const char *ptr = rht_obj(ht, he); in rht_head_hashfn() 622 struct rhash_head *he; in __rhashtable_lookup() local 631 rht_for_each_rcu_from(he, __rht_ptr_rcu(bkt, freq), tbl, hash) { in __rhashtable_lookup() 633 params.obj_cmpfn(&arg, rht_obj(ht, he)) : in __rhashtable_lookup() 634 rhashtable_compare(&arg, rht_obj(ht, he))) in __rhashtable_lookup() 636 return he; in __rhashtable_lookup() 641 } while (he != RHT_NULLS_MARKER(bkt)); in __rhashtable_lookup() [all …]
|
| /linux/kernel/locking/ |
| H A D | qspinlock_paravirt.h | 203 #define for_each_hash_entry(he, offset, hash) \ argument 204 for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \ 206 offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)]) 211 struct pv_hash_entry *he; in pv_hash() local 214 for_each_hash_entry(he, offset, hash) { in pv_hash() 217 if (try_cmpxchg(&he->lock, &old, lock)) { in pv_hash() 218 WRITE_ONCE(he->node, node); in pv_hash() 220 return &he->lock; in pv_hash() 239 struct pv_hash_entry *he; in pv_unhash() local 242 for_each_hash_entry(he, offset, hash) { in pv_unhash() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76_connac_mac.c | 773 struct ieee80211_radiotap_he *he, in mt76_connac2_mac_decode_he_radiotap_ru() argument 814 he->data1 |= HE_BITS(DATA1_BW_RU_ALLOC_KNOWN); in mt76_connac2_mac_decode_he_radiotap_ru() 815 he->data2 |= HE_BITS(DATA2_RU_OFFSET_KNOWN) | in mt76_connac2_mac_decode_he_radiotap_ru() 890 struct ieee80211_radiotap_he *he; in mt76_connac2_mac_decode_he_radiotap() local 894 he = skb_push(skb, sizeof(known)); in mt76_connac2_mac_decode_he_radiotap() 895 memcpy(he, &known, sizeof(known)); in mt76_connac2_mac_decode_he_radiotap() 897 he->data3 = HE_PREP(DATA3_BSS_COLOR, BSS_COLOR, rxv[14]) | in mt76_connac2_mac_decode_he_radiotap() 899 he->data4 = HE_PREP(DATA4_SU_MU_SPTL_REUSE, SR_MASK, rxv[11]); in mt76_connac2_mac_decode_he_radiotap() 900 he->data5 = HE_PREP(DATA5_PE_DISAMBIG, PE_DISAMBIG, rxv[2]) | in mt76_connac2_mac_decode_he_radiotap() 904 he->data5 |= HE_BITS(DATA5_TXBF); in mt76_connac2_mac_decode_he_radiotap() [all …]
|