1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #include <iostream> 3 #include <bpf/libbpf.h> 4 #include <bpf/bpf.h> 5 #include <bpf/btf.h> 6 #include "test_core_extern.skel.h" 7 8 /* do nothing, just make sure we can link successfully */ 9 main(int argc,char * argv[])10int main(int argc, char *argv[]) 11 { 12 struct test_core_extern *skel; 13 14 /* libbpf.h */ 15 libbpf_set_print(NULL); 16 17 /* bpf.h */ 18 bpf_prog_get_fd_by_id(0); 19 20 /* btf.h */ 21 btf__new(NULL, 0); 22 23 /* BPF skeleton */ 24 skel = test_core_extern__open_and_load(); 25 test_core_extern__destroy(skel); 26 27 std::cout << "DONE!" << std::endl; 28 29 return 0; 30 } 31