Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x arg [=val]] command [arg]...
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x arg [=val]] -p pid
plockstat gathers data until the specified command completes or the process specified with the -p option completes.
plockstat relies on DTrace to instrument a running process or a command it invokes to trace events of interest. This imposes a small but measurable performance overhead on the processes being observed. Users must have the dtrace_proc privilege and have permission to observe a particular process with plockstat. Refer to the Dynamic Tracing Guide for more information about DTrace security features.
Watch all lock events. This option is equivalent to -CH.
Watch contention events.
Watch hold events.
Exit after the number of seconds specified have elapsed.
Display only the specified number of entries for each output category.
Record a stack trace rather than just the calling function.
Specify a process ID from which plockstat is to gather data.
Print out a message to indicate that tracing has started.
Enable or modify a DTrace runtime option or D compiler option. The list of options is found in the Dynamic Tracing Guide. Boolean options are enabled by specifying their name. Options with values are set by separating the option name and value with an equals sign (=).
Print the DTrace commands used to gather the data. The output can then be used directly with the dtrace(8) command.
A string to be passed as an argument to command.
The name of a utility to be invoked.
A positive integer value.
A process identifier for a process to be monitored.
Duration specified as a positive integer number of seconds.
Successful completion.
An error occurred.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability See below. |
The command-line syntax is Evolving. The human-readable output is Unstable.
Dynamic Tracing Guide:
https://illumos.org/books/dtrace/