perf-annotate.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 complain, do it.
  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. --tui:: Use the TUI interface. Use of --tui requires a tty, if one is not
  50. present, as when piping to other commands, the stdio interface is
  51. used. This interfaces starts by centering on the line with more
  52. samples, TAB/UNTAB cycles through the lines with more samples.
  53. --gtk:: Use the GTK interface.
  54. -C::
  55. --cpu:: Only report samples for the list of CPUs provided. Multiple CPUs can
  56. be provided as a comma-separated list with no space: 0,1. Ranges of
  57. CPUs are specified with -: 0-2. Default is to report samples on all
  58. CPUs.
  59. --asm-raw::
  60. Show raw instruction encoding of assembly instructions.
  61. --source::
  62. Interleave source code with assembly code. Enabled by default,
  63. disable with --no-source.
  64. --symfs=<directory>::
  65. Look for files with symbols relative to this directory.
  66. -M::
  67. --disassembler-style=:: Set disassembler style for objdump.
  68. --objdump=<path>::
  69. Path to objdump binary.
  70. --skip-missing::
  71. Skip symbols that cannot be annotated.
  72. --group::
  73. Show event group information together
  74. SEE ALSO
  75. --------
  76. linkperf:perf-record[1], linkperf:perf-report[1]