aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/sock_example.c
diff options
context:
space:
mode:
authorJoanne Koong <[email protected]>2022-07-12 21:06:03 +0000
committerAlexei Starovoitov <[email protected]>2022-07-13 21:45:58 +0000
commit8ab4cdcf03d0b060fbf73f76460f199bbd759ff7 (patch)
tree76cea5c5b7aaad1c7f0b8c4b78fe7d8b22dd5717 /samples/bpf/sock_example.c
parentlibbpf: Error out when binary_path is NULL for uprobe and USDT (diff)
downloadkernel-8ab4cdcf03d0b060fbf73f76460f199bbd759ff7.tar.gz
kernel-8ab4cdcf03d0b060fbf73f76460f199bbd759ff7.zip
bpf: Tidy up verifier check_func_arg()
This patch does two things: 1. For matching against the arg type, the match should be against the base type of the arg type, since the arg type can have different bpf_type_flags set on it. 2. Uses switch casing to improve readability + efficiency. Signed-off-by: Joanne Koong <[email protected]> Acked-by: Hao Luo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'samples/bpf/sock_example.c')
0 files changed, 0 insertions, 0 deletions