Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perf-lock(1) [centos man page]

PERF-LOCK(1)							    perf Manual 						      PERF-LOCK(1)

NAME
perf-lock - Analyze lock events SYNOPSIS
perf lock {record|report|script|info} DESCRIPTION
You can analyze various lock behaviours and statistics with this perf lock command. 'perf lock record <command>' records lock events between start and end <command>. And this command produces the file "perf.data" which contains tracing results of lock events. 'perf lock report' reports statistical data. 'perf lock script' shows raw lock events. 'perf lock info' shows metadata like threads or addresses of lock instances. COMMON OPTIONS
-i, --input=<file> Input file name. (default: perf.data unless stdin is a fifo) -v, --verbose Be more verbose (show symbol address, etc). -D, --dump-raw-trace Dump raw trace in ASCII. REPORT OPTIONS
-k, --key=<value> Sorting key. Possible values: acquired (default), contended, wait_total, wait_max, wait_min. INFO OPTIONS
-t, --threads dump thread list in perf.data -m, --map dump map of lock instances (address:name table) SEE ALSO
perf(1) perf 06/30/2014 PERF-LOCK(1)

Check Out this Related Man Page

PERF-INJECT(1)							    perf Manual 						    PERF-INJECT(1)

NAME
perf-inject - Filter to augment the events stream with additional information SYNOPSIS
perf inject <options> DESCRIPTION
perf-inject reads a perf-record event stream and repipes it to stdout. At any point the processing code can inject other events into the event stream - in this case build-ids (-b option) are read and injected as needed into the event stream. Build-ids are just the first user of perf-inject - potentially anything that needs userspace processing to augment the events stream with additional information could make use of this facility. OPTIONS
-b, --build-ids= Inject build-ids into the output stream -v, --verbose Be more verbose. -i, --input= Input file name. (default: stdin) -o, --output= Output file name. (default: stdout) -s, --sched-stat Merge sched_stat and sched_switch for getting events where and how long tasks slept. sched_switch contains a callchain where a task slept and sched_stat contains a timeslice how long a task slept. SEE ALSO
perf-record(1), perf-report(1), perf-archive(1) perf 06/30/2014 PERF-INJECT(1)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to lock keyboard without using lock command

how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device? thanks (7 Replies)
Discussion started by: dianayun
7 Replies

2. Shell Programming and Scripting

Shell - PLSQL multiple process problem.

I have a Shell Script which runs a PLSQL stored proc. Here is the summary: - create LOCK file - check if LOCK exist, if exists, abort. - run Stored Proc and insert/update DB - remove LOCK file The problem is in random cases, some records are inserted 2x (with exactly the same data,date... (1 Reply)
Discussion started by: deepsweech
1 Replies

3. Shell Programming and Scripting

Problem while execution of second set of commands

Hi, I have a shell script with code . perf.env cd $QRY_DIR for SHELL_FILE in sql1 do export SNAME=$SHELL_FILE ${SCRIPT_DIR}/perf_qry.sh ${SPOOL_DIR} ${DB_ENVNAME} ${NAME} & RC=$(expr ${RC:-0} + $? ) sleep 60 if then echo sysdate>test1 echo query1.txt>>test1 grep -i... (0 Replies)
Discussion started by: ran16
0 Replies

4. Shell Programming and Scripting

No lock file: Preventing multiple instance of a script

I've been bitten by using a lock or pid file to prevent multiple instances of a script. A user typed kill -9, and the pid file didn't go away. You can't trap -9. So when he tried to restart, it said "already running", and I got trouble report. Argh. So here's what we came up with: # Stop if... (1 Reply)
Discussion started by: McFadden586
1 Replies

5. Red Hat

perf provides <not counted> for multiple fields

Hi, I am trying to find the number of cache misses that are caused by my code. The best way I could find was to use the perf command. After running command: perf stat dd if=/dev/zero of=/dev/null count=100, the output I got is: 1.812057 task-clock-msecs # 0.876 CPUs ... (0 Replies)
Discussion started by: fidelity
0 Replies

6. Shell Programming and Scripting

Creating Dynamic Variables from a Flat File

Greetings all, Been trying to do my Googling and forum searches but can't seem to lock in on a solution. I have a script that parses a log and collects all the uniq events to a flat file. Some days might have 50 unique events, other days might have 75. (Hence my reference to dynamic.) ... (2 Replies)
Discussion started by: sjrupp
2 Replies

7. UNIX for Advanced & Expert Users

awk slowing down -- why?

I have an awk script that extracts data from log files and generates a report. The script is incrementing elements in arrays, summing fields depending on contents of other fields, and then in END performing some operations on those arrays. It seemed to be taking longer than it should on my... (6 Replies)
Discussion started by: treesloth
6 Replies

8. UNIX for Advanced & Expert Users

Redhat - IO performance measurement

Hi Currently we have SAN setup in our Redhat Environment. I have used iostat tool and ran it couple of times, i think there is IO bottle neck. Can anyone suggest any other tools or help me how to perform multiple Reads/Writes to test its performance (1 Reply)
Discussion started by: rakeshkumar
1 Replies

9. HP-UX

Reason to keep old /var/opt/perf/datafiles/logproc files

Would there be a reason to keep old logproc files that have been tarred up for any longer than a few days? (1 Reply)
Discussion started by: jeffbusz
1 Replies

10. Linux

Not able to run perf on Linux 4.4 kernel (Ubuntu 15.10)

I'm not able to run perf on linux 4.4. I'm using ubuntu 15.10. The error I'm getting is: WARNING: perf not found for kernel 4.4.0 You may need to install the following packages for this specific kernel: linux-tools-4.4.0-4.4.0 linux-cloud-tools-4.4.0-4.4.0 You may also want to install... (4 Replies)
Discussion started by: BHASKAR JUPUDI
4 Replies