selftests/bpf: Test for associating multiple elements with the local storage
authorJoanne Koong <joannelkoong@gmail.com>
Fri, 18 Mar 2022 04:55:53 +0000 (21:55 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 21 Mar 2022 01:55:05 +0000 (18:55 -0700)
commit0e790cbb1af97473d3ea53616f8584a71f80fc3b
tree0960e83c84bc5ed35c9930c2472c8e172f736197
parentb00fa38a9c1cba044a32a601b49a55a18ed719d1
selftests/bpf: Test for associating multiple elements with the local storage

This patch adds a few calls to the existing local storage selftest to
test that we can associate multiple elements with the local storage.

The sleepable program's call to bpf_sk_storage_get with sk_storage_map2
will lead to an allocation of a new selem under the GFP_KERNEL flag.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220318045553.3091807-3-joannekoong@fb.com
tools/testing/selftests/bpf/progs/local_storage.c