selftests/bpf: Update spinlock selftest
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 18 Nov 2022 01:56:10 +0000 (07:26 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 18 Nov 2022 03:22:14 +0000 (19:22 -0800)
commitd85aedac4dc43deaba7aabc78198d0600bb84887
tree6cc2f14398d245a7b89b67bb565c57450aab8e5a
parent64069c72b4b8e44f6876249cc8f2e2ee4d209a93
selftests/bpf: Update spinlock selftest

Make updates in preparation for adding more test cases to this selftest:
- Convert from CHECK_ to ASSERT macros.
- Use BPF skeleton
- Fix typo sping -> spin
- Rename spinlock.c -> spin_lock.c

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20221118015614.2013203-21-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/spin_lock.c [new file with mode: 0644]
tools/testing/selftests/bpf/prog_tests/spinlock.c [deleted file]
tools/testing/selftests/bpf/progs/test_spin_lock.c