Skip to content

Commit a249518

Browse files
seehearfeelgregkh
authored andcommitted
test_bpf: Rename second ALU64_SMOD_X to ALU64_SMOD_K
[ Upstream commit 5181dc0 ] Currently, there are two test cases with same name "ALU64_SMOD_X: -7 % 2 = -1", the first one is right, the second one should be ALU64_SMOD_K because its code is BPF_ALU64 | BPF_MOD | BPF_K. Before: test_bpf: torvalds#170 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS test_bpf: torvalds#171 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS After: test_bpf: torvalds#170 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS test_bpf: torvalds#171 ALU64_SMOD_K: -7 % 2 = -1 jited:1 4 PASS Fixes: daabb2b ("bpf/tests: add tests for cpuv4 instructions") Signed-off-by: Tiezhu Yang <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent fbcf372 commit a249518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test_bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6293,7 +6293,7 @@ static struct bpf_test tests[] = {
62936293
},
62946294
/* BPF_ALU64 | BPF_MOD | BPF_K off=1 (SMOD64) */
62956295
{
6296-
"ALU64_SMOD_X: -7 % 2 = -1",
6296+
"ALU64_SMOD_K: -7 % 2 = -1",
62976297
.u.insns_int = {
62986298
BPF_LD_IMM64(R0, -7),
62996299
BPF_ALU64_IMM_OFF(BPF_MOD, R0, 2, 1),

0 commit comments

Comments
 (0)