aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorTobias Klauser <[email protected]>2021-01-27 18:46:15 +0100
committerDaniel Borkmann <[email protected]>2021-01-29 02:20:28 +0100
commit61ca36c8c4eb3bae35a285b1ae18c514cde65439 (patch)
tree966784915300da93b4732ab8704af443465a2d4d /tools/testing/selftests/bpf/prog_tests/autoload.c
parent4c3384d7abe58a68d78fd1b8b3bffbf62e1e29a1 (diff)
bpf: Simplify cases in bpf_base_func_proto
!perfmon_capable() is checked before the last switch(func_id) in bpf_base_func_proto. Thus, the cases BPF_FUNC_trace_printk and BPF_FUNC_snprintf_btf can be moved to that last switch(func_id) to omit the inline !perfmon_capable() checks. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions