Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c10 struct sockaddr curr, orig, tmp; in test_probe_user() local
11 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in test_probe_user()
39 memset(&curr, 0, sizeof(curr)); in test_probe_user()
43 memcpy(&orig, &curr, sizeof(curr)); in test_probe_user()
49 connect(sock_fd, &curr, sizeof(curr)); in test_probe_user()
65 in = (struct sockaddr_in *)&curr; in test_probe_user()
66 if (CHECK(memcmp(&curr, &tmp, sizeof(tmp)), "check_kprobe_res", in test_probe_user()
/tools/vm/
Dpage_owner_sort.c35 char *curr = buf, *const buf_end = buf + buf_size; in read_block() local
37 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block()
38 if (*curr == '\n') /* empty line */ in read_block()
39 return curr - buf; in read_block()
40 if (!strncmp(curr, "PFN", 3)) in read_block()
42 curr += strlen(curr); in read_block()
/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/lib/traceevent/
Dkbuffer-parse.c50 unsigned int curr; member
283 void *ptr = kbuf->data + kbuf->curr; in old_update_pointers()
308 kbuf->curr = kbuf->size; in old_update_pointers()
335 kbuf->curr = kbuf->next; in __old_next_event()
393 void *ptr = kbuf->data + kbuf->curr; in update_pointers()
454 kbuf->curr = kbuf->next; in __next_event()
523 kbuf->curr = 0; in kbuffer_load_subbuffer()
593 if (kbuf->curr >= kbuf->size) in kbuffer_read_event()
644 while (kbuf->curr < offset) { in kbuffer_read_at_offset()
678 return kbuf->curr; in kbuffer_curr_index()
[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()
269 dest->first = src->curr; in callchain_cursor_snapshot()
Dthread.c176 struct namespaces *new, *curr = __thread__namespaces(thread); in __thread__set_namespaces() local
184 if (timestamp && curr) { in __thread__set_namespaces()
190 curr = list_next_entry(new, list); in __thread__set_namespaces()
191 curr->end_time = timestamp; in __thread__set_namespaces()
242 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm() local
246 int err = comm__override(curr, str, timestamp, exec); in ____thread__set_comm()
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()
208 nd = rb_next(&curr->rb_node); in symbols__fixup_duplicate()
209 rb_erase_cached(&curr->rb_node, symbols); in symbols__fixup_duplicate()
210 symbol__delete(curr); in symbols__fixup_duplicate()
219 struct symbol *curr, *prev; in symbols__fixup_end() local
224 curr = rb_entry(prevnd, struct symbol, rb_node); in symbols__fixup_end()
[all …]
Dmachine.c2344 if (!cursor->curr) in save_lbr_cursor_node()
2345 cursor->curr = cursor->first; in save_lbr_cursor_node()
2347 cursor->curr = cursor->curr->next; in save_lbr_cursor_node()
2348 memcpy(&lbr_stitch->prev_lbr_cursor[idx], cursor->curr, in save_lbr_cursor_node()
2377 cursor->curr = NULL; in lbr_callchain_add_lbr_ip()
2380 cursor->curr = cursor->first; in lbr_callchain_add_lbr_ip()
2382 cursor->curr = cursor->curr->next; in lbr_callchain_add_lbr_ip()
2405 if (!cursor->curr) in lbr_callchain_add_lbr_ip()
2406 cursor->curr = cursor->first; in lbr_callchain_add_lbr_ip()
2408 cursor->curr = cursor->curr->next; in lbr_callchain_add_lbr_ip()
Dhist.c891 iter->curr = 0; in iter_prepare_branch_entry()
909 int i = iter->curr; in iter_next_branch_entry()
914 if (iter->curr >= iter->total) in iter_next_branch_entry()
932 int i = iter->curr; in iter_add_next_branch_entry()
956 iter->curr++; in iter_add_next_branch_entry()
967 return iter->curr >= iter->total ? 0 : -1; in iter_finish_branch_entry()
1029 iter->curr = 0; in iter_prepare_cumulative_entry()
1051 he_cache[iter->curr++] = he; in iter_add_single_cumulative_entry()
1129 for (i = 0; i < iter->curr; i++) { in iter_add_next_cumulative_entry()
1151 he_cache[iter->curr++] = he; in iter_add_next_cumulative_entry()
Dhist.h123 int curr; member
/tools/perf/tests/
Dbuiltin-test.c377 static bool perf_test__matches(const char *desc, int curr, int argc, const char *argv[]) in perf_test__matches() argument
389 if (nr == curr + 1) in perf_test__matches()
623 int curr = i++; in run_shell_tests() local
631 if (!perf_test__matches(test.desc, curr, argc, argv)) in run_shell_tests()
666 int curr = i++, err; in __cmd_test() local
669 if (!perf_test__matches(t->desc, curr, argc, argv)) { in __cmd_test()
679 if (perf_test__matches(t->subtest.get_desc(subi), curr, argc, argv)) in __cmd_test()
729 if (!perf_test__matches(t->subtest.get_desc(subi), curr, argc, argv)) in __cmd_test()
760 int curr = i++; in perf_test__list_shell() local
766 if (!perf_test__matches(t.desc, curr, argc, argv)) in perf_test__list_shell()
[all …]
/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/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/lib/lockdep/
Dlockdep.c18 void print_irqtrace_events(struct task_struct *curr) in print_irqtrace_events() argument
/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.py1244 curr = self.displayControl('stat')
1245 self.vprint('Display Switched: %s -> %s' % (b4, curr))
1246 if curr != cmd: