aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/syscall.c
diff options
context:
space:
mode:
authorTiezhu Yang <[email protected]>2022-11-15 21:00:07 +0800
committerAlexei Starovoitov <[email protected]>2022-11-15 21:36:24 -0800
commitdf9c41e9db2d0fc9feba0423c21e4319d8acd033 (patch)
tree90c478f3c9b4ac77c118ae5512bf6bab1bbe7315 /kernel/bpf/syscall.c
parente0eb60829a6eb249d7c6cccef0605c3004004bef (diff)
bpftool: Check argc first before "file" in do_batch()
If the parameters for batch are more than 2, check argc first can return immediately, no need to use is_prefix() to check "file" with a little overhead and then check argc, it is better to check "file" only when the parameters for batch are 2. Signed-off-by: Tiezhu Yang <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions