1 .TH lastwords 1m "$Date:: 2007-08-05 #$" "USER COMMANDS"
3 lastwords \- print syscalls before exit. Uses DTrace.
7 This prints the last few system calls for processes matching
8 the given name, when they exit. This makes use of a ring buffer
9 so that the impact on the system is minimised.
11 Since this uses DTrace, only the root user or users with the
12 dtrace_kernel privilege can run this command.
16 stable - needs the syscall and proc providers.
19 Catch last few syscalls for dying netscape processes,
26 time of syscall return, ns
32 process name (execname)
38 return value for the system call
41 errno for the system call
44 /usr/demo/dtrace/ring.d
47 DTrace Guide "Buffers and Buffering" chapter (docs.sun.com)
49 See the DTraceToolkit for further documentation under the
50 Docs directory. The DTraceToolkit docs may include full worked
51 examples with verbose descriptions explaining the output.
53 lastwords will sample until a command with that name exits.
55 dtruss(1M), dtrace(1M)