perf-report.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. perf-report(1)
  2. ==============
  3. NAME
  4. ----
  5. perf-report - Read perf.data (created by perf record) and display the profile
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf report' [-i <file> | --input=file]
  10. DESCRIPTION
  11. -----------
  12. This command displays the performance counter profile information recorded
  13. via perf record.
  14. OPTIONS
  15. -------
  16. -i::
  17. --input=::
  18. Input file name. (default: perf.data unless stdin is a fifo)
  19. -v::
  20. --verbose::
  21. Be more verbose. (show symbol address, etc)
  22. -d::
  23. --dsos=::
  24. Only consider symbols in these dsos. CSV that understands
  25. file://filename entries.
  26. -n::
  27. --show-nr-samples::
  28. Show the number of samples for each symbol
  29. --showcpuutilization::
  30. Show sample percentage for different cpu modes.
  31. -T::
  32. --threads::
  33. Show per-thread event counters
  34. -c::
  35. --comms=::
  36. Only consider symbols in these comms. CSV that understands
  37. file://filename entries.
  38. -S::
  39. --symbols=::
  40. Only consider these symbols. CSV that understands
  41. file://filename entries.
  42. --symbol-filter=::
  43. Only show symbols that match (partially) with this filter.
  44. -U::
  45. --hide-unresolved::
  46. Only display entries resolved to a symbol.
  47. -s::
  48. --sort=::
  49. Sort by key(s): pid, comm, dso, symbol, parent.
  50. -p::
  51. --parent=<regex>::
  52. regex filter to identify parent, see: '--sort parent'
  53. -x::
  54. --exclude-other::
  55. Only display entries with parent-match.
  56. -w::
  57. --column-widths=<width[,width...]>::
  58. Force each column width to the provided list, for large terminal
  59. readability.
  60. -t::
  61. --field-separator=::
  62. Use a special separator character and don't pad with spaces, replacing
  63. all occurrences of this separator in symbol names (and other output)
  64. with a '.' character, that thus it's the only non valid separator.
  65. -D::
  66. --dump-raw-trace::
  67. Dump raw trace in ASCII.
  68. -g [type,min[,limit],order]::
  69. --call-graph::
  70. Display call chains using type, min percent threshold, optional print
  71. limit and order.
  72. type can be either:
  73. - flat: single column, linear exposure of call chains.
  74. - graph: use a graph tree, displaying absolute overhead rates.
  75. - fractal: like graph, but displays relative rates. Each branch of
  76. the tree is considered as a new profiled object. +
  77. order can be either:
  78. - callee: callee based call graph.
  79. - caller: inverted caller based call graph.
  80. Default: fractal,0.5,callee.
  81. -G::
  82. --inverted::
  83. alias for inverted caller based call graph.
  84. --pretty=<key>::
  85. Pretty printing style. key: normal, raw
  86. --stdio:: Use the stdio interface.
  87. --tui:: Use the TUI interface, that is integrated with annotate and allows
  88. zooming into DSOs or threads, among other features. Use of --tui
  89. requires a tty, if one is not present, as when piping to other
  90. commands, the stdio interface is used.
  91. --gtk:: Use the GTK2 interface.
  92. -k::
  93. --vmlinux=<file>::
  94. vmlinux pathname
  95. --kallsyms=<file>::
  96. kallsyms pathname
  97. -m::
  98. --modules::
  99. Load module symbols. WARNING: This should only be used with -k and
  100. a LIVE kernel.
  101. -f::
  102. --force::
  103. Don't complain, do it.
  104. --symfs=<directory>::
  105. Look for files with symbols relative to this directory.
  106. -C::
  107. --cpu:: Only report samples for the list of CPUs provided. Multiple CPUs can
  108. be provided as a comma-separated list with no space: 0,1. Ranges of
  109. CPUs are specified with -: 0-2. Default is to report samples on all
  110. CPUs.
  111. -M::
  112. --disassembler-style=:: Set disassembler style for objdump.
  113. --source::
  114. Interleave source code with assembly code. Enabled by default,
  115. disable with --no-source.
  116. --asm-raw::
  117. Show raw instruction encoding of assembly instructions.
  118. --show-total-period:: Show a column with the sum of periods.
  119. -I::
  120. --show-info::
  121. Display extended information about the perf.data file. This adds
  122. information which may be very large and thus may clutter the display.
  123. It currently includes: cpu and numa topology of the host system.
  124. -b::
  125. --branch-stack::
  126. Use the addresses of sampled taken branches instead of the instruction
  127. address to build the histograms. To generate meaningful output, the
  128. perf.data file must have been obtained using perf record -b or
  129. perf record --branch-filter xxx where xxx is a branch filter option.
  130. perf report is able to auto-detect whether a perf.data file contains
  131. branch stacks and it will automatically switch to the branch view mode,
  132. unless --no-branch-stack is used.
  133. SEE ALSO
  134. --------
  135. linkperf:perf-stat[1], linkperf:perf-annotate[1]