1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
14 SEC("tracepoint/syscalls/sys_enter_nanosleep")
15 int on_write(void *ctx)
17 if (pid != (bpf_get_current_pid_tgid() >> 32))
20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr);
25 char _license[] SEC("license") = "GPL";