Home
last modified time | relevance | path

Searched refs:he (Results 1 – 25 of 96) sorted by relevance

1234

/Linux-v4.19/tools/perf/tests/
Dhists_output.c93 struct hist_entry *he; in del_hist_entries() local
108 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
110 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
111 hist_entry__delete(he); in del_hist_entries()
117 #define COMM(he) (thread__comm_str(he->thread)) argument
118 #define DSO(he) (he->ms.map->dso->short_name) argument
119 #define SYM(he) (he->ms.sym->name) argument
120 #define CPU(he) (he->cpu) argument
121 #define PID(he) (he->thread->tid) argument
128 struct hist_entry *he; in test1() local
[all …]
Dhists_common.c175 struct hist_entry *he; in print_hists_in() local
177 he = rb_entry(node, struct hist_entry, rb_node_in); in print_hists_in()
179 if (!he->filtered) { in print_hists_in()
181 i, thread__comm_str(he->thread), in print_hists_in()
182 he->ms.map->dso->short_name, in print_hists_in()
183 he->ms.sym->name, he->stat.period); in print_hists_in()
202 struct hist_entry *he; in print_hists_out() local
204 he = rb_entry(node, struct hist_entry, rb_node); in print_hists_out()
206 if (!he->filtered) { in print_hists_out()
208 i, thread__comm_str(he->thread), he->thread->tid, in print_hists_out()
[all …]
Dhists_link.c69 struct hist_entry *he; in add_hist_entries() local
90 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
92 if (he == NULL) { in add_hist_entries()
109 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
111 if (he == NULL) { in add_hist_entries()
158 struct hist_entry *he; in __validate_match() local
160 he = rb_entry(node, struct hist_entry, rb_node_in); in __validate_match()
162 if (hist_entry__has_pairs(he)) { in __validate_match()
165 he->thread, he->ms.map, he->ms.sym)) { in __validate_match()
210 struct hist_entry *he; in __validate_link() local
[all …]
Dhists_cumulate.c127 struct hist_entry *he; in del_hist_entries() local
142 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
144 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
145 hist_entry__delete(he); in del_hist_entries()
151 #define COMM(he) (thread__comm_str(he->thread)) argument
152 #define DSO(he) (he->ms.map->dso->short_name) argument
153 #define SYM(he) (he->ms.sym->name) argument
154 #define CPU(he) (he->cpu) argument
155 #define PID(he) (he->thread->tid) argument
156 #define DEPTH(he) (he->callchain->max_depth) argument
[all …]
/Linux-v4.19/tools/perf/util/
Dhist.c22 struct hist_entry *he);
24 struct hist_entry *he);
26 struct hist_entry *he);
28 struct hist_entry *he);
274 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
276 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument
278 u64 prev_period = he->stat.period; in hists__decay_entry()
284 he_stat__decay(&he->stat); in hists__decay_entry()
286 he_stat__decay(he->stat_acc); in hists__decay_entry()
287 decay_callchain(he->callchain); in hists__decay_entry()
[all …]
Dsort.c84 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
87 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
90 return repsep_snprintf(bf, size, "%7d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf()
94 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() argument
101 return th && he->thread != th; in hist_entry__thread_filter()
137 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
140 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
193 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
196 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
199 static int hist_entry__dso_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__dso_filter() argument
[all …]
Dsort.h156 static __pure inline bool hist_entry__has_callchains(struct hist_entry *he) in hist_entry__has_callchains() argument
158 return he->callchain_size != 0; in hist_entry__has_callchains()
161 static inline bool hist_entry__has_pairs(struct hist_entry *he) in hist_entry__has_pairs() argument
163 return !list_empty(&he->pairs.node); in hist_entry__has_pairs()
166 static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) in hist_entry__next_pair() argument
168 if (hist_entry__has_pairs(he)) in hist_entry__next_pair()
169 return list_entry(he->pairs.node.next, struct hist_entry, pairs.node); in hist_entry__next_pair()
174 struct hist_entry *he) in hist_entry__add_pair() argument
176 list_add_tail(&pair->pairs.node, &he->pairs.head); in hist_entry__add_pair()
179 static inline float hist_entry__get_percent_limit(struct hist_entry *he) in hist_entry__get_percent_limit() argument
[all …]
Dhist.h115 struct hist_entry *he; member
156 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size,
158 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
160 void hist_entry__delete(struct hist_entry *he);
162 typedef int (*hists__resort_cb_t)(struct hist_entry *he);
202 void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
248 struct hist_entry *he);
250 struct hist_entry *he);
371 int hist_entry__filter(struct hist_entry *he, int type, const void *arg);
391 typedef u64 (*hpp_field_fn)(struct hist_entry *he);
[all …]
/Linux-v4.19/net/netfilter/
Dnft_set_hash.c52 const struct nft_rhash_elem *he = data; in nft_rhash_obj() local
54 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj()
61 const struct nft_rhash_elem *he = ptr; in nft_rhash_cmp() local
63 if (memcmp(nft_set_ext_key(&he->ext), x->key, x->set->klen)) in nft_rhash_cmp()
65 if (nft_set_elem_expired(&he->ext)) in nft_rhash_cmp()
67 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp()
84 const struct nft_rhash_elem *he; in nft_rhash_lookup() local
91 he = rhashtable_lookup_fast(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup()
92 if (he != NULL) in nft_rhash_lookup()
93 *ext = &he->ext; in nft_rhash_lookup()
[all …]
/Linux-v4.19/tools/perf/
Dbuiltin-c2c.c68 struct hist_entry he; member
146 return &c2c_he->he; in c2c_he_zalloc()
149 static void c2c_he_free(void *he) in c2c_he_free() argument
153 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
176 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
184 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
256 struct hist_entry *he; in process_sample_event() local
285 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
288 if (he == NULL) in process_sample_event()
291 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
[all …]
Dbuiltin-diff.c232 static double period_percent(struct hist_entry *he, u64 period) in period_percent() argument
234 u64 total = hists__total_period(he->hists); in period_percent()
239 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
241 double old_percent = period_percent(he, he->stat.period); in compute_delta()
249 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
251 double old_period = he->stat.period ?: 1; in compute_ratio()
259 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument
261 u64 old_period = he->stat.period; in compute_wdiff()
271 static int formula_delta(struct hist_entry *he, struct hist_entry *pair, in formula_delta() argument
274 u64 he_total = he->hists->stats.total_period; in formula_delta()
[all …]
Dbuiltin-annotate.c155 struct hist_entry *he = iter->he; in hist_iter__branch_callback() local
163 bi = he->branch_info; in hist_iter__branch_callback()
217 struct hist_entry *he; in perf_evsel__add_sample() local
247 he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); in perf_evsel__add_sample()
248 if (he == NULL) in perf_evsel__add_sample()
251 ret = hist_entry__inc_addr_samples(he, sample, evsel, al->addr); in perf_evsel__add_sample()
295 static int hist_entry__tty_annotate(struct hist_entry *he, in hist_entry__tty_annotate() argument
300 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, &ann->opts); in hist_entry__tty_annotate()
302 return symbol__tty_annotate2(he->ms.sym, he->ms.map, evsel, &ann->opts); in hist_entry__tty_annotate()
313 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() local
[all …]
Dbuiltin-top.c100 static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) in perf_top__parse_source() argument
102 struct perf_evsel *evsel = hists_to_evsel(he->hists); in perf_top__parse_source()
108 if (!he || !he->ms.sym) in perf_top__parse_source()
111 sym = he->ms.sym; in perf_top__parse_source()
112 map = he->ms.map; in perf_top__parse_source()
138 top->sym_filter_entry = he; in perf_top__parse_source()
149 static void __zero_source_counters(struct hist_entry *he) in __zero_source_counters() argument
151 struct symbol *sym = he->ms.sym; in __zero_source_counters()
183 struct hist_entry *he, in perf_top__record_precise_ip() argument
188 struct symbol *sym = he->ms.sym; in perf_top__record_precise_ip()
[all …]
/Linux-v4.19/tools/perf/ui/browsers/
Dhists.c55 struct hist_entry *he = in hist_browser__get_folding() local
58 if (he->leaf && he->unfolded) in hist_browser__get_folding()
59 unfolded_rows += he->nr_rows; in hist_browser__get_folding()
146 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument
148 return he->has_children ? tree__folded_sign(he->unfolded) : ' '; in hist_entry__folded()
257 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument
264 if (he->leaf) in hierarchy_count_rows()
265 return callchain__count_rows(&he->sorted_chain); in hierarchy_count_rows()
267 if (he->has_no_entry) in hierarchy_count_rows()
270 node = rb_first(&he->hroot_out); in hierarchy_count_rows()
[all …]
/Linux-v4.19/tools/perf/ui/stdio/
Dhist.c373 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument
377 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf()
380 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf()
384 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
388 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
392 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
395 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
406 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
415 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf()
419 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
[all …]
/Linux-v4.19/kernel/locking/
Dqspinlock_paravirt.h209 #define for_each_hash_entry(he, offset, hash) \ argument
210 for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \
212 offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)])
217 struct pv_hash_entry *he; in pv_hash() local
220 for_each_hash_entry(he, offset, hash) { in pv_hash()
222 if (!cmpxchg(&he->lock, NULL, lock)) { in pv_hash()
223 WRITE_ONCE(he->node, node); in pv_hash()
225 return &he->lock; in pv_hash()
244 struct pv_hash_entry *he; in pv_unhash() local
247 for_each_hash_entry(he, offset, hash) { in pv_unhash()
[all …]
/Linux-v4.19/tools/perf/ui/gtk/
Dhists.c42 static u64 he_get_##_field(struct hist_entry *he) \
44 return he->stat._field; \
49 struct hist_entry *he) \
51 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
56 static u64 he_get_acc_##_field(struct hist_entry *he) \
58 return he->stat_acc->_field; \
63 struct hist_entry *he) \
65 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
412 struct hist_entry *he; in perf_gtk__add_hierarchy_entries() local
423 he = rb_entry(node, struct hist_entry, rb_node); in perf_gtk__add_hierarchy_entries()
[all …]
/Linux-v4.19/tools/perf/ui/
Dhist.c21 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
26 struct hists *hists = he->hists; in __hpp__fmt()
36 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
40 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
49 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt()
111 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt() argument
117 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
126 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
130 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt_acc() argument
138 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
[all …]
/Linux-v4.19/include/linux/
Drhashtable.h87 const struct rhash_head *he) in rht_obj() argument
89 return (char *)he - ht->p.head_offset; in rht_obj()
139 const struct rhash_head *he, const struct rhashtable_params params) in rht_head_hashfn() argument
141 const char *ptr = rht_obj(ht, he); in rht_head_hashfn()
475 struct rhash_head *he; in __rhashtable_lookup() local
481 rht_for_each_rcu(he, tbl, hash) { in __rhashtable_lookup()
483 params.obj_cmpfn(&arg, rht_obj(ht, he)) : in __rhashtable_lookup()
484 rhashtable_compare(&arg, rht_obj(ht, he))) in __rhashtable_lookup()
486 return he; in __rhashtable_lookup()
516 struct rhash_head *he = __rhashtable_lookup(ht, key, params); in rhashtable_lookup() local
[all …]
/Linux-v4.19/Documentation/core-api/
Derrseq.rst49 Let me tell you a story about a worker drone. Now, he's a good worker
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.
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::
100 glitches and he makes a mistake. He sighs a heavy sigh, and marks it
110 Note that the supervisors can't tell how many mistakes he made, only
[all …]
/Linux-v4.19/fs/reiserfs/
DREADME20 under the GPL, because he wants to know if it is okay to do so and put
21 a check in the mail to you (for non-trivial improvements) when he
23 though he feels motivated to motivate contributors, and you can surely
88 Vladimir Saveljev was one of the programmers, and he worked long hours
89 writing the cleanest code. He always made the effort to be the best he
92 to work the way he did, he is one of the most selfless men I know.
102 align files), and he invented and implemented indirect items and
110 curious, because he never really understood the value of our project,
112 general, but he was sure that he ought to be controlling it. Every
113 innovation had to be forced past him while he was with us. He added
[all …]
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Drxmq.c872 struct ieee80211_radiotap_he *he = NULL; in iwl_mvm_rx_mpdu_mq() local
939 he = skb_put_data(skb, &known, sizeof(known)); in iwl_mvm_rx_mpdu_mq()
1006 he->data1 |= in iwl_mvm_rx_mpdu_mq()
1010 he->data3 |= in iwl_mvm_rx_mpdu_mq()
1251 he->data2 |= in iwl_mvm_rx_mpdu_mq()
1254 he->data2 |= in iwl_mvm_rx_mpdu_mq()
1257 he->data2 |= in iwl_mvm_rx_mpdu_mq()
1259 } else if (he) { in iwl_mvm_rx_mpdu_mq()
1260 he->data1 |= in iwl_mvm_rx_mpdu_mq()
1288 } else if (he) { in iwl_mvm_rx_mpdu_mq()
[all …]
/Linux-v4.19/lib/
Dtest_hexdump.c167 int ae, he, e, f, r; in test_hexdump_overflow() local
181 he = (gs * 2 /* hex */ + 1 /* space */) * len / gs - 1 /* no trailing space */; in test_hexdump_overflow()
186 e = he; in test_hexdump_overflow()
/Linux-v4.19/Documentation/filesystems/
Dquota.txt10 resource (unless he has CAP_SYS_RESOURCE capability). User is allowed to exceed
13 more space/inodes until he frees enough of them to get below softlimit.
26 when user is using a graphical desktop he usually cannot see the message.
/Linux-v4.19/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c191 unsigned int hd, hs, he, hbe, ht; in matroxfb_vgaHWinit() local
241 he = m->HSyncEnd >> 3; in matroxfb_vgaHWinit()
250 he >>= 1; in matroxfb_vgaHWinit()
259 he <<= 1; in matroxfb_vgaHWinit()
265 he = he - 1; in matroxfb_vgaHWinit()
282 hw->CRTCEXT[5] = (hs + he - ht) >> 1; in matroxfb_vgaHWinit()
308 hw->CRTC[5] = ((hbe & 0x20) << 2) | (he & 0x1F); in matroxfb_vgaHWinit()

1234