This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



lastwords(1m)                                   USER COMMANDS                                  lastwords(1m)



NAME
       lastwords - print syscalls before exit. Uses DTrace.

SYNOPSIS
       lastwords command

DESCRIPTION
       This  prints  the  last  few system calls for processes matching the given name, when they exit. This
       makes use of a ring buffer so that the impact on the system is minimised.

       Since this uses DTrace, only users with root privileges can run this command.

EXAMPLES
       Catch last few syscalls for dying netscape processes,
              # lastwords netscape


FIELDS
       TIME   time of syscall return, ns

       PID    process ID

       EXEC   process name (execname)

       SYSCALL
              system call

       RETURN return value for the system call

       ERR    errno for the system call


BASED ON
       /usr/demo/dtrace/ring.d


DOCUMENTATION
       DTrace Guide "Buffers and Buffering" chapter (docs.sun.com)

       See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs  may
       include full worked examples with verbose descriptions explaining the output.

EXIT
       lastwords will sample until a command with that name exits.

SEE ALSO
       dtruss(1M), dtrace(1M)




version 0.70                                    Jun 08, 2005                                   lastwords(1m)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.