]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Exercise syscall operations for inode and sk storage
authorKP Singh <kpsingh@google.com>
Fri, 6 Nov 2020 10:37:47 +0000 (10:37 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Nov 2020 16:08:38 +0000 (08:08 -0800)
commit89d14dbab450cd83a8bcc5fd6f6e74660a0a74c3
treed4506920e5a9271c033c3e3cc2826deb4a3837be
parentbf0741f81985e0b8eddc9ab901a73b350cd33089
bpf: Exercise syscall operations for inode and sk storage

Use the check_syscall_operations added for task_local_storage to
exercise syscall operations for other local storage maps:

* Check the absence of an element for the given fd.
* Create a new element, retrieve and compare its value.
* Delete the element and check again for absence.

Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201106103747.2780972-10-kpsingh@chromium.org
tools/testing/selftests/bpf/prog_tests/test_local_storage.c