1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2020 Facebook */
5 #include <bpf/bpf_helpers.h>
7 __attribute__ ((noinline))
8 int f1(struct __sk_buff *skb)
13 __attribute__ ((noinline))
14 int f2(int val, struct __sk_buff *skb)
19 __attribute__ ((noinline))
20 int f3(int val, struct __sk_buff *skb, int var)
22 return f2(var, skb) + val;
25 __attribute__ ((noinline))
26 int f4(struct __sk_buff *skb)
31 __attribute__ ((noinline))
32 int f5(struct __sk_buff *skb)
37 __attribute__ ((noinline))
38 int f6(struct __sk_buff *skb)
43 __attribute__ ((noinline))
44 int f7(struct __sk_buff *skb)
50 __attribute__ ((noinline))
51 int f8(struct __sk_buff *skb)
57 SEC("classifier/test")
58 int test_cls(struct __sk_buff *skb)