Commit 2e498d0
perf: Add support for event removal on exec
Adds bit perf_event_attr::remove_on_exec, to support removing an event
from a task on exec.
This option supports the case where an event is supposed to be
process-wide only, and should not propagate beyond exec, to limit
monitoring to the original process image only.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210408103605.1676875-5-elver@google.com1 parent 2b26f0a commit 2e498d0
2 files changed
+64
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
| 394 | + | |
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4248 | 4248 | | |
4249 | 4249 | | |
4250 | 4250 | | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
4251 | 4302 | | |
4252 | 4303 | | |
4253 | 4304 | | |
| |||
7560 | 7611 | | |
7561 | 7612 | | |
7562 | 7613 | | |
7563 | | - | |
7564 | 7614 | | |
7565 | | - | |
7566 | | - | |
7567 | | - | |
7568 | | - | |
7569 | 7615 | | |
| 7616 | + | |
7570 | 7617 | | |
7571 | | - | |
7572 | | - | |
| 7618 | + | |
| 7619 | + | |
| 7620 | + | |
| 7621 | + | |
| 7622 | + | |
| 7623 | + | |
| 7624 | + | |
7573 | 7625 | | |
7574 | | - | |
7575 | 7626 | | |
7576 | 7627 | | |
7577 | 7628 | | |
| |||
11656 | 11707 | | |
11657 | 11708 | | |
11658 | 11709 | | |
| 11710 | + | |
| 11711 | + | |
| 11712 | + | |
11659 | 11713 | | |
11660 | 11714 | | |
11661 | 11715 | | |
| |||
0 commit comments