summaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/test_libbpf.cpp
blob: abf3fc25c9fa363e511318277d54d1489a05f7ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#include "libbpf.h"
#include "bpf.h"
#include "btf.h"

/* do nothing, just make sure we can link successfully */

int main(int argc, char *argv[])
{
    /* libbpf.h */
    libbpf_set_print(NULL, NULL, NULL);

    /* bpf.h */
    bpf_prog_get_fd_by_id(0);

    /* btf.h */
    btf__new(NULL, 0, NULL);
}