1perf-mem(1)
2===========
3
4NAME
5----
6perf-mem - Profile memory accesses
7
8SYNOPSIS
9--------
10[verse]
11'perf mem' [<options>] (record [<command>] | report)
12
13DESCRIPTION
14-----------
15"perf mem record" runs a command and gathers memory operation data
16from it, into perf.data. Perf record options are accepted and are passed through.
17
18"perf mem report" displays the result. It invokes perf report with the
19right set of options to display a memory access profile. By default, loads
20and stores are sampled. Use the -t option to limit to loads or stores.
21
22Note that on Intel systems the memory latency reported is the use-latency,
23not the pure load (or store latency). Use latency includes any pipeline
24queueing delays in addition to the memory subsystem latency.
25
26OPTIONS
27-------
28<command>...::
29	Any command you can specify in a shell.
30
31-i::
32--input=<file>::
33	Input file name.
34
35-f::
36--force::
37	Don't do ownership validation
38
39-t::
40--type=<type>::
41	Select the memory operation type: load or store (default: load,store)
42
43-D::
44--dump-raw-samples::
45	Dump the raw decoded samples on the screen in a format that is easy to parse with
46	one sample per line.
47
48-x::
49--field-separator=<separator>::
50	Specify the field separator used when dump raw samples (-D option). By default,
51	The separator is the space character.
52
53-C::
54--cpu=<cpu>::
55	Monitor only on the list of CPUs provided. Multiple CPUs can be provided as a
56        comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. Default
57        is to monitor all CPUS.
58-U::
59--hide-unresolved::
60	Only display entries resolved to a symbol.
61
62-p::
63--phys-data::
64	Record/Report sample physical addresses
65
66--data-page-size::
67	Record/Report sample data address page size
68
69RECORD OPTIONS
70--------------
71-e::
72--event <event>::
73	Event selector. Use 'perf mem record -e list' to list available events.
74
75-K::
76--all-kernel::
77	Configure all used events to run in kernel space.
78
79-U::
80--all-user::
81	Configure all used events to run in user space.
82
83-v::
84--verbose::
85	Be more verbose (show counter open errors, etc)
86
87--ldlat <n>::
88	Specify desired latency for loads event. (x86 only)
89
90In addition, for report all perf report options are valid, and for record
91all perf record options.
92
93SEE ALSO
94--------
95linkperf:perf-record[1], linkperf:perf-report[1]
96