stack.9 (a4bf5fb987611aeb78c422312b63b185e39982d7) | stack.9 (a20358302ff8936134fa631b20c57baa2f67f108) |
---|---|
1.\" 2.\" Copyright (c) 2007-2009 Robert N. M. Watson 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26.\" DAMAGE. 27.\" 28.\" $FreeBSD$ 29.\" | 1.\" 2.\" Copyright (c) 2007-2009 Robert N. M. Watson 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26.\" DAMAGE. 27.\" 28.\" $FreeBSD$ 29.\" |
30.Dd June 24, 2009 | 30.Dd November 16, 2011 |
31.Dt STACK 9 32.Os 33.Sh NAME 34.Nm stack 35.Nd kernel thread stack tracing routines 36.Sh SYNOPSIS 37.In sys/param.h 38.In sys/stack.h 39In the kernel configuration file: 40.Cd "options DDB" 41.Cd "options STACK" 42.Ft struct stack * 43.Fn stack_create "void" 44.Ft void 45.Fn stack_destroy "struct stack *st" 46.Ft int 47.Fn stack_put "struct stack *st" "vm_offset_t pc" 48.Ft void | 31.Dt STACK 9 32.Os 33.Sh NAME 34.Nm stack 35.Nd kernel thread stack tracing routines 36.Sh SYNOPSIS 37.In sys/param.h 38.In sys/stack.h 39In the kernel configuration file: 40.Cd "options DDB" 41.Cd "options STACK" 42.Ft struct stack * 43.Fn stack_create "void" 44.Ft void 45.Fn stack_destroy "struct stack *st" 46.Ft int 47.Fn stack_put "struct stack *st" "vm_offset_t pc" 48.Ft void |
49.Fn stack_copy "struct stack *src" "struct stack dst" | 49.Fn stack_copy "const struct stack *src" "struct stack dst" |
50.Ft void 51.Fn stack_zero "struct stack *st" 52.Ft void | 50.Ft void 51.Fn stack_zero "struct stack *st" 52.Ft void |
53.Fn stack_print "struct stack *st" | 53.Fn stack_print "const struct stack *st" |
54.Ft void | 54.Ft void |
55.Fn stack_print_ddb "struct stack *st" | 55.Fn stack_print_ddb "const struct stack *st" |
56.Ft void | 56.Ft void |
57.Fn stack_print_short "struct stack *st" | 57.Fn stack_print_short "const struct stack *st" |
58.Ft void | 58.Ft void |
59.Fn stack_print_short_ddb "struct stack *st" | 59.Fn stack_print_short_ddb "const struct stack *st" |
60.Ft void | 60.Ft void |
61.Fn stack_sbuf_print "struct sbuf sb*" "struct stack *st" | 61.Fn stack_sbuf_print "struct sbuf sb*" "const struct stack *st" |
62.Ft void | 62.Ft void |
63.Fn stack_sbuf_print_ddb "struct sbuf sb*" "struct stack *st" | 63.Fn stack_sbuf_print_ddb "struct sbuf sb*" "const struct stack *st" |
64.Ft void 65.Fn stack_save "struct stack *st" 66.Sh DESCRIPTION 67The 68.Nm 69KPI allows querying of kernel stack trace information and the automated 70generation of kernel stack trace strings for the purposes of debugging and 71tracing. --- 77 unchanged lines hidden --- | 64.Ft void 65.Fn stack_save "struct stack *st" 66.Sh DESCRIPTION 67The 68.Nm 69KPI allows querying of kernel stack trace information and the automated 70generation of kernel stack trace strings for the purposes of debugging and 71tracing. --- 77 unchanged lines hidden --- |