Lines Matching full:stack
32 .Nm stack
33 .Nd kernel thread stack tracing routines
40 .Cd "options STACK"
45 .Fn stack_destroy "struct stack *st"
47 .Fn stack_put "struct stack *st" "vm_offset_t pc"
49 .Fn stack_copy "const struct stack *src" "struct stack *dst"
51 .Fn stack_zero "struct stack *st"
53 .Fn stack_print "const struct stack *st"
55 .Fn stack_print_ddb "const struct stack *st"
57 .Fn stack_print_short "const struct stack *st"
59 .Fn stack_print_short_ddb "const struct stack *st"
61 .Fn stack_sbuf_print "struct sbuf *sb" "const struct stack *st"
63 .Fn stack_sbuf_print_ddb "struct sbuf *sb" "const struct stack *st"
65 .Fn stack_save "struct stack *st"
67 .Fn stack_save_td "struct stack *st" "struct thread *td"
71 KPI allows querying of kernel stack trace information and the automated
72 generation of kernel stack trace strings for the purposes of debugging and
77 .Cd "options STACK"
80 Each stack trace is described by a
81 .Vt "struct stack" .
82 It can be declared in the usual ways, including on the stack, and optionally
95 A trace of the current thread's kernel call stack may be captured using
98 can be used to capture the kernel stack of a caller-specified thread.
102 and the thread's stack must not be swapped out.
104 can capture the kernel stack of a running thread, though note that this is
112 may be used to print a stack trace using the kernel
151 may be used to manipulate stack data structures directly.
156 .Dv struct stack
161 returns 0 when the stack capture was successful and a non-zero error number