@@ -263,6 +263,20 @@ of ftrace. Here is a list of some of the key files:
263263 traced by the function tracer as well. This option will also
264264 cause PIDs of tasks that exit to be removed from the file.
265265
266+ set_ftrace_notrace_pid:
267+
268+ Have the function tracer ignore threads whose PID are listed in
269+ this file.
270+
271+ If the "function-fork" option is set, then when a task whose
272+ PID is listed in this file forks, the child's PID will
273+ automatically be added to this file, and the child will not be
274+ traced by the function tracer as well. This option will also
275+ cause PIDs of tasks that exit to be removed from the file.
276+
277+ If a PID is in both this file and "set_ftrace_pid", then this
278+ file takes precedence, and the thread will not be traced.
279+
266280 set_event_pid:
267281
268282 Have the events only trace a task with a PID listed in this file.
@@ -274,6 +288,19 @@ of ftrace. Here is a list of some of the key files:
274288 cause the PIDs of tasks to be removed from this file when the task
275289 exits.
276290
291+ set_event_notrace_pid:
292+
293+ Have the events not trace a task with a PID listed in this file.
294+ Note, sched_switch and sched_wakeup will trace threads not listed
295+ in this file, even if a thread's PID is in the file if the
296+ sched_switch or sched_wakeup events also trace a thread that should
297+ be traced.
298+
299+ To have the PIDs of children of tasks with their PID in this file
300+ added on fork, enable the "event-fork" option. That option will also
301+ cause the PIDs of tasks to be removed from this file when the task
302+ exits.
303+
277304 set_graph_function:
278305
279306 Functions listed in this file will cause the function graph
@@ -1183,6 +1210,8 @@ Here are the available options:
11831210 tasks fork. Also, when tasks with PIDs in set_event_pid exit,
11841211 their PIDs will be removed from the file.
11851212
1213+ This affects PIDs listed in set_event_notrace_pid as well.
1214+
11861215 function-trace
11871216 The latency tracers will enable function tracing
11881217 if this option is enabled (default it is). When
@@ -1197,6 +1226,8 @@ Here are the available options:
11971226 set_ftrace_pid exit, their PIDs will be removed from the
11981227 file.
11991228
1229+ This affects PIDs in set_ftrace_notrace_pid as well.
1230+
12001231 display-graph
12011232 When set, the latency tracers (irqsoff, wakeup, etc) will
12021233 use function graph tracing instead of function tracing.
0 commit comments