perf-trace.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. perf-trace(1)
  2. ==============
  3. NAME
  4. ----
  5. perf-trace - Read perf.data (created by perf record) and display trace output
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf trace' {record <script> | report <script> [args] }
  10. DESCRIPTION
  11. -----------
  12. This command reads the input file and displays the trace recorded.
  13. There are several variants of perf trace:
  14. 'perf trace' to see a detailed trace of the workload that was
  15. recorded.
  16. You can also run a set of pre-canned scripts that aggregate and
  17. summarize the raw trace data in various ways (the list of scripts is
  18. available via 'perf trace -l'). The following variants allow you to
  19. record and run those scripts:
  20. 'perf trace record <script>' to record the events required for 'perf
  21. trace report'. <script> is the name displayed in the output of
  22. 'perf trace --list' i.e. the actual script name minus any language
  23. extension.
  24. 'perf trace report <script>' to run and display the results of
  25. <script>. <script> is the name displayed in the output of 'perf
  26. trace --list' i.e. the actual script name minus any language
  27. extension. The perf.data output from a previous run of 'perf trace
  28. record <script>' is used and should be present for this command to
  29. succeed.
  30. See the 'SEE ALSO' section for links to language-specific
  31. information on how to write and run your own trace scripts.
  32. OPTIONS
  33. -------
  34. -D::
  35. --dump-raw-trace=::
  36. Display verbose dump of the trace data.
  37. -L::
  38. --Latency=::
  39. Show latency attributes (irqs/preemption disabled, etc).
  40. -l::
  41. --list=::
  42. Display a list of available trace scripts.
  43. -s ['lang']::
  44. --script=::
  45. Process trace data with the given script ([lang]:script[.ext]).
  46. If the string 'lang' is specified in place of a script name, a
  47. list of supported languages will be displayed instead.
  48. -g::
  49. --gen-script=::
  50. Generate perf-trace.[ext] starter script for given language,
  51. using current perf.data.
  52. SEE ALSO
  53. --------
  54. linkperf:perf-record[1], linkperf:perf-trace-perl[1],
  55. linkperf:perf-trace-python[1]