After commit 4c3e509ea9
("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
19 lines
375 B
C
19 lines
375 B
C
// 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";
|