perf-ftrace.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. perf-ftrace(1)
  2. =============
  3. NAME
  4. ----
  5. perf-ftrace - simple wrapper for kernel's ftrace functionality
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf ftrace' <command>
  10. DESCRIPTION
  11. -----------
  12. The 'perf ftrace' command is a simple wrapper of kernel's ftrace
  13. functionality. It only supports single thread tracing currently and
  14. just reads trace_pipe in text and then write it to stdout.
  15. The following options apply to perf ftrace.
  16. OPTIONS
  17. -------
  18. -t::
  19. --tracer=::
  20. Tracer to use: function_graph or function.
  21. -v::
  22. --verbose=::
  23. Verbosity level.
  24. -p::
  25. --pid=::
  26. Trace on existing process id (comma separated list).
  27. -a::
  28. --all-cpus::
  29. Force system-wide collection. Scripts run without a <command>
  30. normally use -a by default, while scripts run with a <command>
  31. normally don't - this option allows the latter to be run in
  32. system-wide mode.
  33. -C::
  34. --cpu=::
  35. Only trace for the list of CPUs provided. Multiple CPUs can
  36. be provided as a comma separated list with no space like: 0,1.
  37. Ranges of CPUs are specified with -: 0-2.
  38. Default is to trace on all online CPUs.
  39. -T::
  40. --trace-funcs=::
  41. Only trace functions given by the argument. Multiple functions
  42. can be given by using this option more than once. The function
  43. argument also can be a glob pattern. It will be passed to
  44. 'set_ftrace_filter' in tracefs.
  45. -N::
  46. --notrace-funcs=::
  47. Do not trace functions given by the argument. Like -T option,
  48. this can be used more than once to specify multiple functions
  49. (or glob patterns). It will be passed to 'set_ftrace_notrace'
  50. in tracefs.
  51. -G::
  52. --graph-funcs=::
  53. Set graph filter on the given function (or a glob pattern).
  54. This is useful for the function_graph tracer only and enables
  55. tracing for functions executed from the given function.
  56. This can be used more than once to specify multiple functions.
  57. It will be passed to 'set_graph_function' in tracefs.
  58. -g::
  59. --nograph-funcs=::
  60. Set graph notrace filter on the given function (or a glob pattern).
  61. Like -G option, this is useful for the function_graph tracer only
  62. and disables tracing for function executed from the given function.
  63. This can be used more than once to specify multiple functions.
  64. It will be passed to 'set_graph_notrace' in tracefs.
  65. -D::
  66. --graph-depth=::
  67. Set max depth for function graph tracer to follow
  68. SEE ALSO
  69. --------
  70. linkperf:perf-record[1], linkperf:perf-trace[1]