1 The following is a demonstration of the syscallbypid.d script,
4 Here we run syscallbypid.d for a few seconds then hit Ctrl-C,
7 Tracing... Hit Ctrl-C to end.
10 11039 dtrace setcontext 1
11 11039 dtrace lwp_sigmask 1
13 357 poold lwp_cond_wait 1
14 27328 java_vm lwp_cond_wait 1
16 11039 dtrace lwp_park 1
17 11039 dtrace schedctl 1
19 361 sendmail pollsys 1
20 11039 dtrace fstat64 1
21 11039 dtrace sigaction 2
23 361 sendmail lwp_sigmask 2
24 1659 mozilla-bin yield 2
25 11039 dtrace sysconfig 3
32 1532 Xorg setcontext 8
33 1532 Xorg lwp_sigmask 8
36 1659 mozilla-bin read 16
37 20317 sshd lwp_sigmask 16
38 1532 Xorg setitimer 17
39 27328 java_vm pollsys 18
41 11039 dtrace p_online 21
43 1659 mozilla-bin write 25
44 1659 mozilla-bin lwp_park 26
46 1659 mozilla-bin pollsys 155
47 1659 mozilla-bin ioctl 306
49 In the above output, we can see that "mozilla-bin" with PID 1659 made the
50 most system calls - 306 ioctl()s.