1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2020 Facebook
4 #include <bpf/bpf_helpers.h>
9 SEC("cgroup_skb/egress1")
10 int egress(struct __sk_buff
*skb
)
12 __sync_fetch_and_add(&calls
, 1);
16 SEC("cgroup_skb/egress2")
17 int egress_alt(struct __sk_buff
*skb
)
19 __sync_fetch_and_add(&alt_calls
, 1);
23 char _license
[] SEC("license") = "GPL";