1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2022 Facebook */
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
8 const volatile int my_pid;
32 int custom1(void *ctx)
34 custom1_called = true;
38 SEC("custom/something")
39 int custom2(void *ctx)
41 custom2_called = true;
46 int kprobe1(void *ctx)
48 kprobe1_called = true;
57 /* use sleepable helper, custom handler should set sleepable flag */
58 bpf_copy_from_user(&whatever, sizeof(whatever), NULL);
63 char _license[] SEC("license") = "GPL";