Lines Matching refs:tf

79 get_esp(struct trapframe *tf)  in get_esp()  argument
81 return (TF_HAS_STACKREGS(tf) ? tf->tf_esp : (intptr_t)&tf->tf_esp); in get_esp()
260 struct trapframe *tf; in db_nextframe() local
344 tf = (struct trapframe *)(*fp)->f_frame; in db_nextframe()
350 if (tf == NULL) { in db_nextframe()
357 esp = get_esp(tf); in db_nextframe()
358 eip = tf->tf_eip; in db_nextframe()
359 ebp = tf->tf_ebp; in db_nextframe()
362 db_printf("--- trap %#r", tf->tf_trapno); in db_nextframe()
366 db_decode_syscall(td, tf->tf_eax); in db_nextframe()
384 if (!TRAPF_USERMODE(tf)) in db_nextframe()
398 db_backtrace(struct thread *td, struct trapframe *tf, struct i386_frame *frame, in db_backtrace() argument
411 if (db_segsize(tf) == 16) { in db_backtrace()
414 (tf->tf_eflags & PSL_VM) ? " (vm86)" : "", in db_backtrace()
415 tf->tf_cs, tf->tf_eip, in db_backtrace()
416 TF_HAS_STACKREGS(tf) ? tf->tf_ss : rss(), in db_backtrace()
417 TF_HAS_STACKREGS(tf) ? tf->tf_esp : (intptr_t)&tf->tf_esp, in db_backtrace()
418 tf->tf_ebp, tf); in db_backtrace()
485 } else if (tf != NULL) { in db_backtrace()
489 actframe = (void *)(get_esp(tf) - 4); in db_backtrace()
492 actframe = (void *)get_esp(tf); in db_backtrace()
493 if (tf->tf_ebp == 0) { in db_backtrace()
499 actframe = (void *)(get_esp(tf) - 4); in db_backtrace()
502 actframe = (void *)(get_esp(tf) - 4); in db_backtrace()
574 struct trapframe *tf; in db_trace_thread() local
577 tf = thr == kdb_thread ? kdb_frame : NULL; in db_trace_thread()
578 return (db_backtrace(thr, tf, (struct i386_frame *)ctx->pcb_ebp, in db_trace_thread()