perf-annotate.txt 2.5 KB

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