mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
selftests/bpf: Remove test_access_variable_array
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> Tested-by: Naveen Kumar Thummalapenta <naveen66@linux.ibm.com> Link: https://lore.kernel.org/r/20260410105404.91126-1-venkat88@linux.ibm.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
4406942e65
commit
aacee214d5
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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";
|
||||
Loading…
Reference in New Issue
Block a user