Arnaldo Carvalho de Melo | 514f1c6 | 2012-09-26 20:05:56 -0300 | [diff] [blame] | 1 | perf-trace(1) |
| 2 | ============= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | perf-trace - strace inspired tool |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| 11 | 'perf trace' |
| 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | This command will show the events associated with the target, initially |
| 16 | syscalls, but other system events like pagefaults, task lifetime events, |
| 17 | scheduling events, etc. |
| 18 | |
| 19 | Initially this is a live mode only tool, but eventually will work with |
| 20 | perf.data files like the other tools, allowing a detached 'record' from |
| 21 | analysis phases. |
| 22 | |
| 23 | OPTIONS |
| 24 | ------- |
| 25 | |
| 26 | --all-cpus:: |
| 27 | System-wide collection from all CPUs. |
| 28 | |
Arnaldo Carvalho de Melo | 2ae3a31 | 2013-08-09 12:28:31 -0300 | [diff] [blame] | 29 | -e:: |
| 30 | --expr:: |
| 31 | List of events to show, currently only syscall names. |
| 32 | |
Arnaldo Carvalho de Melo | c24ff99 | 2013-08-19 12:01:10 -0300 | [diff] [blame^] | 33 | -o:: |
| 34 | --output=:: |
| 35 | Output file name. |
| 36 | |
Arnaldo Carvalho de Melo | 514f1c6 | 2012-09-26 20:05:56 -0300 | [diff] [blame] | 37 | -p:: |
| 38 | --pid=:: |
| 39 | Record events on existing process ID (comma separated list). |
| 40 | |
| 41 | --tid=:: |
| 42 | Record events on existing thread ID (comma separated list). |
| 43 | |
| 44 | --uid=:: |
| 45 | Record events in threads owned by uid. Name or number. |
| 46 | |
| 47 | --no-inherit:: |
| 48 | Child tasks do not inherit counters. |
| 49 | |
| 50 | --mmap-pages=:: |
| 51 | Number of mmap data pages. Must be a power of two. |
| 52 | |
| 53 | --cpu:: |
| 54 | Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a |
| 55 | comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. |
| 56 | In per-thread mode with inheritance mode on (default), Events are captured only when |
| 57 | the thread executes on the designated CPUs. Default is to monitor all CPUs. |
| 58 | |
Arnaldo Carvalho de Melo | ae9ed03 | 2012-10-08 09:56:00 -0300 | [diff] [blame] | 59 | --duration: |
| 60 | Show only events that had a duration greater than N.M ms. |
| 61 | |
Arnaldo Carvalho de Melo | 1302d88 | 2012-10-17 17:13:12 -0300 | [diff] [blame] | 62 | --sched: |
| 63 | Accrue thread runtime and provide a summary at the end of the session. |
| 64 | |
Arnaldo Carvalho de Melo | 514f1c6 | 2012-09-26 20:05:56 -0300 | [diff] [blame] | 65 | SEE ALSO |
| 66 | -------- |
| 67 | linkperf:perf-record[1], linkperf:perf-script[1] |