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.
locktrace -s SEM_LOCK_CLASS
locktrace -R
/usr/bin/locktrace | Contains the locktrace command. |
/usr/include/sys/ockname.h | Contains the lock class names. |
The bosboot command, and the trace command.