WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / bpf / progs / test_link_pinning.c
blobbbf2a5264dc08b867be5bde94d5875d961f4ca1b
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2020 Facebook */
4 #include <stdbool.h>
5 #include <linux/bpf.h>
6 #include <bpf/bpf_helpers.h>
8 int in = 0;
9 int out = 0;
11 SEC("raw_tp/sys_enter")
12 int raw_tp_prog(const void *ctx)
14 out = in;
15 return 0;
18 SEC("tp_btf/sys_enter")
19 int tp_btf_prog(const void *ctx)
21 out = in;
22 return 0;
25 char _license[] SEC("license") = "GPL";