perf-trace.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. 'perf trace record <script>' to record the events required for 'perf
  17. trace report'. <script> is the name displayed in the output of
  18. 'perf trace --list' i.e. the actual script name minus any language
  19. extension.
  20. 'perf trace report <script>' to run and display the results of
  21. <script>. <script> is the name displayed in the output of 'perf
  22. trace --list' i.e. the actual script name minus any language
  23. extension. The perf.data output from a previous run of 'perf trace
  24. record <script>' is used and should be present for this command to
  25. succeed.
  26. OPTIONS
  27. -------
  28. -D::
  29. --dump-raw-trace=::
  30. Display verbose dump of the trace data.
  31. -L::
  32. --Latency=::
  33. Show latency attributes (irqs/preemption disabled, etc).
  34. -l::
  35. --list=::
  36. Display a list of available trace scripts.
  37. -s ['lang']::
  38. --script=::
  39. Process trace data with the given script ([lang]:script[.ext]).
  40. If the string 'lang' is specified in place of a script name, a
  41. list of supported languages will be displayed instead.
  42. -g::
  43. --gen-script=::
  44. Generate perf-trace.[ext] starter script for given language,
  45. using current perf.data.
  46. SEE ALSO
  47. --------
  48. linkperf:perf-record[1], linkperf:perf-trace-perl[1]