perf-annotate.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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=::
  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. -m::
  46. --modules::
  47. Load module symbols. WARNING: use only with -k and LIVE kernel.
  48. -l::
  49. --print-line::
  50. Print matching source lines (may be slow).
  51. -P::
  52. --full-paths::
  53. Don't shorten the displayed pathnames.
  54. --stdio:: Use the stdio interface.
  55. --stdio-color::
  56. 'always', 'never' or 'auto', allowing configuring color output
  57. via the command line, in addition to via "color.ui" .perfconfig.
  58. Use '--stdio-color always' to generate color even when redirecting
  59. to a pipe or file. Using just '--stdio-color' is equivalent to
  60. using 'always'.
  61. --tui:: Use the TUI interface. Use of --tui requires a tty, if one is not
  62. present, as when piping to other commands, the stdio interface is
  63. used. This interfaces starts by centering on the line with more
  64. samples, TAB/UNTAB cycles through the lines with more samples.
  65. --gtk:: Use the GTK interface.
  66. -C::
  67. --cpu:: Only report samples for the list of CPUs provided. Multiple CPUs can
  68. be provided as a comma-separated list with no space: 0,1. Ranges of
  69. CPUs are specified with -: 0-2. Default is to report samples on all
  70. CPUs.
  71. --asm-raw::
  72. Show raw instruction encoding of assembly instructions.
  73. --show-total-period:: Show a column with the sum of periods.
  74. --source::
  75. Interleave source code with assembly code. Enabled by default,
  76. disable with --no-source.
  77. --symfs=<directory>::
  78. Look for files with symbols relative to this directory.
  79. -M::
  80. --disassembler-style=:: Set disassembler style for objdump.
  81. --objdump=<path>::
  82. Path to objdump binary.
  83. --skip-missing::
  84. Skip symbols that cannot be annotated.
  85. --group::
  86. Show event group information together
  87. SEE ALSO
  88. --------
  89. linkperf:perf-record[1], linkperf:perf-report[1]