Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Adjust test_access_variable_array after a kernel function name change

After commit 4c3e509ea9f2 ("sched/balancing: Rename load_balance() => sched_balance_rq()"),
the load_balance kernel function is renamed to sched_balance_rq.

This patch adjusts the fentry program in test_access_variable_array.c
to reflect this kernel function name change.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240516170140.2689430-1-martin.lau@linux.dev

authored by

Martin KaFai Lau and committed by
Daniel Borkmann
5405807e 2322113a

+1 -1
+1 -1
tools/testing/selftests/bpf/progs/test_access_variable_array.c
··· 7 7 8 8 unsigned long span = 0; 9 9 10 - SEC("fentry/load_balance") 10 + SEC("fentry/sched_balance_rq") 11 11 int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq, 12 12 struct sched_domain *sd) 13 13 {