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)
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)
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)
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)
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)
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)
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)
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)
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)
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)