Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 118) sorted by relevance

12345

/tools/perf/util/
Dbpf-prologue.c29 struct bpf_insn *pos; member
33 pos_get_cnt(struct bpf_insn_pos *pos) in pos_get_cnt() argument
35 return pos->pos - pos->begin; in pos_get_cnt()
39 append_insn(struct bpf_insn new_insn, struct bpf_insn_pos *pos) in append_insn() argument
41 if (!pos->pos) in append_insn()
44 if (pos->pos + 1 >= pos->end) { in append_insn()
46 pos->pos = NULL; in append_insn()
50 *(pos->pos)++ = new_insn; in append_insn()
55 check_pos(struct bpf_insn_pos *pos) in check_pos() argument
57 if (!pos->pos || pos->pos >= pos->end) in check_pos()
[all …]
Dstrlist.h77 #define strlist__for_each_entry(pos, slist) \ argument
78 for (pos = strlist__first(slist); pos; pos = strlist__next(pos))
87 #define strlist__for_each_entry_safe(pos, n, slist) \ argument
88 for (pos = strlist__first(slist), n = strlist__next(pos); pos;\
89 pos = n, n = strlist__next(n))
Dintlist.h65 #define intlist__for_each_entry(pos, ilist) \ argument
66 for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))
75 #define intlist__for_each_entry_safe(pos, n, ilist) \ argument
76 for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\
77 pos = n, n = intlist__next(n))
Ddsos.c76 struct dso *pos; in __dsos__read_build_ids() local
79 list_for_each_entry(pos, head, node) { in __dsos__read_build_ids()
80 if (with_hits && !pos->hit && !dso__is_vdso(pos)) in __dsos__read_build_ids()
82 if (pos->has_build_id) { in __dsos__read_build_ids()
86 nsinfo__mountns_enter(pos->nsinfo, &nsc); in __dsos__read_build_ids()
87 if (filename__read_build_id(pos->long_name, &pos->bid) > 0) { in __dsos__read_build_ids()
89 pos->has_build_id = true; in __dsos__read_build_ids()
209 struct dso *pos; in __dsos__find_id() local
212 list_for_each_entry(pos, &dsos->head, node) in __dsos__find_id()
213 if (__dso__cmp_short_name(name, id, pos) == 0) in __dsos__find_id()
[all …]
Ds390-cpumsf.c243 static bool s390_cpumsf_basic_show(const char *color, size_t pos, in s390_cpumsf_basic_show() argument
267 pr_err("Invalid AUX trace basic entry [%#08zx]\n", pos); in s390_cpumsf_basic_show()
273 pos, basic->def, basic->U, in s390_cpumsf_basic_show()
287 static bool s390_cpumsf_diag_show(const char *color, size_t pos, in s390_cpumsf_diag_show() argument
300 pr_err("Invalid AUX trace diagnostic entry [%#08zx]\n", pos); in s390_cpumsf_diag_show()
304 pos, diag->def, diag->I ? 'I' : ' '); in s390_cpumsf_diag_show()
322 static bool s390_cpumsf_trailer_show(const char *color, size_t pos, in s390_cpumsf_trailer_show() argument
342 pr_err("Invalid AUX trace trailer entry [%#08zx]\n", pos); in s390_cpumsf_trailer_show()
348 pos, in s390_cpumsf_trailer_show()
420 static bool s390_cpumsf_reached_trailer(size_t entry_sz, size_t pos) in s390_cpumsf_reached_trailer() argument
[all …]
Dmap.h83 #define map__for_each_symbol(map, pos, n) \ argument
84 dso__for_each_symbol(map->dso, pos, n)
93 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
94 for (pos = map__find_symbol_by_name(map, sym_name); \
95 pos && \
96 !symbol__match_symbol_name(pos->name, sym_name, \
98 pos = symbol__next_by_name(pos))
100 #define map__for_each_symbol_by_name(map, sym_name, pos) \ argument
101 __map__for_each_symbol_by_name(map, sym_name, (pos))
Devlist.c73 evlist->ctl_fd.pos = -1; in evlist__init()
137 struct evsel *pos, *n; in evlist__purge() local
139 evlist__for_each_entry_safe(evlist, n, pos) { in evlist__purge()
140 list_del_init(&pos->core.node); in evlist__purge()
141 pos->evlist = NULL; in evlist__purge()
142 evsel__delete(pos); in evlist__purge()
406 static int evsel__strcmp(struct evsel *pos, char *evsel_name) in evsel__strcmp() argument
410 if (evsel__is_dummy_event(pos)) in evsel__strcmp()
412 return strcmp(pos->name, evsel_name); in evsel__strcmp()
417 struct evsel *pos; in evlist__is_enabled() local
[all …]
Dzstd.c66 while (input.pos < input.size) { in zstd_compress_stream_to_records()
82 size = output.pos; in zstd_compress_stream_to_records()
99 while (input.pos < input.size) { in zstd_decompress_stream()
106 output.dst = dst + output.pos; in zstd_decompress_stream()
107 output.size = dst_size - output.pos; in zstd_decompress_stream()
110 return output.pos; in zstd_decompress_stream()
Dmap.c608 struct map *pos, *next; in __maps__purge() local
610 maps__for_each_entry_safe(maps, pos, next) { in __maps__purge()
611 rb_erase_init(&pos->rb_node, &maps->entries); in __maps__purge()
612 map__put(pos); in __maps__purge()
675 struct map *pos; in maps__find_symbol_by_name() local
679 maps__for_each_entry(maps, pos) { in maps__find_symbol_by_name()
680 sym = map__find_symbol_by_name(pos, name); in maps__find_symbol_by_name()
684 if (!map__contains_symbol(pos, sym)) { in maps__find_symbol_by_name()
689 *mapp = pos; in maps__find_symbol_by_name()
718 struct map *pos; in maps__fprintf() local
[all …]
Dbuild-id.c303 #define dsos__for_each_with_build_id(pos, head) \ argument
304 list_for_each_entry(pos, head, node) \
305 if (!pos->has_build_id) \
338 struct dso *pos; in machine__write_buildid_table() local
347 dsos__for_each_with_build_id(pos, &machine->dsos.head) { in machine__write_buildid_table()
352 if (!pos->hit && !dso__is_vdso(pos)) in machine__write_buildid_table()
355 if (dso__is_vdso(pos)) { in machine__write_buildid_table()
356 name = pos->short_name; in machine__write_buildid_table()
357 name_len = pos->short_name_len; in machine__write_buildid_table()
358 } else if (dso__is_kcore(pos)) { in machine__write_buildid_table()
[all …]
/tools/include/linux/
Dlist.h392 #define list_next_entry(pos, member) \ argument
393 list_entry((pos)->member.next, typeof(*(pos)), member)
400 #define list_prev_entry(pos, member) \ argument
401 list_entry((pos)->member.prev, typeof(*(pos)), member)
408 #define list_for_each(pos, head) \ argument
409 for (pos = (head)->next; pos != (head); pos = pos->next)
416 #define list_for_each_prev(pos, head) \ argument
417 for (pos = (head)->prev; pos != (head); pos = pos->prev)
425 #define list_for_each_safe(pos, n, head) \ argument
426 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
/tools/perf/pmu-events/
Djsmn.c66 start = parser->pos; in jsmn_parse_primitive()
68 for (; parser->pos < len; parser->pos++) { in jsmn_parse_primitive()
69 switch (js[parser->pos]) { in jsmn_parse_primitive()
88 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
89 parser->pos = start; in jsmn_parse_primitive()
98 parser->pos = start; in jsmn_parse_primitive()
105 parser->pos = start; in jsmn_parse_primitive()
108 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive()
109 parser->pos--; /* parent sees closing brackets */ in jsmn_parse_primitive()
121 int start = parser->pos; in jsmn_parse_string()
[all …]
/tools/lib/perf/include/perf/
Devlist.h26 #define perf_evlist__for_each_evsel(evlist, pos) \ argument
27 for ((pos) = perf_evlist__next((evlist), NULL); \
28 (pos) != NULL; \
29 (pos) = perf_evlist__next((evlist), (pos)))
44 #define perf_evlist__for_each_mmap(evlist, pos, overwrite) \ argument
45 for ((pos) = perf_evlist__next_mmap((evlist), NULL, overwrite); \
46 (pos) != NULL; \
47 (pos) = perf_evlist__next_mmap((evlist), (pos), overwrite))
/tools/usb/usbip/libsrc/
Dlist.h111 #define list_for_each(pos, head) \ argument
112 for (pos = (head)->next; pos != (head); pos = pos->next)
120 #define list_for_each_safe(pos, n, head) \ argument
121 for (pos = (head)->next, n = pos->next; pos != (head); \
122 pos = n, n = pos->next)
/tools/perf/ui/browsers/
Dheader.c100 char *ptr, *pos; in tui__header_window() local
108 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window()
115 argv[0] = pos = ptr; in tui__header_window()
116 for (i = 1; (pos = strchr(pos, '\n')) != NULL; i++) { in tui__header_window()
117 *pos++ = '\0'; in tui__header_window()
118 argv[i] = pos; in tui__header_window()
Dannotate.c130 struct disasm_line *pos = list_prev_entry(cursor, al.node); in is_fused() local
134 while (pos && pos->al.offset == -1) { in is_fused()
135 pos = list_prev_entry(pos, al.node); in is_fused()
140 if (!pos) in is_fused()
143 if (ins__is_lock(&pos->ins)) in is_fused()
144 name = pos->ops.locked.ins.name; in is_fused()
146 name = pos->ins.name; in is_fused()
276 struct annotation_line *pos, u32 idx) in annotate_browser__set_top() argument
286 pos = list_entry(pos->node.prev, struct annotation_line, node); in annotate_browser__set_top()
288 if (annotation_line__filter(pos, notes)) in annotate_browser__set_top()
[all …]
/tools/power/cpupower/lib/
Dcpufreq.c267 unsigned int pos, i; in cpufreq_get_available_governors() local
275 pos = 0; in cpufreq_get_available_governors()
278 if (i - pos < 2) in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
298 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
299 current->governor[i - pos] = '\0'; in cpufreq_get_available_governors()
300 pos = i + 1; in cpufreq_get_available_governors()
342 unsigned int pos, i; in cpufreq_get_available_frequencies() local
350 pos = 0; in cpufreq_get_available_frequencies()
353 if (i - pos < 2) in cpufreq_get_available_frequencies()
[all …]
/tools/perf/
Dbuiltin-buildid-cache.c225 struct str_node *pos; in build_id_cache__purge_path() local
232 strlist__for_each_entry(pos, list) { in build_id_cache__purge_path()
233 err = build_id_cache__remove_s(pos->s); in build_id_cache__purge_path()
234 pr_debug("Removing %s %s: %s\n", pos->s, pathname, in build_id_cache__purge_path()
250 struct str_node *pos; in build_id_cache__purge_all() local
260 strlist__for_each_entry(pos, list) { in build_id_cache__purge_all()
261 buf = build_id_cache__origname(pos->s); in build_id_cache__purge_all()
262 err = build_id_cache__remove_s(pos->s); in build_id_cache__purge_all()
263 pr_debug("Removing %s (%s): %s\n", buf, pos->s, in build_id_cache__purge_all()
365 struct str_node *pos; in cmd_buildid_cache() local
[all …]
Dbuiltin-evlist.c32 struct evsel *pos; in __cmd_evlist() local
52 evlist__for_each_entry(session->evlist, pos) { in __cmd_evlist()
53 evsel__fprintf(pos, details, stdout); in __cmd_evlist()
55 if (pos->core.attr.type == PERF_TYPE_TRACEPOINT) in __cmd_evlist()
/tools/perf/arch/x86/util/
Devent.c20 struct map *pos; in perf_event__synthesize_extra_kmaps() local
31 maps__for_each_entry(kmaps, pos) { in perf_event__synthesize_extra_kmaps()
35 if (!__map__is_extra_kernel_map(pos)) in perf_event__synthesize_extra_kmaps()
38 kmap = map__kmap(pos); in perf_event__synthesize_extra_kmaps()
59 event->mmap.start = pos->start; in perf_event__synthesize_extra_kmaps()
60 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_extra_kmaps()
61 event->mmap.pgoff = pos->pgoff; in perf_event__synthesize_extra_kmaps()
/tools/firewire/
Dlist.h59 #define list_for_each_entry(pos, list, member) \ argument
60 for (pos = list_head(list, typeof(*pos), member); \
61 &pos->member != (list); \
62 pos = list_next(pos, member))
/tools/perf/ui/
Dbrowser.c79 struct list_head *pos) in ui_browser__list_head_filter_entries() argument
82 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_entries()
83 return pos; in ui_browser__list_head_filter_entries()
84 pos = pos->next; in ui_browser__list_head_filter_entries()
85 } while (pos != browser->entries); in ui_browser__list_head_filter_entries()
92 struct list_head *pos) in ui_browser__list_head_filter_prev_entries() argument
95 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_prev_entries()
96 return pos; in ui_browser__list_head_filter_prev_entries()
97 pos = pos->prev; in ui_browser__list_head_filter_prev_entries()
98 } while (pos != browser->entries); in ui_browser__list_head_filter_prev_entries()
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.c48 static void intel_pt_print_data(const unsigned char *buf, int len, uint64_t pos, in intel_pt_print_data() argument
56 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_data()
64 static void intel_pt_print_no_data(uint64_t pos, int indent) in intel_pt_print_no_data() argument
71 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_no_data()
98 uint64_t pos, const unsigned char *buf) in __intel_pt_log_packet() argument
105 intel_pt_print_data(buf, pkt_len, pos, 0); in __intel_pt_log_packet()
/tools/lib/bpf/
Dnlattr.h73 #define libbpf_nla_for_each_attr(pos, head, len, rem) \ argument
74 for (pos = head, rem = len; \
75 nla_ok(pos, rem); \
76 pos = nla_next(pos, &(rem)))
/tools/bpf/bpftool/
Dbtf_dumper.c29 const struct btf_type *func, int pos, int size);
570 pos += snprintf(func_sig + pos, size - pos, \
572 if (pos >= size) \
577 pos = __btf_dumper_type_only(btf, type, func_sig, \
578 pos, size); \
579 if (pos == -1) \
584 char *func_sig, int pos, int size) in __btf_dumper_type_only() argument
593 return pos; in __btf_dumper_type_only()
643 pos = btf_dump_func(btf, func_sig, t, NULL, pos, size); in __btf_dumper_type_only()
644 if (pos == -1) in __btf_dumper_type_only()
[all …]

12345