#include <stdio.h>
#include <bpf/libbpf.h>
#include <util/llvm-utils.h>
#include <util/cache.h>
#include "llvm.h"
#include "tests.h"
#include "debug.h"
#include "util.h"
Go to the source code of this file.
◆ test__bpf_parsing()
static int test__bpf_parsing |
( |
void *obj_buf |
__maybe_unused, |
|
|
size_t obj_buf_sz |
__maybe_unused |
|
) |
| |
|
static |
◆ test__llvm()
int test__llvm |
( |
struct test *test |
__maybe_unused, |
|
|
int |
subtest |
|
) |
| |
◆ test__llvm_subtest_get_desc()
const char* test__llvm_subtest_get_desc |
( |
int |
subtest | ) |
|
◆ test__llvm_subtest_get_nr()
int test__llvm_subtest_get_nr |
( |
void |
| ) |
|
◆ test_llvm__fetch_bpf_obj()
int test_llvm__fetch_bpf_obj |
( |
void ** |
p_obj_buf, |
|
|
size_t * |
p_obj_buf_sz, |
|
|
enum test_llvm__testcase |
idx, |
|
|
bool |
force, |
|
|
bool * |
should_load_fail |
|
) |
| |
◆ bpf_source_table
Initial value:= {
.desc = "Basic BPF llvm compile",
},
.desc = "kbuild searching",
},
.desc = "Compile source for BPF prologue generation",
},
.desc = "Compile source for BPF relocation",
.should_load_fail = true,
},
}
const char test_llvm__bpf_base_prog[]
const char test_llvm__bpf_test_prologue_prog[]
const char test_llvm__bpf_test_kbuild_prog[]
const char test_llvm__bpf_test_relocation[]
◆ desc
◆ should_load_fail
◆ source