1uthreads(8) System Manager's Manual uthreads(8)
2
3
4
6 uthreads, cthreads, javathreads - Trace thread creation events in Java
7 or pthreads.
8
10 cthreads [-h] [-v] pid javathreads [-h] [-v] pid uthreads [-h] [-l
11 {c,java,none}] [-v] pid
12
14 This traces thread creation events in Java processes, or pthread cre‐
15 ation events in any process. When a thread is created, its name or
16 start address is printed.
17
18 Since this uses BPF, only the root user can use this tool.
19
21 CONFIG_BPF and bcc.
22
24 -l {c,java,none}
25 The language to trace. C and none select tracing pthreads only,
26 regardless of the runtime being traced.
27
28 -v Print the resulting BPF program, for debugging purposes.
29
30 pid The process id to trace.
31
33 Trace Java thread creations:
34 # uthreads -l java 148
35
36 Trace pthread creations:
37 # uthreads 1802
38
40 TIME The event's time in seconds from the beginning of the trace.
41
42 ID The thread's ID. The information in this column depends on the
43 runtime.
44
45 TYPE Event type -- thread start, stop, or pthread event.
46
47 DESCRIPTION
48 The thread's name or start address function name.
49
51 Thread start and stop events are usually not very frequent, which makes
52 this tool's overhead negligible.
53
55 This is from bcc.
56
57 https://github.com/iovisor/bcc
58
59 Also look in the bcc distribution for a companion _example.txt file
60 containing example usage, output, and commentary for this tool.
61
63 Linux
64
66 Unstable - in development.
67
69 Sasha Goldshtein
70
72 ustat(8), trace(8)
73
74
75
76USER COMMANDS 2018-10-09 uthreads(8)