mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-28 20:30:24 +00:00
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:
parent
b6f09edc00
commit
b3c5a23693
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user