scx_rustland_core: use handle_mm_fault kprobe

The symbol __handle_mm_fault isn't available anymore in 6.12, let's rely
on handle_mm_fault that is available both on 6.12 and older kernels.

Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
This commit is contained in:
Andrea Righi 2024-10-11 15:39:34 +02:00
parent b6f09edc00
commit b3c5a23693

View File

@ -280,7 +280,7 @@ struct {
__uint(max_entries, MAX_ENQUEUED_TASKS);
} pid_mm_fault_map SEC(".maps");
SEC("kprobe/__handle_mm_fault")
SEC("kprobe/handle_mm_fault")
int BPF_KPROBE(kprobe_handle_mm_fault, void *vma,
unsigned long address, unsigned int flags)
{
@ -292,7 +292,7 @@ int BPF_KPROBE(kprobe_handle_mm_fault, void *vma,
return 0;
}
SEC("kretprobe/__handle_mm_fault")
SEC("kretprobe/handle_mm_fault")
int BPF_KRETPROBE(kretprobe_handle_mm_fault)
{
pid_t pid = bpf_get_current_pid_tgid() >> 32;