diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2021-01-27 20:46:15 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-29 04:20:28 +0300 |
commit | 61ca36c8c4eb3bae35a285b1ae18c514cde65439 (patch) | |
tree | 966784915300da93b4732ab8704af443465a2d4d /samples | |
parent | 4c3384d7abe58a68d78fd1b8b3bffbf62e1e29a1 (diff) | |
download | linux-61ca36c8c4eb3bae35a285b1ae18c514cde65439.tar.xz |
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 <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210127174615.3038-1-tklauser@distanz.ch
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions