PERF-MEM(1) perf Manual PERF-MEM(1)NAME
perf-mem - Profile memory accesses
SYNOPSIS
perf mem [<options>] (record [<command>] | report)
DESCRIPTION
"perf mem -t <TYPE> record" runs a command and gathers memory operation data from it, into perf.data. Perf record options are accepted and
are passed through.
"perf mem -t <TYPE> report" displays the result. It invokes perf report with the right set of options to display a memory access profile.
OPTIONS
<command>...
Any command you can specify in a shell.
-t, --type=
Select the memory operation type: load or store (default: load)
-D, --dump-raw-samples=
Dump the raw decoded samples on the screen in a format that is easy to parse with one sample per line.
-x, --field-separator
Specify the field separator used when dump raw samples (-D option). By default, The separator is the space character.
-C, --cpu-list
Restrict dump of raw samples to those provided via this option. Note that the same option can be passed in record mode. It will be
interpreted the same way as perf record.
SEE ALSO perf-record(1), perf-report(1)perf 06/30/2014 PERF-MEM(1)
Check Out this Related Man Page
PERF-ANNOTATE(1) perf Manual PERF-ANNOTATE(1)NAME
perf-annotate - Read perf.data (created by perf record) and display annotated code
SYNOPSIS
perf annotate [-i <file> | --input=file] [symbol_name]
DESCRIPTION
This command reads the input file and displays an annotated version of the code. If the object file has debug symbols then the source code
will be displayed alongside assembly code.
If there is no debug info in the object, then annotated assembly is displayed.
OPTIONS -i, --input=
Input file name. (default: perf.data unless stdin is a fifo)
-d, --dsos=<dso[,dso...]>
Only consider symbols in these dsos.
-s, --symbol=<symbol>
Symbol to annotate.
-f, --force
Don't complain, do it.
-v, --verbose
Be more verbose. (Show symbol address, etc)
-D, --dump-raw-trace
Dump raw trace in ASCII.
-k, --vmlinux=<file>
vmlinux pathname.
-m, --modules
Load module symbols. WARNING: use only with -k and LIVE kernel.
-l, --print-line
Print matching source lines (may be slow).
-P, --full-paths
Don't shorten the displayed pathnames.
--stdio
Use the stdio interface.
--tui
Use the TUI interface. Use of --tui requires a tty, if one is not present, as when piping to other commands, the stdio interface is
used. This interfaces starts by centering on the line with more samples, TAB/UNTAB cycles through the lines with more samples.
--gtk
Use the GTK interface.
-C, --cpu
Only report samples for the list of CPUs provided. Multiple CPUs can be provided as a comma-separated list with no space: 0,1. Ranges
of CPUs are specified with -: 0-2. Default is to report samples on all CPUs.
--asm-raw
Show raw instruction encoding of assembly instructions.
--source
Interleave source code with assembly code. Enabled by default, disable with --no-source.
--symfs=<directory>
Look for files with symbols relative to this directory.
-M, --disassembler-style=
Set disassembler style for objdump.
--objdump=<path>
Path to objdump binary.
--skip-missing
Skip symbols that cannot be annotated.
--group
Show event group information together
SEE ALSO perf-record(1), perf-report(1)perf 06/30/2014 PERF-ANNOTATE(1)
I am iterating record by record through a file as below,
A,B
A,C
A,D
B,E
B,F
E,G
E,H
The same file should look like in the final output as below,
A,B
B,E
E,G
E,H
B,F
A,C
A,D (10 Replies)
Hi,
Fairly new to unix scripting, hoping to get some help.
using AIX v5
Basically I have 3 files 1). Header record 2). many detail record 3). Trailer record
My desired result is 1 file which contains Heaeder, Detail, Trailer
Currenty I am using a series of:
... (8 Replies)
How to add record separator after certain lines?
I am faicing issue where some lines have result as successive line & some are not having. how can I add record separator after every record
here is example of data I have (line numbers are not present in data):
1. <enabled="true" name="dSuite1"... (7 Replies)
Hi guys!
I need to cut first row from a file (using awk) without the record separator character (in my case its MS-DOS 0D0A) and field separator character (in my case ; 3B) and put it in another file.
Can you help with that?
Regards,
PsmakR (18 Replies)
Hi,
I have written a shell script which monitors my application and generates a report. The out put of the same looks like this.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30700 xmp 15 0 2986m 2.9g 1488 S 0.0 18.3 66:00.93 cee
This report is generated... (8 Replies)
Hi All,
I have a file with contents :
cat >file1.sh
qw^A34^Aer
the command i am using is:
cut -f1,2,3 -d"^A" file1.sh
which gave output as:
qw^A34^Aer
and the command
cut -f2 -d"^A" file1.sh
gave an output :
A34
i need the output as : (15 Replies)
Hello,
I have a file which has the following format: I have to do is sort individual records in the file based on the 4th field. Each record starts with "Module". Is there an easy way to do this using awk. I have tried piping output from awk to sort and also using "sort" inside awk but... (8 Replies)
I have to pull multiple line records with ^ as the record separator(RS)... # should be my field separator (FS)...
Sample record is:
^-60#ORA-00060: deadlock detected while waiting for resource
ORA-00001: unique constraint (SARADM.TCKNUM_PK) violated#PROC:AVAILABLE_FOR_GETNXTTIC#02/27/2012... (7 Replies)
Hi all,
I have one file with IDs
Q8NDM7
P0C1S8
Q8TF30
Q9BRP8
O00258
Q6AWC2
Q9ULE0
Q702N8
A4UGR9
Q13426
Q6P2D8
Q9ULM3
A8MXQ7
I want to compare ID file with another file which has complete information about these IDs and also about other IDs which are not in the above ID file. As... (10 Replies)
Hi all,
I need help on the following.
I have two files:
File1.txt
< 2233122266196246529, NOT_USED, NOT_USED, NOT_USED, 2, NOT_USED, Y, N, 0, (VPN) 284016910526692, -1, 0, -1, NOT_USED, 2013-04-12T01:48:43.645+02:00 / KCC script, C1C, (VPNPRO) mtel-MVPN_(VPN
ACC) 193708_A359887654295,... (10 Replies)
I'm not really sure how to explain this but I will try. In the attached file if $4=$4 and $5="-" then the last record is 1 and the one above that is 2, etc...
However, $4=$4 and $5="-" then the first record is 1 and the one below that is 2, etc...
"-" example:
chr10 90694830 90695123... (7 Replies)
Hello All,
I have a file, but I want to separate the file at a particular record with comma"," in the line
Input file
APPLE6SSAMSUNGS5PRICEPERPIECEDOLLAR600EACH010020340URX581949695US
to
Output file
APPLE6S,SAMSUNGS5,PRICEPERPIECE,DOLLAR600EACH,010020340URX581949695,US
This is for... (11 Replies)
Each record coming with column names. I have to replace them in each record as shown below
TIME=20181219110000261|CHAN=FMBKHJBAAAADPCFNAAAAAABA|EVNT=SWIclst|VALU=Session FMBKHJBAAAADPCFNAAAAAABA started|SRC=NSS|UCPU=0|SCPU=0
Output should look like: ... (9 Replies)