/tools/testing/selftests/bpf/prog_tests/ |
D | probe_user.c | 17 struct sockaddr curr, orig, tmp; in serial_test_probe_user() local 18 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in serial_test_probe_user() 52 memset(&curr, 0, sizeof(curr)); in serial_test_probe_user() 56 memcpy(&orig, &curr, sizeof(curr)); in serial_test_probe_user() 62 connect(sock_fd, &curr, sizeof(curr)); in serial_test_probe_user() 78 in = (struct sockaddr_in *)&curr; in serial_test_probe_user() 79 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in serial_test_probe_user()
|
/tools/perf/ui/ |
D | progress.c | 18 u64 last = p->curr; in ui_progress__update() 20 p->curr += adv; in ui_progress__update() 22 if (p->curr >= p->next) { in ui_progress__update() 23 u64 nr = DIV_ROUND_UP(p->curr - last, p->step); in ui_progress__update() 33 p->curr = 0; in __ui_progress__init()
|
D | progress.h | 11 u64 curr, next, step, total; member
|
/tools/testing/selftests/bpf/progs/ |
D | cpumask_failure.c | 170 struct bpf_cpumask *prev, *curr; in BPF_PROG() local 172 curr = bpf_cpumask_create(); in BPF_PROG() 173 if (!curr) in BPF_PROG() 176 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG() 181 curr = global_mask; in BPF_PROG() 183 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
|
/tools/perf/tests/ |
D | builtin-test.c | 187 static bool perf_test__matches(const char *desc, int curr, int argc, const char *argv[]) in perf_test__matches() argument 199 if (nr == curr + 1) in perf_test__matches() 335 int curr = i++; in run_shell_tests() local 351 !perf_test__matches(test_suite.desc, curr, argc, argv)) in run_shell_tests() 382 int curr = i++; in __cmd_test() local 385 if (!perf_test__matches(test_description(t, -1), curr, argc, argv)) { in __cmd_test() 393 curr, argc, argv)) in __cmd_test() 438 curr, argc, argv)) in __cmd_test() 459 int curr = i++; in perf_test__list_shell() local 464 if (!perf_test__matches(t.desc, curr, argc, argv)) in perf_test__list_shell() [all …]
|
/tools/perf/util/ |
D | callchain.h | 168 struct callchain_cursor_node *curr; member 214 cursor->curr = cursor->first; in callchain_cursor_commit() 225 return cursor->curr; in callchain_cursor_current() 230 cursor->curr = cursor->curr->next; in callchain_cursor_advance() 271 dest->first = src->curr; in callchain_cursor_snapshot()
|
D | thread.c | 167 struct namespaces *new, *curr = __thread__namespaces(thread); in __thread__set_namespaces() local 175 if (timestamp && curr) { in __thread__set_namespaces() 181 curr = list_next_entry(new, list); in __thread__set_namespaces() 182 curr->end_time = timestamp; in __thread__set_namespaces() 233 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm() local 237 int err = comm__override(curr, str, timestamp, exec); in ____thread__set_comm()
|
D | maps.c | 599 struct map_rb_node *prev = NULL, *curr; in maps__fixup_end() local 603 maps__for_each_entry(maps, curr) { in maps__fixup_end() 605 map__set_end(prev->map, map__start(curr->map)); in maps__fixup_end() 607 prev = curr; in maps__fixup_end() 614 if (curr && !map__end(curr->map)) in maps__fixup_end() 615 map__set_end(curr->map, ~0ULL); in maps__fixup_end()
|
D | symbol.c | 184 struct symbol *curr, *next; in symbols__fixup_duplicate() local 192 curr = rb_entry(nd, struct symbol, rb_node); in symbols__fixup_duplicate() 194 nd = rb_next(&curr->rb_node); in symbols__fixup_duplicate() 200 if (curr->start != next->start) in symbols__fixup_duplicate() 203 if (choose_best_symbol(curr, next) == SYMBOL_A) { in symbols__fixup_duplicate() 205 curr->ifunc_alias = true; in symbols__fixup_duplicate() 210 if (curr->type == STT_GNU_IFUNC) in symbols__fixup_duplicate() 212 nd = rb_next(&curr->rb_node); in symbols__fixup_duplicate() 213 rb_erase_cached(&curr->rb_node, symbols); in symbols__fixup_duplicate() 214 symbol__delete(curr); in symbols__fixup_duplicate() [all …]
|
D | machine.c | 2535 if (!cursor->curr) in save_lbr_cursor_node() 2536 cursor->curr = cursor->first; in save_lbr_cursor_node() 2538 cursor->curr = cursor->curr->next; in save_lbr_cursor_node() 2539 memcpy(&lbr_stitch->prev_lbr_cursor[idx], cursor->curr, in save_lbr_cursor_node() 2568 cursor->curr = NULL; in lbr_callchain_add_lbr_ip() 2571 cursor->curr = cursor->first; in lbr_callchain_add_lbr_ip() 2573 cursor->curr = cursor->curr->next; in lbr_callchain_add_lbr_ip() 2596 if (!cursor->curr) in lbr_callchain_add_lbr_ip() 2597 cursor->curr = cursor->first; in lbr_callchain_add_lbr_ip() 2599 cursor->curr = cursor->curr->next; in lbr_callchain_add_lbr_ip()
|
D | hist.c | 905 iter->curr = 0; in iter_prepare_branch_entry() 923 int i = iter->curr; in iter_next_branch_entry() 928 if (iter->curr >= iter->total) in iter_next_branch_entry() 948 int i = iter->curr; in iter_add_next_branch_entry() 972 iter->curr++; in iter_add_next_branch_entry() 983 return iter->curr >= iter->total ? 0 : -1; in iter_finish_branch_entry() 1049 iter->curr = 0; in iter_prepare_cumulative_entry() 1071 he_cache[iter->curr++] = he; in iter_add_single_cumulative_entry() 1152 for (i = 0; i < iter->curr; i++) { in iter_add_next_cumulative_entry() 1174 he_cache[iter->curr++] = he; in iter_add_next_cumulative_entry()
|
D | hist.h | 129 int curr; member
|
/tools/perf/ui/gtk/ |
D | progress.c | 12 double fraction = p->total ? 1.0 * p->curr / p->total : 0.0; in gtk_ui_progress__update() 35 snprintf(buf, sizeof(buf), "%"PRIu64" / %"PRIu64, p->curr, p->total); in gtk_ui_progress__update()
|
/tools/perf/util/bpf_skel/ |
D | lock_contention.bpf.c | 238 struct task_struct *curr; in check_lock_type() local 246 curr = bpf_get_current_task_btf(); in check_lock_type() 247 if (curr->mm == NULL) in check_lock_type() 249 mm_new = (void *)curr->mm; in check_lock_type() 255 mm_old = (void *)curr->mm; in check_lock_type() 262 curr = bpf_get_current_task_btf(); in check_lock_type() 263 sighand = curr->sighand; in check_lock_type()
|
/tools/verification/rv/src/ |
D | in_kernel.c | 277 char *curr, *next; in ikm_list_monitors() local 287 curr = available_monitors; in ikm_list_monitors() 289 next = strstr(curr, "\n"); in ikm_list_monitors() 292 retval = ikm_fill_monitor_definition(curr, &ikm); in ikm_list_monitors() 294 err_msg("ikm: error reading %d in kernel monitor, skipping\n", curr); in ikm_list_monitors() 297 curr = ++next; in ikm_list_monitors() 299 } while (strlen(curr)); in ikm_list_monitors()
|
/tools/perf/ui/tui/ |
D | progress.c | 21 ret = unit_number__scnprintf(buf_cur, sizeof(buf_cur), p->curr); in get_title() 56 bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total; in tui_progress__update()
|
/tools/mm/ |
D | page_owner_sort.c | 105 char *curr = buf, *const buf_end = buf + buf_size; in read_block() local 107 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block() 108 if (*curr == '\n') { /* empty line */ in read_block() 109 return curr - buf; in read_block() 111 if (!strncmp(curr, "PFN", 3)) { in read_block() 112 strcpy(ext_buf, curr); in read_block() 115 curr += strlen(curr); in read_block()
|
/tools/lib/bpf/ |
D | ringbuf.c | 550 struct timespec curr; in user_ring_buffer__reserve_blocking() local 577 err = clock_gettime(CLOCK_MONOTONIC, &curr); in user_ring_buffer__reserve_blocking() 581 ms_elapsed = ns_elapsed_timespec(&start, &curr) / ns_per_ms; in user_ring_buffer__reserve_blocking()
|
/tools/perf/ |
D | builtin-daemon.c | 676 time_t curr = time(NULL); in cmd_session_list() local 693 csv_sep, (curr - daemon->start) / 60); in cmd_session_list() 704 (curr - daemon->start) / 60); in cmd_session_list() 732 csv_sep, (curr - session->start) / 60); in cmd_session_list() 749 (curr - session->start) / 60); in cmd_session_list()
|
/tools/power/pm-graph/ |
D | sleepgraph.py | 1332 curr = self.displayControl('stat') 1333 self.vprint('Display Switched: %s -> %s' % (b4, curr)) 1334 if curr != cmd:
|