perf-trace.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. perf-trace(1)
  2. =============
  3. NAME
  4. ----
  5. perf-trace - strace inspired tool
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf trace'
  10. DESCRIPTION
  11. -----------
  12. This command will show the events associated with the target, initially
  13. syscalls, but other system events like pagefaults, task lifetime events,
  14. scheduling events, etc.
  15. Initially this is a live mode only tool, but eventually will work with
  16. perf.data files like the other tools, allowing a detached 'record' from
  17. analysis phases.
  18. OPTIONS
  19. -------
  20. --all-cpus::
  21. System-wide collection from all CPUs.
  22. -p::
  23. --pid=::
  24. Record events on existing process ID (comma separated list).
  25. --tid=::
  26. Record events on existing thread ID (comma separated list).
  27. --uid=::
  28. Record events in threads owned by uid. Name or number.
  29. --no-inherit::
  30. Child tasks do not inherit counters.
  31. --mmap-pages=::
  32. Number of mmap data pages. Must be a power of two.
  33. --cpu::
  34. Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a
  35. comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
  36. In per-thread mode with inheritance mode on (default), Events are captured only when
  37. the thread executes on the designated CPUs. Default is to monitor all CPUs.
  38. --duration:
  39. Show only events that had a duration greater than N.M ms.
  40. --sched:
  41. Accrue thread runtime and provide a summary at the end of the session.
  42. SEE ALSO
  43. --------
  44. linkperf:perf-record[1], linkperf:perf-script[1]