6 perf-ftrace - simple wrapper for kernel's ftrace functionality
12 'perf ftrace' <command>
16 The 'perf ftrace' command is a simple wrapper of kernel's ftrace
17 functionality. It only supports single thread tracing currently and
18 just reads trace_pipe in text and then write it to stdout.
20 The following options apply to perf ftrace.
27 Tracer to use: function_graph or function.
35 Trace on existing process id (comma separated list).
39 Force system-wide collection. Scripts run without a <command>
40 normally use -a by default, while scripts run with a <command>
41 normally don't - this option allows the latter to be run in
46 Only trace for the list of CPUs provided. Multiple CPUs can
47 be provided as a comma separated list with no space like: 0,1.
48 Ranges of CPUs are specified with -: 0-2.
49 Default is to trace on all online CPUs.
53 Only trace functions given by the argument. Multiple functions
54 can be given by using this option more than once. The function
55 argument also can be a glob pattern. It will be passed to
56 'set_ftrace_filter' in tracefs.
60 Do not trace functions given by the argument. Like -T option,
61 this can be used more than once to specify multiple functions
62 (or glob patterns). It will be passed to 'set_ftrace_notrace'
67 Set graph filter on the given function (or a glob pattern).
68 This is useful for the function_graph tracer only and enables
69 tracing for functions executed from the given function.
70 This can be used more than once to specify multiple functions.
71 It will be passed to 'set_graph_function' in tracefs.
75 Set graph notrace filter on the given function (or a glob pattern).
76 Like -G option, this is useful for the function_graph tracer only
77 and disables tracing for function executed from the given function.
78 This can be used more than once to specify multiple functions.
79 It will be passed to 'set_graph_notrace' in tracefs.
83 Set max depth for function graph tracer to follow
87 linkperf:perf-record[1], linkperf:perf-trace[1]