perf-top.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. perf-top(1)
  2. ===========
  3. NAME
  4. ----
  5. perf-top - System profiling tool.
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf top' [-e <EVENT> | --event=EVENT] [<options>]
  10. DESCRIPTION
  11. -----------
  12. This command generates and displays a performance counter profile in realtime.
  13. OPTIONS
  14. -------
  15. -a::
  16. --all-cpus::
  17. System-wide collection. (default)
  18. -c <count>::
  19. --count=<count>::
  20. Event period to sample.
  21. -C <cpu-list>::
  22. --cpu=<cpu>::
  23. Monitor only on the list of cpus provided. Multiple CPUs can be provided as a
  24. comma-sperated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
  25. Default is to monitor all CPUS.
  26. -d <seconds>::
  27. --delay=<seconds>::
  28. Number of seconds to delay between refreshes.
  29. -e <event>::
  30. --event=<event>::
  31. Select the PMU event. Selection can be a symbolic event name
  32. (use 'perf list' to list all events) or a raw PMU
  33. event (eventsel+umask) in the form of rNNN where NNN is a
  34. hexadecimal event descriptor.
  35. -E <entries>::
  36. --entries=<entries>::
  37. Display this many functions.
  38. -f <count>::
  39. --count-filter=<count>::
  40. Only display functions with more events than this.
  41. -F <freq>::
  42. --freq=<freq>::
  43. Profile at this frequency.
  44. -i::
  45. --inherit::
  46. Child tasks inherit counters, only makes sens with -p option.
  47. -k <path>::
  48. --vmlinux=<path>::
  49. Path to vmlinux. Required for annotation functionality.
  50. -m <pages>::
  51. --mmap-pages=<pages>::
  52. Number of mmapped data pages.
  53. -p <pid>::
  54. --pid=<pid>::
  55. Profile events on existing pid.
  56. -r <priority>::
  57. --realtime=<priority>::
  58. Collect data with this RT SCHED_FIFO priority.
  59. -s <symbol>::
  60. --sym-annotate=<symbol>::
  61. Annotate this symbol.
  62. -v::
  63. --verbose::
  64. Be more verbose (show counter open errors, etc).
  65. -z::
  66. --zero::
  67. Zero history across display updates.
  68. INTERACTIVE PROMPTING KEYS
  69. --------------------------
  70. [d]::
  71. Display refresh delay.
  72. [e]::
  73. Number of entries to display.
  74. [E]::
  75. Event to display when multiple counters are active.
  76. [f]::
  77. Profile display filter (>= hit count).
  78. [F]::
  79. Annotation display filter (>= % of total).
  80. [s]::
  81. Annotate symbol.
  82. [S]::
  83. Stop annotation, return to full profile display.
  84. [w]::
  85. Toggle between weighted sum and individual count[E]r profile.
  86. [z]::
  87. Toggle event count zeroing across display updates.
  88. [qQ]::
  89. Quit.
  90. Pressing any unmapped key displays a menu, and prompts for input.
  91. SEE ALSO
  92. --------
  93. linkperf:perf-stat[1], linkperf:perf-list[1]