1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017 Facebook
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
7 #include <bpf/bpf_core_read.h>
13 * This program will be manually made sleepable on the userspace side
14 * and should thus be unattachable.
16 SEC("kprobe/" SYS_PREFIX "sys_nanosleep")
17 int handle_kprobe_sleepable(struct pt_regs *ctx)
23 char _license[] SEC("license") = "GPL";