GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / tools / perf / Documentation / perf-record.txt
blob3ee27dccfde97d6c58f562bd890a6df9c6026d25
1 perf-record(1)
2 ==============
4 NAME
5 ----
6 perf-record - Run a command and record its profile into perf.data
8 SYNOPSIS
9 --------
10 [verse]
11 'perf record' [-e <EVENT> | --event=EVENT] [-l] [-a] <command>
12 'perf record' [-e <EVENT> | --event=EVENT] [-l] [-a] -- <command> [<options>]
14 DESCRIPTION
15 -----------
16 This command runs a command and gathers a performance counter profile
17 from it, into perf.data - without displaying anything.
19 This file can then be inspected later on, using 'perf report'.
22 OPTIONS
23 -------
24 <command>...::
25         Any command you can specify in a shell.
27 -e::
28 --event=::
29         Select the PMU event. Selection can be:
31         - a symbolic event name (use 'perf list' to list all events)
33         - a raw PMU event (eventsel+umask) in the form of rNNN where NNN is a
34           hexadecimal event descriptor.
36         - a hardware breakpoint event in the form of '\mem:addr[:access]'
37           where addr is the address in memory you want to break in.
38           Access is the memory access type (read, write, execute) it can
39           be passed as follows: '\mem:addr[:[r][w][x]]'.
40           If you want to profile read-write accesses in 0x1000, just set
41           'mem:0x1000:rw'.
42 -a::
43         System-wide collection.
45 -l::
46         Scale counter values.
48 -p::
49 --pid=::
50         Record events on existing pid.
52 -r::
53 --realtime=::
54         Collect data with this RT SCHED_FIFO priority.
55 -A::
56 --append::
57         Append to the output file to do incremental profiling.
59 -f::
60 --force::
61         Overwrite existing data file. (deprecated)
63 -c::
64 --count=::
65         Event period to sample.
67 -o::
68 --output=::
69         Output file name.
71 -i::
72 --no-inherit::
73         Child tasks do not inherit counters.
74 -F::
75 --freq=::
76         Profile at this frequency.
78 -m::
79 --mmap-pages=::
80         Number of mmap data pages.
82 -g::
83 --call-graph::
84         Do call-graph (stack chain/backtrace) recording.
86 -v::
87 --verbose::
88         Be more verbose (show counter open errors, etc).
90 -s::
91 --stat::
92         Per thread counts.
94 -d::
95 --data::
96         Sample addresses.
98 -n::
99 --no-samples::
100         Don't sample.
102 -R::
103 --raw-samples::
104 Collect raw sample records from all opened counters (default for tracepoint counters).
106 -C::
107 --cpu::
108 Collect samples only on the list of cpus provided. Multiple CPUs can be provided as a
109 comma-sperated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
110 In per-thread mode with inheritance mode on (default), samples are captured only when
111 the thread executes on the designated CPUs. Default is to monitor all CPUs.
113 -N::
114 --no-buildid-cache::
115 Do not update the builid cache. This saves some overhead in situations
116 where the information in the perf.data file (which includes buildids)
117 is sufficient.
119 SEE ALSO
120 --------
121 linkperf:perf-stat[1], linkperf:perf-list[1]