1*5ff54dedSFeng Zhou // SPDX-License-Identifier: GPL-2.0
2*5ff54dedSFeng Zhou /* Copyright (c) 2023 Bytedance */
3*5ff54dedSFeng Zhou 
4*5ff54dedSFeng Zhou #include "vmlinux.h"
5*5ff54dedSFeng Zhou #include <bpf/bpf_helpers.h>
6*5ff54dedSFeng Zhou #include <bpf/bpf_tracing.h>
7*5ff54dedSFeng Zhou 
8*5ff54dedSFeng Zhou unsigned long span = 0;
9*5ff54dedSFeng Zhou 
10*5ff54dedSFeng Zhou SEC("fentry/load_balance")
BPF_PROG(fentry_fentry,int this_cpu,struct rq * this_rq,struct sched_domain * sd)11*5ff54dedSFeng Zhou int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq,
12*5ff54dedSFeng Zhou 		struct sched_domain *sd)
13*5ff54dedSFeng Zhou {
14*5ff54dedSFeng Zhou 	span = sd->span[0];
15*5ff54dedSFeng Zhou 
16*5ff54dedSFeng Zhou 	return 0;
17*5ff54dedSFeng Zhou }
18*5ff54dedSFeng Zhou 
19*5ff54dedSFeng Zhou char _license[] SEC("license") = "GPL";
20