perf-trace.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. -e::
  23. --expr::
  24. List of events to show, currently only syscall names.
  25. -p::
  26. --pid=::
  27. Record events on existing process ID (comma separated list).
  28. --tid=::
  29. Record events on existing thread ID (comma separated list).
  30. --uid=::
  31. Record events in threads owned by uid. Name or number.
  32. --no-inherit::
  33. Child tasks do not inherit counters.
  34. --mmap-pages=::
  35. Number of mmap data pages. Must be a power of two.
  36. --cpu::
  37. Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a
  38. comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
  39. In per-thread mode with inheritance mode on (default), Events are captured only when
  40. the thread executes on the designated CPUs. Default is to monitor all CPUs.
  41. --duration:
  42. Show only events that had a duration greater than N.M ms.
  43. --sched:
  44. Accrue thread runtime and provide a summary at the end of the session.
  45. SEE ALSO
  46. --------
  47. linkperf:perf-record[1], linkperf:perf-script[1]