diff options
-rw-r--r-- | share/man/man9/Makefile | 1 | ||||
-rw-r--r-- | share/man/man9/stack.9 | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index ffd3bd8..f3257bf 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1070,6 +1070,7 @@ MLINKS+=spl.9 spl0.9 \ MLINKS+=stack.9 stack_copy.9 \ stack.9 stack_create.9 \ stack.9 stack_destroy.9 \ + stack.9 stack_printf.9 \ stack.9 stack_put.9 \ stack.9 stack_save.9 \ stack.9 stack_sbuf_print.9 \ diff --git a/share/man/man9/stack.9 b/share/man/man9/stack.9 index a47dc16..dabef1a 100644 --- a/share/man/man9/stack.9 +++ b/share/man/man9/stack.9 @@ -50,6 +50,8 @@ In kernel configuration files: .Ft void .Fn stack_zero "struct stack *st" .Ft void +.Fn stack_print "struct stack *st" +.Ft void .Fn stack_sbuf_print "struct sbuf sb*" "struct stack *st" .Ft void .Fn stack_save "struct stack *st" @@ -78,6 +80,10 @@ Memory associated with a trace may be freed by calling A trace of the current kernel thread's call stack may be captured using .Fn stack_save . .Pp +.Fn stack_print +may be used to print a stack trace using the kernel +.Xr printf 9 . +.Pp .Fn stack_sbuf_print may be used to construct a human-readable string, including conversion (where possible) from a simple kernel instruction pointer to a named symbol and @@ -99,7 +105,9 @@ and .Nm stack_put may be used to manipulate stack data structures directly. .Sh SEE ALSO -.Xr DDB 4 +.Xr DDB 4 , +.Xr printf 9 , +.Xr sbuf 9 .Sh AUTHORS .An -nosplit The |