| /tools/include/linux/ |
| A D | list.h | 420 for (pos = (head)->next; pos != (head); pos = pos->next) 428 for (pos = (head)->prev; pos != (head); pos = pos->prev) 437 for (pos = (head)->next, n = pos->next; pos != (head); \ 438 pos = n, n = pos->next) 449 pos = n, n = pos->prev) 708 for (pos = (head)->first; pos ; pos = pos->next) 711 for (pos = (head)->first; pos && ({ n = pos->next; 1; }); \ 728 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) 738 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) 747 pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member)) [all …]
|
| /tools/perf/dlfilters/ |
| A D | dlfilter-show-cycles.c | 49 __u32 pos = tid & MASK; in find_entry() local 52 e = &table[pos]; in find_entry() 56 if (++pos == TABLESZ) in find_entry() 57 pos = 0; in find_entry() 58 e = &table[pos]; in find_entry() 84 int pos; in filter_event_early() local 110 int pos; in filter_event() local 115 print_vals(cycles[cpu][pos], cycles[cpu][pos] - cycles_rpt[cpu][pos]); in filter_event() 116 cycles_rpt[cpu][pos] = cycles[cpu][pos]; in filter_event() 124 print_vals(e->cycles[pos], e->cycles[pos] - e->cycles_rpt[pos]); in filter_event() [all …]
|
| /tools/perf/util/hisi-ptt-decoder/ |
| A D | hisi-ptt-pkt-decoder.c | 96 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_print_pkt() 98 color_fprintf(stdout, color, "%02x ", buf[pos + i]); in hisi_ptt_print_pkt() 111 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_8dw_kpt_desc() 116 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_8dw_kpt_desc() 128 dw0.value = *(uint32_t *)(buf + pos); in hisi_ptt_4dw_print_dw0() 130 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_4dw_print_dw0() 147 hisi_ptt_4dw_print_dw0(buf, pos); in hisi_ptt_4dw_kpt_desc() 148 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_4dw_kpt_desc() 152 pos += HISI_PTT_FIELD_LENTH; in hisi_ptt_4dw_kpt_desc() 161 return hisi_ptt_8dw_kpt_desc(buf, pos); in hisi_ptt_pkt_desc() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | mptcp_bpf.h | 20 #define list_next_entry(pos, member) \ argument 21 list_entry((pos)->member.next, typeof(*(pos)), member) 23 #define list_entry_is_head(pos, head, member) \ argument 24 list_is_head(&pos->member, (head)) 27 #define list_for_each_entry(pos, head, member) \ argument 28 for (pos = list_first_entry(head, typeof(*pos), member); \ 29 !list_entry_is_head(pos, head, member) && can_loop; \ 30 pos = list_next_entry(pos, member))
|
| A D | iters_task.c | 22 struct task_struct *pos; in iter_task_for_each_sleep() local 29 bpf_for_each(task, pos, NULL, ~0U) { in iter_task_for_each_sleep() 34 bpf_for_each(task, pos, NULL, BPF_TASK_ITER_PROC_THREADS) { in iter_task_for_each_sleep() 39 bpf_for_each(task, pos, NULL, BPF_TASK_ITER_ALL_PROCS) in iter_task_for_each_sleep() 40 if (pos->pid == target_pid) in iter_task_for_each_sleep() 43 bpf_for_each(task, pos, cur_task, BPF_TASK_ITER_PROC_THREADS) in iter_task_for_each_sleep() 46 bpf_for_each(task, pos, NULL, BPF_TASK_ITER_ALL_THREADS) in iter_task_for_each_sleep() 47 if (pos->tgid == target_pid) in iter_task_for_each_sleep()
|
| A D | iters_task_failure.c | 21 struct task_struct *pos; in BPF_PROG() local 23 bpf_for_each(task, pos, NULL, BPF_TASK_ITER_ALL_PROCS) { in BPF_PROG() 35 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG() local 41 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { in BPF_PROG() 52 struct task_struct *pos; in BPF_PROG() local 55 bpf_for_each(task, pos, NULL, BPF_TASK_ITER_ALL_PROCS) { in BPF_PROG() 70 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG() local 77 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { in BPF_PROG()
|
| A D | iters_css.c | 27 struct cgroup_subsys_state *root_css, *leaf_css, *pos; in iter_css_for_each() local 50 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_POST) { in iter_css_for_each() 51 cur_cgrp = pos->cgroup; in iter_css_for_each() 56 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_DESCENDANTS_PRE) { in iter_css_for_each() 57 cur_cgrp = pos->cgroup; in iter_css_for_each() 63 bpf_for_each(css, pos, leaf_css, BPF_CGROUP_ITER_ANCESTORS_UP) in iter_css_for_each() 66 bpf_for_each(css, pos, root_css, BPF_CGROUP_ITER_ANCESTORS_UP) in iter_css_for_each()
|
| /tools/perf/util/ |
| A D | strlist.h | 77 #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))
|
| A D | intlist.h | 65 #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))
|
| A D | trace-event-scripting.c | 343 ret = snprintf(str + pos, size - pos, "%s", prefix); in sample_flags_to_name() 346 pos += ret; in sample_flags_to_name() 358 pos += ret; in sample_flags_to_name() 371 pos += ret; in sample_flags_to_name() 377 ret = snprintf(str + pos, size - pos, "/"); in sample_flags_to_name() 380 pos += ret; in sample_flags_to_name() 384 return pos; in sample_flags_to_name() 393 ret = snprintf(str + pos, size - pos, "%*s", in sample_flags_to_name() 396 ret = snprintf(str + pos, size - pos, " %s", xs); in sample_flags_to_name() 422 if (pos < sz) in perf_sample__sprintf_flags() [all …]
|
| A D | s390-cpumsf.c | 349 pos, in s390_cpumsf_trailer_show() 440 size_t pos = 0; in s390_cpumsf_dump() local 457 while (pos < len) { in s390_cpumsf_dump() 461 pos += bsdes; in s390_cpumsf_dump() 468 pos += dsdes; in s390_cpumsf_dump() 477 pos = (pos + S390_CPUMSF_PAGESZ) in s390_cpumsf_dump() 609 size_t pos = 0; in s390_cpumsf_samples() local 636 while (pos < len) { in s390_cpumsf_samples() 640 pos += bsdes; in s390_cpumsf_samples() 650 pos = (pos + S390_CPUMSF_PAGESZ) in s390_cpumsf_samples() [all …]
|
| A D | evlist.c | 431 struct evsel *pos; in evlist__is_enabled() local 434 if (!evsel__is_group_leader(pos) || !pos->core.fd) in evlist__is_enabled() 445 struct evsel *pos; in __evlist__disable() local 463 if (pos->disabled || !evsel__is_group_leader(pos) || !pos->core.fd) in __evlist__disable() 481 if (!evsel__is_group_leader(pos) || !pos->core.fd) in __evlist__disable() 515 struct evsel *pos; in __evlist__enable() local 530 if (!evsel__is_group_leader(pos) || !pos->core.fd) in __evlist__enable() 540 if (!evsel__is_group_leader(pos) || !pos->core.fd) in __evlist__enable() 1221 return pos; in evlist__find_dup_event_from_prev() 2440 pos = step / 2; in event_enable_timer__process() [all …]
|
| /tools/lib/perf/include/perf/ |
| A D | evlist.h | 26 #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/ |
| A D | list.h | 111 #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/testing/selftests/kvm/include/s390/ |
| A D | debug_print.h | 20 u64 pos; in print_hex_bytes() local 30 for (pos = 0; pos < len; pos += 8) { in print_hex_bytes() 31 if ((pos % 32) == 0) in print_hex_bytes() 32 pr_debug("\n %3lu 0x%.3lx ", pos, pos); in print_hex_bytes() 33 pr_debug(" %16lx", *((u64 *)(addr + pos))); in print_hex_bytes()
|
| /tools/perf/ui/browsers/ |
| A D | header.c | 100 char *ptr, *pos; in tui__header_window() local 107 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window() 114 argv[0] = pos = ptr; in tui__header_window() 115 for (i = 1; (pos = strchr(pos, '\n')) != NULL; i++) { in tui__header_window() 116 *pos++ = '\0'; in tui__header_window() 117 argv[i] = pos; in tui__header_window()
|
| /tools/power/cpupower/lib/ |
| A D | cpufreq.c | 302 pos = 0; in cpufreq_get_available_governors() 325 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors() 327 pos = i + 1; in cpufreq_get_available_governors() 377 pos = 0; in cpufreq_get_available_frequencies() 398 memcpy(one_value, linebuf + pos, i - pos); in cpufreq_get_available_frequencies() 433 pos = 0; in cpufreq_get_boost_frequencies() 454 memcpy(one_value, linebuf + pos, i - pos); in cpufreq_get_boost_frequencies() 508 pos = 0; in sysfs_get_cpu_list() 529 memcpy(one_value, linebuf + pos, i - pos); in sysfs_get_cpu_list() 741 pos = 0; in cpufreq_get_stats() [all …]
|
| /tools/perf/ |
| A D | builtin-buildid-cache.c | 225 struct str_node *pos; in build_id_cache__purge_path() local 232 strlist__for_each_entry(pos, list) { 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() 371 struct str_node *pos; in cmd_buildid_cache() local 469 strlist__for_each_entry(pos, list) in cmd_buildid_cache() 473 pos->s); in cmd_buildid_cache() 487 strlist__for_each_entry(pos, list) in cmd_buildid_cache() 491 pos->s); in cmd_buildid_cache() 509 pos->s); in cmd_buildid_cache() [all …]
|
| A D | builtin-evlist.c | 32 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() 58 if (!evsel__is_group_leader(pos)) in __cmd_evlist()
|
| /tools/include/nolibc/ |
| A D | stdlib.h | 205 dig = in >> pos; in utoh_r() 206 in -= (uint64_t)dig << pos; in utoh_r() 207 pos -= 4; in utoh_r() 213 } while (pos >= 0); in utoh_r() 254 } while (pos--); in utoa_r() 332 signed char pos = 60; in u64toh_r() local 338 dig = (in >> pos) & 0xF; in u64toh_r() 346 pos -= 4; in u64toh_r() 347 if (dig || digits || pos < 0) in u64toh_r() 349 } while (pos >= 0); in u64toh_r() [all …]
|
| A D | string.h | 42 size_t dir, pos; in memmove() local 44 pos = len; in memmove() 48 pos = -1; in memmove() 53 pos += dir; in memmove() 54 ((char *)dst)[pos] = ((const char *)src)[pos]; in memmove() 67 size_t pos = 0; in memcpy() local 69 while (pos < len) { in memcpy() 70 ((char *)dst)[pos] = ((const char *)src)[pos]; in memcpy() 71 pos++; in memcpy()
|
| /tools/perf/arch/x86/util/ |
| A D | evlist.c | 87 struct evsel *pos, *metric_event = NULL; in arch_evlist__add_required_events() local 93 list_for_each_entry(pos, list, core.node) { in arch_evlist__add_required_events() 94 if (arch_is_topdown_slots(pos)) { in arch_evlist__add_required_events() 98 if (metric_event == NULL && arch_is_topdown_metrics(pos)) in arch_evlist__add_required_events() 99 metric_event = pos; in arch_evlist__add_required_events()
|
| /tools/firewire/ |
| A D | list.h | 59 #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/testing/selftests/bpf/ |
| A D | bpf_arena_list.h | 36 #define list_for_each_entry(pos, head, member) \ argument 37 for (void * ___tmp = (pos = list_entry_safe((head)->first, \ 38 typeof(*(pos)), member), \ 40 pos && ({ ___tmp = (void *)pos->member.next; 1; }) && can_loop; \ 41 pos = list_entry_safe((void __arena *)___tmp, typeof(*(pos)), member))
|
| /tools/perf/ui/ |
| A D | browser.c | 83 return pos; in ui_browser__list_head_filter_entries() 84 pos = pos->next; in ui_browser__list_head_filter_entries() 96 return pos; in ui_browser__list_head_filter_prev_entries() 97 pos = pos->prev; in ui_browser__list_head_filter_prev_entries() 116 pos = browser->top; in ui_browser__list_head_seek() 125 assert(pos != NULL); in ui_browser__list_head_seek() 129 pos = ui_browser__list_head_filter_entries(browser, pos->next); in ui_browser__list_head_seek() 132 pos = ui_browser__list_head_filter_prev_entries(browser, pos->prev); in ui_browser__list_head_seek() 135 browser->top = pos; in ui_browser__list_head_seek() 642 char **pos; in ui_browser__argv_refresh() local [all …]
|