blob: 7f70d3640edd9f534f2f77d89fc1dbf5dfecf43b [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.
Arnaldo Carvalho de Melob059efd2013-08-21 12:56:21 -030033 Prefixing with ! shows all syscalls but the ones specified. You may
34 need to escape it.
Arnaldo Carvalho de Melo2ae3a312013-08-09 12:28:31 -030035
Arnaldo Carvalho de Meloc24ff992013-08-19 12:01:10 -030036-o::
37--output=::
38 Output file name.
39
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030040-p::
41--pid=::
42 Record events on existing process ID (comma separated list).
43
David Ahernac9be8e2013-08-20 11:15:45 -060044-t::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030045--tid=::
46 Record events on existing thread ID (comma separated list).
47
David Ahernac9be8e2013-08-20 11:15:45 -060048-u::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030049--uid=::
50 Record events in threads owned by uid. Name or number.
51
Arnaldo Carvalho de Melo7c304ee02013-08-22 16:49:54 -030052-v::
53--verbose=::
54 Verbosity level.
55
David Ahernac9be8e2013-08-20 11:15:45 -060056-i::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030057--no-inherit::
58 Child tasks do not inherit counters.
59
David Ahernac9be8e2013-08-20 11:15:45 -060060-m::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030061--mmap-pages=::
Jiri Olsa27050f52013-09-01 12:36:13 +020062 Number of mmap data pages (must be a power of two) or size
63 specification with appended unit character - B/K/M/G. The
64 size is rounded up to have nearest pages power of two value.
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030065
David Ahernac9be8e2013-08-20 11:15:45 -060066-C::
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030067--cpu::
68Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a
69comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
70In per-thread mode with inheritance mode on (default), Events are captured only when
71the thread executes on the designated CPUs. Default is to monitor all CPUs.
72
Arnaldo Carvalho de Meloae9ed032012-10-08 09:56:00 -030073--duration:
74 Show only events that had a duration greater than N.M ms.
75
Arnaldo Carvalho de Melo1302d882012-10-17 17:13:12 -030076--sched:
77 Accrue thread runtime and provide a summary at the end of the session.
78
David Ahern6810fc92013-08-28 22:29:52 -060079-i
80--input
81 Process events from a given perf data file.
82
David Ahern4bb09192013-09-04 12:37:43 -060083-T
84--time
85 Print full timestamp rather time relative to first sample.
86
Arnaldo Carvalho de Melo50c95cb2013-09-12 12:35:21 -030087--comm::
88 Show process COMM right beside its ID, on by default, disable with --no-comm.
89
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030090SEE ALSO
91--------
92linkperf:perf-record[1], linkperf:perf-script[1]