selftests/bpf: Don't hard-code root cgroup id
[linux-2.6-microblaze.git] / tools / lib / bpf / test_libbpf.c
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
8 int main(int argc, char *argv[])
9 {
10         /* libbpf.h */
11         libbpf_set_print(NULL);
12
13         /* bpf.h */
14         bpf_prog_get_fd_by_id(0);
15
16         /* btf.h */
17         btf__new(NULL, 0);
18
19         return 0;
20 }