Controls kernel lock tracing.
locktrace [ -r ClassName | -s ClassName | -S | -R | -l ]
The locktrace command controls which kernel locks are being traced by the trace subsystem. The default is to trace none. If the machine has been rebooted after running the bosboot -L command, kernel lock tracing can be turned on or off for one or more individual lock classes, or for all lock classes. If bosboot -L was not run, lock tracing can only be turned on for all locks or none. The trace events collected in this case when locks are taken or missed (hook id 112), and released (hook id 113) do not have the lock class name available.
|-r classname||Turn off lock tracing for all the kernel locks belonging to the specified class. This option always fails if bosboot -L was not run.|
|-s classname||Turn on lock tracing for all the kernel locks belonging to the specified class. This option always fails if bosboot -L has not been executed.|
|-R||Turn off all lock tracing.|
|-S||Turn on lock tracing for all locks regardless of their class membership.|
|-l||List kernel lock tracing current status.|
locktrace -s SEM_LOCK_CLASS
|/usr/bin/locktrace||Contains the locktrace command.|
|/usr/include/sys/ockname.h||Contains the lock class names.|
The bosboot command, and the trace command.