selftests/bpf: Add bpf_percpu_obj_{new,drop}() macro in bpf_experimental.h
authorYonghong Song <yonghong.song@linux.dev>
Sun, 27 Aug 2023 15:28:05 +0000 (08:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 8 Sep 2023 15:42:18 +0000 (08:42 -0700)
commit968c76cb3dc6cc86e8099ecaa5c30dc0d4738a30
tree15d0960e5425e884797a87360788fee40ec5dd5a
parented5285a1482f81f031183286e98edfe76fd9ac3b
selftests/bpf: Add bpf_percpu_obj_{new,drop}() macro in bpf_experimental.h

The new macro bpf_percpu_obj_{new/drop}() is very similar to bpf_obj_{new,drop}()
as they both take a type as the argument.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230827152805.1999417-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h