Lines Matching +full:use +full:- +full:kernel
1 .TH stackcount 8 "2016-01-14" "USER COMMANDS"
3 stackcount \- Count function calls and their stack traces. Uses Linux eBPF/bcc.
5 .B stackcount [\-h] [\-p PID] [\-c CPU] [\-i INTERVAL] [\-D DURATION] [\-T]
6 [\-r] [\-s] [\-P] [\-K] [\-U] [\-v] [\-d] [\-f] [\-\-debug] pattern
9 stack trace, kernel stack and user stack, summarized in-kernel for efficiency.
11 unique stack traces, and their occurrence counts. In addition to kernel and
12 user functions, kernel tracepoints and USDT tracepoint are also supported.
15 If you'd prefer to use regular expressions, use the \-r option.
24 \-h
27 \-r
31 \-s
34 \-P
37 \-K
38 Show kernel stack only.
40 \-U
43 \-T
46 \-v
49 \-d
50 Print a delimiter ("--") in-between the kernel and user stacks.
52 \-\-debug
55 \-i interval
58 \-D duration
60 \-f
63 \-p PID
64 Trace this process ID only (filtered in-kernel).
66 \-c CPU
67 Trace this CPU only (filtered in-kernel).
72 \-r option is used, can include regular expressions.
75 Count kernel and user stack traces for submit_bio():
81 .B stackcount \-d submit_bio
83 Count kernel stack trace only for submit_bio():
85 .B stackcount \-K submit_bio
89 .B stackcount \-U submit_bio
97 .B stackcount \-s ip_output
101 .B stackcount \-sv ip_output
103 Count stacks for kernel functions matching tcp_send*:
109 .B stackcount \-r '^tcp_send.*'
113 .B stackcount \-Ti 5 ip_output
115 Only count stacks when PID 185 is on-CPU:
117 .B stackcount \-p 185 ip_output
121 .B stackcount \-c 1 put_prev_entity
125 .B stackcount \-p 185 c:malloc
129 .B stackcount \-p 185 u:pthread:pthread_create
131 Count stacks for context switch events using a kernel tracepoint:
135 This summarizes unique stack traces in-kernel for efficiency, allowing it to
136 trace a higher rate of function calls than methods that post-process in user
139 optimized code path in the kernel thanks to the new BPF_STACK_TRACE table APIs,
142 10,000/sec would incur negligible overhead. Test before production use. You can
143 also use funccount to get a handle on function call rates first.
154 Unstable - in development.