Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 20 of 20) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c17 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/
Dprogress.c18 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()
Dprogress.h11 u64 curr, next, step, total; member
/tools/testing/selftests/bpf/progs/
Dcpumask_failure.c170 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/
Dbuiltin-test.c187 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/
Dcallchain.h168 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()
Dthread.c167 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()
Dmaps.c599 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()
Dsymbol.c184 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 …]
Dmachine.c2535 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()
Dhist.c905 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()
Dhist.h129 int curr; member
/tools/perf/ui/gtk/
Dprogress.c12 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/
Dlock_contention.bpf.c238 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/
Din_kernel.c277 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/
Dprogress.c21 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/
Dpage_owner_sort.c105 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/
Dringbuf.c550 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/
Dbuiltin-daemon.c676 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/
Dsleepgraph.py1332 curr = self.displayControl('stat')
1333 self.vprint('Display Switched: %s -> %s' % (b4, curr))
1334 if curr != cmd: