* [PATCH] bpf/selftests: remove test_access_variable_array
@ 2026-04-10 10:54 Venkat Rao Bagalkote
2026-04-10 17:21 ` Naveen Kumar Thummalapenta
2026-04-10 19:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Venkat Rao Bagalkote @ 2026-04-10 10:54 UTC (permalink / raw)
To: bpf
Cc: skb99, hbathini, adubey, ast, alexei.starovoitov, peterz, andrii,
maddy, linux-kernel, riteshh, alan.maguire, Venkat Rao Bagalkote
test_access_variable_array relied on accessing struct sched_domain::span
to validate variable-length array handling via BTF. Recent scheduler
refactoring removed or hid this field, causing the test
to fail to build.
Given that this test depends on internal scheduler structures that are
subject to refactoring, and equivalent variable-length array coverage
already exists via bpf_testmod-based tests, remove
test_access_variable_array entirely.
Link: https://lore.kernel.org/all/177434340048.1647592.8586759362906719839.tip-bot2@tip-bot2/
Signed-off-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
---
.../bpf/prog_tests/access_variable_array.c | 16 ----------------
.../bpf/progs/test_access_variable_array.c | 19 -------------------
2 files changed, 35 deletions(-)
delete mode 100644 tools/testing/selftests/bpf/prog_tests/access_variable_array.c
delete mode 100644 tools/testing/selftests/bpf/progs/test_access_variable_array.c
diff --git a/tools/testing/selftests/bpf/prog_tests/access_variable_array.c b/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
deleted file mode 100644
index 08131782437c..000000000000
--- a/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/* Copyright (c) 2022 Bytedance */
-
-#include <test_progs.h>
-#include "test_access_variable_array.skel.h"
-
-void test_access_variable_array(void)
-{
- struct test_access_variable_array *skel;
-
- skel = test_access_variable_array__open_and_load();
- if (!ASSERT_OK_PTR(skel, "test_access_variable_array__open_and_load"))
- return;
-
- test_access_variable_array__destroy(skel);
-}
diff --git a/tools/testing/selftests/bpf/progs/test_access_variable_array.c b/tools/testing/selftests/bpf/progs/test_access_variable_array.c
deleted file mode 100644
index 326b7d1f496a..000000000000
--- a/tools/testing/selftests/bpf/progs/test_access_variable_array.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/* Copyright (c) 2023 Bytedance */
-
-#include "vmlinux.h"
-#include <bpf/bpf_helpers.h>
-#include <bpf/bpf_tracing.h>
-
-unsigned long span = 0;
-
-SEC("fentry/sched_balance_rq")
-int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq,
- struct sched_domain *sd)
-{
- span = sd->span[0];
-
- return 0;
-}
-
-char _license[] SEC("license") = "GPL";
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] bpf/selftests: remove test_access_variable_array
2026-04-10 10:54 [PATCH] bpf/selftests: remove test_access_variable_array Venkat Rao Bagalkote
@ 2026-04-10 17:21 ` Naveen Kumar Thummalapenta
2026-04-10 19:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Naveen Kumar Thummalapenta @ 2026-04-10 17:21 UTC (permalink / raw)
To: Venkat Rao Bagalkote, bpf
Cc: skb99, hbathini, adubey, ast, alexei.starovoitov, peterz, andrii,
maddy, linux-kernel, riteshh, alan.maguire
On 10/04/26 4:24 pm, Venkat Rao Bagalkote wrote:
> test_access_variable_array relied on accessing struct sched_domain::span
> to validate variable-length array handling via BTF. Recent scheduler
> refactoring removed or hid this field, causing the test
> to fail to build.
>
> Given that this test depends on internal scheduler structures that are
> subject to refactoring, and equivalent variable-length array coverage
> already exists via bpf_testmod-based tests, remove
> test_access_variable_array entirely.
>
> Link: https://lore.kernel.org/all/177434340048.1647592.8586759362906719839.tip-bot2@tip-bot2/
>
> Signed-off-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
> ---
Hi,
Tested this patch and it is fixing the build issue.
Without this patch:
progs/test_access_variable_array.c:14:13: error:
no member named 'span' in 'struct sched_domain'
span = sd->span[0];
^~~~
With this patch above build is fixed
Please add below tag
Tested-by: Naveen Kumar Thummalapenta <naveen66@linux.ibm.com>
Regards,
Naveen Kumar T
> .../bpf/prog_tests/access_variable_array.c | 16 ----------------
> .../bpf/progs/test_access_variable_array.c | 19 -------------------
> 2 files changed, 35 deletions(-)
> delete mode 100644 tools/testing/selftests/bpf/prog_tests/access_variable_array.c
> delete mode 100644 tools/testing/selftests/bpf/progs/test_access_variable_array.c
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/access_variable_array.c b/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
> deleted file mode 100644
> index 08131782437c..000000000000
> --- a/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -// SPDX-License-Identifier: GPL-2.0
> -/* Copyright (c) 2022 Bytedance */
> -
> -#include <test_progs.h>
> -#include "test_access_variable_array.skel.h"
> -
> -void test_access_variable_array(void)
> -{
> - struct test_access_variable_array *skel;
> -
> - skel = test_access_variable_array__open_and_load();
> - if (!ASSERT_OK_PTR(skel, "test_access_variable_array__open_and_load"))
> - return;
> -
> - test_access_variable_array__destroy(skel);
> -}
> diff --git a/tools/testing/selftests/bpf/progs/test_access_variable_array.c b/tools/testing/selftests/bpf/progs/test_access_variable_array.c
> deleted file mode 100644
> index 326b7d1f496a..000000000000
> --- a/tools/testing/selftests/bpf/progs/test_access_variable_array.c
> +++ /dev/null
> @@ -1,19 +0,0 @@
> -// SPDX-License-Identifier: GPL-2.0
> -/* Copyright (c) 2023 Bytedance */
> -
> -#include "vmlinux.h"
> -#include <bpf/bpf_helpers.h>
> -#include <bpf/bpf_tracing.h>
> -
> -unsigned long span = 0;
> -
> -SEC("fentry/sched_balance_rq")
> -int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq,
> - struct sched_domain *sd)
> -{
> - span = sd->span[0];
> -
> - return 0;
> -}
> -
> -char _license[] SEC("license") = "GPL";
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] bpf/selftests: remove test_access_variable_array
2026-04-10 10:54 [PATCH] bpf/selftests: remove test_access_variable_array Venkat Rao Bagalkote
2026-04-10 17:21 ` Naveen Kumar Thummalapenta
@ 2026-04-10 19:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-04-10 19:40 UTC (permalink / raw)
To: Venkat Rao Bagalkote
Cc: bpf, skb99, hbathini, adubey, ast, alexei.starovoitov, peterz,
andrii, maddy, linux-kernel, riteshh, alan.maguire
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Fri, 10 Apr 2026 16:24:04 +0530 you wrote:
> test_access_variable_array relied on accessing struct sched_domain::span
> to validate variable-length array handling via BTF. Recent scheduler
> refactoring removed or hid this field, causing the test
> to fail to build.
>
> Given that this test depends on internal scheduler structures that are
> subject to refactoring, and equivalent variable-length array coverage
> already exists via bpf_testmod-based tests, remove
> test_access_variable_array entirely.
>
> [...]
Here is the summary with links:
- bpf/selftests: remove test_access_variable_array
https://git.kernel.org/bpf/bpf-next/c/aacee214d576
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-10 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 10:54 [PATCH] bpf/selftests: remove test_access_variable_array Venkat Rao Bagalkote
2026-04-10 17:21 ` Naveen Kumar Thummalapenta
2026-04-10 19:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox