mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
selftests/bpf: Update test names for xchg and cmpxchg
The test_cmpxchg() and test_xchg() functions say "test_run add". Therefore, make them say "test_run cmpxchg" and "test_run xchg", respectively. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211201005030.GA3071525@paulmck-ThinkPad-P17-Gen-1
This commit is contained in:
committed by
Andrii Nakryiko
parent
eee9a6df0e
commit
8b4ff5f8bb
@@ -167,7 +167,7 @@ static void test_cmpxchg(struct atomics_lskel *skel)
|
||||
prog_fd = skel->progs.cmpxchg.prog_fd;
|
||||
err = bpf_prog_test_run(prog_fd, 1, NULL, 0,
|
||||
NULL, NULL, &retval, &duration);
|
||||
if (CHECK(err || retval, "test_run add",
|
||||
if (CHECK(err || retval, "test_run cmpxchg",
|
||||
"err %d errno %d retval %d duration %d\n", err, errno, retval, duration))
|
||||
goto cleanup;
|
||||
|
||||
@@ -196,7 +196,7 @@ static void test_xchg(struct atomics_lskel *skel)
|
||||
prog_fd = skel->progs.xchg.prog_fd;
|
||||
err = bpf_prog_test_run(prog_fd, 1, NULL, 0,
|
||||
NULL, NULL, &retval, &duration);
|
||||
if (CHECK(err || retval, "test_run add",
|
||||
if (CHECK(err || retval, "test_run xchg",
|
||||
"err %d errno %d retval %d duration %d\n", err, errno, retval, duration))
|
||||
goto cleanup;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user