]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8342133d742846c6eab4b434e9251ead84fb4a3
tree0960e83c84bc5ed35c9930c2472c8e172f736197
parent30e749c3bce2de1e4f5e1b2f488a7b6342e5f14b
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