Lines Matching refs:arg
214 static unsigned long lookup_addr(char *arg) in lookup_addr() argument
218 if (!strcmp(arg, "kgdbts_break_test")) in lookup_addr()
220 else if (!strcmp(arg, "sys_open")) in lookup_addr()
222 else if (!strcmp(arg, "do_fork")) in lookup_addr()
224 else if (!strcmp(arg, "hw_break_val")) in lookup_addr()
230 static void break_helper(char *bp_type, char *arg, unsigned long vaddr) in break_helper() argument
234 if (arg) in break_helper()
235 addr = lookup_addr(arg); in break_helper()
244 static void sw_break(char *arg) in sw_break() argument
246 break_helper(force_hwbrks ? "Z1" : "Z0", arg, 0); in sw_break()
249 static void sw_rem_break(char *arg) in sw_rem_break() argument
251 break_helper(force_hwbrks ? "z1" : "z0", arg, 0); in sw_rem_break()
254 static void hw_break(char *arg) in hw_break() argument
256 break_helper("Z1", arg, 0); in hw_break()
259 static void hw_rem_break(char *arg) in hw_rem_break() argument
261 break_helper("z1", arg, 0); in hw_rem_break()
264 static void hw_write_break(char *arg) in hw_write_break() argument
266 break_helper("Z2", arg, 0); in hw_write_break()
269 static void hw_rem_write_break(char *arg) in hw_rem_write_break() argument
271 break_helper("z2", arg, 0); in hw_rem_write_break()
274 static void hw_access_break(char *arg) in hw_access_break() argument
276 break_helper("Z4", arg, 0); in hw_access_break()
279 static void hw_rem_access_break(char *arg) in hw_rem_access_break() argument
281 break_helper("z4", arg, 0); in hw_rem_access_break()
294 static int get_thread_id_continue(char *put_str, char *arg) in get_thread_id_continue() argument
304 static int check_and_rewind_pc(char *put_str, char *arg) in check_and_rewind_pc() argument
306 unsigned long addr = lookup_addr(arg); in check_and_rewind_pc()
323 ((!strcmp(arg, "sys_open") || !strcmp(arg, "do_fork")))) { in check_and_rewind_pc()
327 } else if (strcmp(arg, "silent") && ip + offset != addr) { in check_and_rewind_pc()
341 static int check_single_step(char *put_str, char *arg) in check_single_step() argument
343 unsigned long addr = lookup_addr(arg); in check_single_step()
387 static void write_regs(char *arg) in write_regs() argument
396 static void skip_back_repeat_test(char *arg) in skip_back_repeat_test() argument
398 int go_back = simple_strtol(arg, NULL, 10); in skip_back_repeat_test()
408 static int got_break(char *put_str, char *arg) in got_break() argument
411 if (!strncmp(put_str+1, arg, 2)) { in got_break()
412 if (!strncmp(arg, "T0", 2)) in got_break()
419 static void get_cont_catch(char *arg) in get_cont_catch() argument
425 static int put_cont_catch(char *put_str, char *arg) in put_cont_catch() argument
433 static int emul_reset(char *put_str, char *arg) in emul_reset() argument
444 static void emul_sstep_get(char *arg) in emul_sstep_get() argument
451 fill_get_buf(arg); in emul_sstep_get()
479 static int emul_sstep_put(char *put_str, char *arg) in emul_sstep_put() argument
531 static int final_ack_set(char *put_str, char *arg) in final_ack_set() argument
533 if (strncmp(put_str+1, arg, 2)) in final_ack_set()