BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] selftests/bpf: Run all summarization freplace cases
@ 2026-11-18  7:33 Yun Lu
  2026-11-18  8:12 ` bot+bpf-ci
  2026-11-19  1:49 ` Alexei Starovoitov
  0 siblings, 2 replies; 4+ messages in thread
From: Yun Lu @ 2026-11-18  7:33 UTC (permalink / raw)
  To: andrii, eddyz87, ihor.solodrai, ast, daniel, memxor, martin.lau,
	song, yonghong.song, jolsa, emil, shuah
  Cc: bpf, linux-kselftest

From: Yun Lu <luyun@kylinos.cn>

The test matrix groups targets by the side effect under test.
ARRAY_SIZE(mains) gives the number of groups, so using it as the
target loop bound skips the two standalone entry-point targets in
each group.

Use the target and replacement counts from the current group and
derive the group count from mains. This restores four packet-data
cases and enables four sleepable-program cases.

Fixes: 72ed076abf54 ("selftests/bpf: Add tests for extending sleepable global subprogs")
Reported-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Yun Lu <luyun@kylinos.cn>
---
 tools/testing/selftests/bpf/prog_tests/summarization.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/bpf/prog_tests/summarization.c b/tools/testing/selftests/bpf/prog_tests/summarization.c
index 3e4bcf071735..f51b203eca8a 100644
--- a/tools/testing/selftests/bpf/prog_tests/summarization.c
+++ b/tools/testing/selftests/bpf/prog_tests/summarization.c
@@ -116,9 +116,9 @@ void test_summarization_freplace(void)
 	};
 	char buf[64];
 
-	for (int t = 0; t < 2; t++) {
-		for (int i = 0; i < ARRAY_SIZE(mains); ++i) {
-			for (int j = 0; j < ARRAY_SIZE(replacements); ++j) {
+	for (int t = 0; t < ARRAY_SIZE(mains); t++) {
+		for (int i = 0; i < ARRAY_SIZE(mains[t]); ++i) {
+			for (int j = 0; j < ARRAY_SIZE(replacements[t]); ++j) {
 				snprintf(buf, sizeof(buf), "%s_with_%s",
 					 mains[t][i].to_be_replaced, replacements[t][j].func);
 				if (!test__start_subtest(buf))
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-19  2:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18  7:33 [PATCH bpf-next] selftests/bpf: Run all summarization freplace cases Yun Lu
2026-11-18  8:12 ` bot+bpf-ci
2026-11-19  1:49 ` Alexei Starovoitov
2026-11-19  2:09   ` luyun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox