blob: cb3371eb597db65b4d677a6adf9298d4df0ee159 [file] [log] [blame]
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -03001perf-trace(1)
2=============
3
4NAME
5----
6perf-trace - strace inspired tool
7
8SYNOPSIS
9--------
10[verse]
11'perf trace'
12
13DESCRIPTION
14-----------
15This command will show the events associated with the target, initially
16syscalls, but other system events like pagefaults, task lifetime events,
17scheduling events, etc.
18
19Initially this is a live mode only tool, but eventually will work with
20perf.data files like the other tools, allowing a detached 'record' from
21analysis phases.
22
23OPTIONS
24-------
25
David Ahernac9be8e2013-08-20 11:15:45 -060026-a::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030027--all-cpus::
28 System-wide collection from all CPUs.
29
Arnaldo Carvalho de Melo2ae3a312013-08-09 12:28:31 -030030-e::
31--expr::
32 List of events to show, currently only syscall names.
33
Arnaldo Carvalho de Meloc24ff992013-08-19 12:01:10 -030034-o::
35--output=::
36 Output file name.
37
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030038-p::
39--pid=::
40 Record events on existing process ID (comma separated list).
41
David Ahernac9be8e2013-08-20 11:15:45 -060042-t::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030043--tid=::
44 Record events on existing thread ID (comma separated list).
45
David Ahernac9be8e2013-08-20 11:15:45 -060046-u::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030047--uid=::
48 Record events in threads owned by uid. Name or number.
49
David Ahernac9be8e2013-08-20 11:15:45 -060050-i::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030051--no-inherit::
52 Child tasks do not inherit counters.
53
David Ahernac9be8e2013-08-20 11:15:45 -060054-m::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030055--mmap-pages=::
56 Number of mmap data pages. Must be a power of two.
57
David Ahernac9be8e2013-08-20 11:15:45 -060058-C::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030059--cpu::
60Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a
61comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
62In per-thread mode with inheritance mode on (default), Events are captured only when
63the thread executes on the designated CPUs. Default is to monitor all CPUs.
64
Arnaldo Carvalho de Meloae9ed032012-10-08 09:56:00 -030065--duration:
66 Show only events that had a duration greater than N.M ms.
67
Arnaldo Carvalho de Melo1302d882012-10-17 17:13:12 -030068--sched:
69 Accrue thread runtime and provide a summary at the end of the session.
70
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030071SEE ALSO
72--------
73linkperf:perf-record[1], linkperf:perf-script[1]