Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2#include "libbpf.h"
3#include "bpf.h"
4#include "btf.h"
5
6/* do nothing, just make sure we can link successfully */
7
8int main(int argc, char *argv[])
9{
10 /* libbpf.h */
11 libbpf_set_print(NULL, NULL, NULL);
12
13 /* bpf.h */
14 bpf_prog_get_fd_by_id(0);
15
16 /* btf.h */
17 btf__new(NULL, 0, NULL);
18}