1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <bpf/bpf_helpers.h>
11 __noinline int foo(const struct S *s)
14 return bpf_get_prandom_u32() < s->x;
19 SEC("cgroup_skb/ingress")
20 __failure __msg("Caller passes invalid args into func#1")
21 int global_func13(struct __sk_buff *skb)
23 const struct S *s = (const struct S *)(0xbedabeda);