0001
0002 #include "vmlinux.h"
0003
0004 #include <bpf/bpf_helpers.h>
0005 #include <bpf/bpf_tracing.h>
0006 #include <bpf/bpf_core_read.h>
0007
0008 typedef int (*func_proto_typedef)(long);
0009 typedef int (*func_proto_typedef_nested1)(func_proto_typedef);
0010 typedef int (*func_proto_typedef_nested2)(func_proto_typedef_nested1);
0011
0012 int proto_out;
0013
0014 SEC("raw_tracepoint/sys_enter")
0015 int core_relo_proto(void *ctx)
0016 {
0017 proto_out = bpf_core_type_exists(func_proto_typedef_nested2);
0018
0019 return 0;
0020 }
0021
0022 char LICENSE[] SEC("license") = "GPL";