1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
6 #define MAX_STACK_RAWTP 10
8 SEC("raw_tracepoint/sys_enter")
9 int bpf_prog2(void *ctx)
11 __u64 stack[MAX_STACK_RAWTP];
14 /* set all the flags which should return -EINVAL */
15 error = bpf_get_stack(ctx, stack, 0, -1);
26 char _license[] SEC("license") = "GPL";