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)
commit4170bc6baa5446e1d85e0b7647ea54ba72aa85c4
treed4506920e5a9271c033c3e3cc2826deb4a3837be
parent9cde3beeadb311d4b435a7d28d5ab72bcc5de65d
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