Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

plockstat(1) [mojave man page]

PLOCKSTAT(1)															      PLOCKSTAT(1)

NAME
plockstat - front-end to DTrace to print statistics about POSIX mutexes and read/write locks SYNOPSIS
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]] command [arg...] plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]] -p pid OVERVIEW
The plockstat command is a front-end to DTrace that can be used to print statistics about POSIX mutexes and read/write locks. Since OS X 10.11, in order to use this, your process must be run with DYLD_LIBRARY_PATH set to contain /usr/lib/system/introspection: DYLD_LIBRARY_PATH=/usr/lib/system/introspection Which contains the necessary static DTrace probes. OPTIONS
-v print a message when tracing starts -A trace contention and hold events (same as -CH) -C trace contention events for mutexes and rwlocks -H trace hold events for mutexes and rwlocks -V print the dtrace script to run -n count display only 'count' entries for each event type -s depth show stack trace upto 'depth' entries -e secs exit after specified seconds -x arg[=val] enable a DTrace runtime option or a D compiler option -p pid attach and trace the specified process id SEE ALSO
dtrace(1) 1.0 July 2007 PLOCKSTAT(1)

Check Out this Related Man Page

libdtrace(3LIB) 						Interface Libraries						   libdtrace(3LIB)

NAME
libdtrace - DTrace dynamic tracing software library DESCRIPTION
Functions in this library define the interface for interacting with the DTrace dynamic tracing software, including the D language compiler and facilities for enabling probes and consuming trace data. INTERFACES
The interfaces provided by libdtrace.so.1 are currently private to the implementation of the Solaris system and DTrace subsystem and are subject to change at any time without notice. Applications using these interfaces might fail to run on future releases. Refer to the Solaris Dynamic Tracing Guide for a description of the public documented interfaces available for the DTrace facility. FILES
/usr/lib/libdtrace.so.1 shared object /usr/lib/64/libdtrace.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdtrc | |Interface Stability |Private | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
dtrace(1M), attributes(5), dtrace(7D) Solaris Dynamic Tracing Guide SunOS 5.11 17 Sep 2003 libdtrace(3LIB)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cuting String?

Hi, In my script I am getting $i value is "/opt/msc/arb/Server/transactionData/orders/print/processed/PE186_.ps" I need to get only this value "PE186_.ps".. how to get? (2 Replies)
Discussion started by: redlotus72
2 Replies

2. Shell Programming and Scripting

How print number

Hi, I am using for loop as follow: for n in `ls` do echo "$n" done The code is running fine and aI am getting valid output as: jick zenny assi yogi But 1also want to print count in front of each output like this: 1 jick 2 zenny (4 Replies)
Discussion started by: bisla.yogender
4 Replies

3. Shell Programming and Scripting

tail command not show on screen

Hi, I'm moniroting duplicate text with unix command (tail -f trace75747 | grep 'duplicate'), but it showed many lines then it stop show trace information although trace information in this file trace75747 always got. What should I do? I look forward to hearing from you. THANKS! (10 Replies)
Discussion started by: seyha_moth
10 Replies

4. UNIX for Dummies Questions & Answers

DYLD_LIBRARY_PATH not getting set in a script file

Hi all! I'm a Unix noob, (just got my first os x machine, the aluminum Macbook 2.4GHz) and installed ns2 (network simulator) on it. NS2 requires you to add a path to the DYLD_LIBRARY_PATH and TCL_LIBRARY variables, which I set successfully using these commands from the command prompt: export... (2 Replies)
Discussion started by: Dorna
2 Replies

5. AIX

How to trace cpu/memory usage for a process

I don't know when the process will start and end, I need write a script to trace it's cpu/memory usage when it is runing. How to write this script? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

6. Shell Programming and Scripting

Output of prstat for 60 secs

Hi, I want to fire the prstat command which should run fro 60 secs and get the report into a text file using a script. I just know the command: prstat -c >> log.txt which will run until we stop it. But i want the script to run only for 60 sec,print the output to text file and stop... (3 Replies)
Discussion started by: nessj
3 Replies

7. Shell Programming and Scripting

help with awk - NF

Is it possible to pass a dynamic value or value from a variable to NF in order to print that specific field..or can we use anyother command? Pls throw some light here... val=2 echo "REM NAAM,PATH SOUTHERN CENRTA REM NAAM,MARKET,SCAN, 0000000000000004228654." |awk -F, 'NF="$val" {print $NF}' ... (9 Replies)
Discussion started by: michaelrozar17
9 Replies

8. Shell Programming and Scripting

file descriptor count

I am trying to write a script which will only show me the file descriptor count for a process/pid. My script will return me the count only not the whole output. For example, I would like my script to return the output 23 this case, not the whole output. Can anybody please help me how do I get... (11 Replies)
Discussion started by: mohullah
11 Replies

9. UNIX for Dummies Questions & Answers

Find the missing file and print

Hi , i will be getting 24 files for one day with a formate like 20131028_01 - 20131028_24 kind of ,i am trying to write a shell script to count the number of files and if the count is not equal to 24 print the missing files names for A in `seq 0 23`; do ls *20131024_`printf "%02d" $A`*;... (3 Replies)
Discussion started by: vikatakavi
3 Replies