Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <test_progs.h>
0003 
0004 void test_tcp_estats(void)
0005 {
0006     const char *file = "./test_tcp_estats.o";
0007     int err, prog_fd;
0008     struct bpf_object *obj;
0009     __u32 duration = 0;
0010 
0011     err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd);
0012     CHECK(err, "", "err %d errno %d\n", err, errno);
0013     if (err)
0014         return;
0015 
0016     bpf_object__close(obj);
0017 }