Lines Matching refs:arg
217 static unsigned long lookup_addr(char *arg) in lookup_addr() argument
222 if (strcmp(arg, cached_arg)) { in lookup_addr()
223 strscpy(cached_arg, arg, KSYM_NAME_LEN); in lookup_addr()
224 cached_addr = kallsyms_lookup_name(arg); in lookup_addr()
231 static void break_helper(char *bp_type, char *arg, unsigned long vaddr) in break_helper() argument
235 if (arg) in break_helper()
236 addr = lookup_addr(arg); in break_helper()
245 static void sw_break(char *arg) in sw_break() argument
247 break_helper(force_hwbrks ? "Z1" : "Z0", arg, 0); in sw_break()
250 static void sw_rem_break(char *arg) in sw_rem_break() argument
252 break_helper(force_hwbrks ? "z1" : "z0", arg, 0); in sw_rem_break()
255 static void hw_break(char *arg) in hw_break() argument
257 break_helper("Z1", arg, 0); in hw_break()
260 static void hw_rem_break(char *arg) in hw_rem_break() argument
262 break_helper("z1", arg, 0); in hw_rem_break()
265 static void hw_write_break(char *arg) in hw_write_break() argument
267 break_helper("Z2", arg, 0); in hw_write_break()
270 static void hw_rem_write_break(char *arg) in hw_rem_write_break() argument
272 break_helper("z2", arg, 0); in hw_rem_write_break()
275 static void hw_access_break(char *arg) in hw_access_break() argument
277 break_helper("Z4", arg, 0); in hw_access_break()
280 static void hw_rem_access_break(char *arg) in hw_rem_access_break() argument
282 break_helper("z4", arg, 0); in hw_rem_access_break()
295 static int get_thread_id_continue(char *put_str, char *arg) in get_thread_id_continue() argument
305 static int check_and_rewind_pc(char *put_str, char *arg) in check_and_rewind_pc() argument
307 unsigned long addr = lookup_addr(arg); in check_and_rewind_pc()
324 ((!strcmp(arg, "do_sys_openat2") || !strcmp(arg, "kernel_clone")))) { in check_and_rewind_pc()
328 } else if (strcmp(arg, "silent") && ip + offset != addr) { in check_and_rewind_pc()
342 static int check_single_step(char *put_str, char *arg) in check_single_step() argument
344 unsigned long addr = lookup_addr(arg); in check_single_step()
388 static void write_regs(char *arg) in write_regs() argument
397 static void skip_back_repeat_test(char *arg) in skip_back_repeat_test() argument
399 int go_back = simple_strtol(arg, NULL, 10); in skip_back_repeat_test()
413 static int got_break(char *put_str, char *arg) in got_break() argument
416 if (!strncmp(put_str+1, arg, 2)) { in got_break()
417 if (!strncmp(arg, "T0", 2)) in got_break()
424 static void get_cont_catch(char *arg) in get_cont_catch() argument
430 static int put_cont_catch(char *put_str, char *arg) in put_cont_catch() argument
438 static int emul_reset(char *put_str, char *arg) in emul_reset() argument
449 static void emul_sstep_get(char *arg) in emul_sstep_get() argument
456 fill_get_buf(arg); in emul_sstep_get()
484 static int emul_sstep_put(char *put_str, char *arg) in emul_sstep_put() argument
536 static int final_ack_set(char *put_str, char *arg) in final_ack_set() argument
538 if (strncmp(put_str+1, arg, 2)) in final_ack_set()