Commit 0502c68
libbpf: Add the ability to suppress perf event enablement
Automatically enabling a perf event after attaching a BPF prog to it is
not always desirable.
Add a new no_ioctl_enable field to struct bpf_perf_event_opts. While
introducing ioctl_enable instead would be nicer in that it would avoid
a double negation in the implementation, it would make
DECLARE_LIBBPF_OPTS() less efficient.
Suggested-by: Jiri Olsa <[email protected]>
Co-developed-by: Thomas Richter <[email protected]>
Signed-off-by: Thomas Richter <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>1 parent 9db1c0b commit 0502c68
2 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10965 | 10965 | | |
10966 | 10966 | | |
10967 | 10967 | | |
10968 | | - | |
10969 | | - | |
10970 | | - | |
10971 | | - | |
10972 | | - | |
| 10968 | + | |
| 10969 | + | |
| 10970 | + | |
| 10971 | + | |
| 10972 | + | |
| 10973 | + | |
| 10974 | + | |
| 10975 | + | |
10973 | 10976 | | |
10974 | 10977 | | |
10975 | 10978 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
502 | 504 | | |
503 | 505 | | |
504 | | - | |
| 506 | + | |
505 | 507 | | |
506 | 508 | | |
507 | 509 | | |
| |||
0 commit comments