Repository navigation
Commit 2768362
committed
tracing: Create set_event_notrace_pid to not trace tasks
There's currently a way to select a task that should only have its events
traced, but there's no way to select a task not to have itsevents traced.
Add a set_event_notrace_pid file that acts the same as set_event_pid (and is
also affected by event-fork), but the task pids in this file will not be
traced even if they are listed in the set_event_pid file. This makes it easy
for tools like trace-cmd to "hide" itself from beint traced by events when
it is recording other tasks.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent b3b1e6e commit 2768362
3 files changed
Lines changed: 244 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6987 | 6987 | | |
6988 | 6988 | | |
6989 | 6989 | | |
6990 | | - | |
6991 | | - | |
6992 | | - | |
6993 | | - | |
6994 | | - | |
6995 | 6990 | | |
6996 | 6991 | | |
6997 | 6992 | | |
| |||
7004 | 6999 | | |
7005 | 7000 | | |
7006 | 7001 | | |
7007 | | - | |
7008 | | - | |
| 7002 | + | |
7009 | 7003 | | |
7010 | 7004 | | |
7011 | 7005 | | |
7012 | | - | |
7013 | | - | |
| 7006 | + | |
7014 | 7007 | | |
7015 | 7008 | | |
7016 | 7009 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
210 | 234 | | |
211 | 235 | | |
212 | 236 | | |
| |||
285 | 309 | | |
286 | 310 | | |
287 | 311 | | |
| 312 | + | |
288 | 313 | | |
289 | 314 | | |
290 | 315 | | |
| |||
0 commit comments