perf-annotate.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. perf-annotate(1)
  2. ================
  3. NAME
  4. ----
  5. perf-annotate - Read perf.data (created by perf record) and display annotated code
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf annotate' [-i <file> | --input=file] [symbol_name]
  10. DESCRIPTION
  11. -----------
  12. This command reads the input file and displays an annotated version of the
  13. code. If the object file has debug symbols then the source code will be
  14. displayed alongside assembly code.
  15. If there is no debug info in the object, then annotated assembly is displayed.
  16. OPTIONS
  17. -------
  18. -i::
  19. --input=<file>::
  20. Input file name. (default: perf.data unless stdin is a fifo)
  21. -d::
  22. --dsos=<dso[,dso...]>::
  23. Only consider symbols in these dsos.
  24. -s::
  25. --symbol=<symbol>::
  26. Symbol to annotate.
  27. -f::
  28. --force::
  29. Don't do ownership validation.
  30. -v::
  31. --verbose::
  32. Be more verbose. (Show symbol address, etc)
  33. -q::
  34. --quiet::
  35. Do not show any message. (Suppress -v)
  36. -n::
  37. --show-nr-samples::
  38. Show the number of samples for each symbol
  39. -D::
  40. --dump-raw-trace::
  41. Dump raw trace in ASCII.
  42. -k::
  43. --vmlinux=<file>::
  44. vmlinux pathname.
  45. --ignore-vmlinux::
  46. Ignore vmlinux files.
  47. -m::
  48. --modules::
  49. Load module symbols. WARNING: use only with -k and LIVE kernel.
  50. -l::
  51. --print-line::
  52. Print matching source lines (may be slow).
  53. -P::
  54. --full-paths::
  55. Don't shorten the displayed pathnames.
  56. --stdio:: Use the stdio interface.
  57. --stdio2:: Use the stdio2 interface, non-interactive, uses the TUI formatting.
  58. --stdio-color=<mode>::
  59. 'always', 'never' or 'auto', allowing configuring color output
  60. via the command line, in addition to via "color.ui" .perfconfig.
  61. Use '--stdio-color always' to generate color even when redirecting
  62. to a pipe or file. Using just '--stdio-color' is equivalent to
  63. using 'always'.
  64. --tui:: Use the TUI interface. Use of --tui requires a tty, if one is not
  65. present, as when piping to other commands, the stdio interface is
  66. used. This interfaces starts by centering on the line with more
  67. samples, TAB/UNTAB cycles through the lines with more samples.
  68. --gtk:: Use the GTK interface.
  69. -C::
  70. --cpu=<cpu>:: Only report samples for the list of CPUs provided. Multiple CPUs can
  71. be provided as a comma-separated list with no space: 0,1. Ranges of
  72. CPUs are specified with -: 0-2. Default is to report samples on all
  73. CPUs.
  74. --asm-raw::
  75. Show raw instruction encoding of assembly instructions.
  76. --show-total-period:: Show a column with the sum of periods.
  77. --source::
  78. Interleave source code with assembly code. Enabled by default,
  79. disable with --no-source.
  80. --symfs=<directory>::
  81. Look for files with symbols relative to this directory.
  82. -M::
  83. --disassembler-style=:: Set disassembler style for objdump.
  84. --objdump=<path>::
  85. Path to objdump binary.
  86. --skip-missing::
  87. Skip symbols that cannot be annotated.
  88. --group::
  89. Show event group information together
  90. --percent-type::
  91. Set annotation percent type from following choices:
  92. global-period, local-period, global-hits, local-hits
  93. The local/global keywords set if the percentage is computed
  94. in the scope of the function (local) or the whole data (global).
  95. The period/hits keywords set the base the percentage is computed
  96. on - the samples period or the number of samples (hits).
  97. SEE ALSO
  98. --------
  99. linkperf:perf-record[1], linkperf:perf-report[1]