diff options
| author | Andrii Nakryiko <[email protected]> | 2024-01-23 18:21:04 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-01-24 16:21:01 -0800 |
| commit | bbc1d24724e110b86a1a7c3c1724ce0d62cc1e2e (patch) | |
| tree | b9fdd4d3c3693de18200ab474b48566137367e86 /tools/perf/scripts/python | |
| parent | caf8f28e036c4ba1e823355da6c0c01c39e70ab9 (diff) | |
bpf: Take into account BPF token when fetching helper protos
Instead of performing unconditional system-wide bpf_capable() and
perfmon_capable() calls inside bpf_base_func_proto() function (and other
similar ones) to determine eligibility of a given BPF helper for a given
program, use previously recorded BPF token during BPF_PROG_LOAD command
handling to inform the decision.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions