Linux Perf
llvm.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef PERF_TEST_LLVM_H
3
#define PERF_TEST_LLVM_H
4
5
#ifdef __cplusplus
6
extern
"C"
{
7
#endif
8
9
#include <stddef.h>
/* for size_t */
10
#include <stdbool.h>
/* for bool */
11
12
extern
const
char
test_llvm__bpf_base_prog
[];
13
extern
const
char
test_llvm__bpf_test_kbuild_prog
[];
14
extern
const
char
test_llvm__bpf_test_prologue_prog
[];
15
extern
const
char
test_llvm__bpf_test_relocation
[];
16
17
enum
test_llvm__testcase
{
18
LLVM_TESTCASE_BASE
,
19
LLVM_TESTCASE_KBUILD
,
20
LLVM_TESTCASE_BPF_PROLOGUE
,
21
LLVM_TESTCASE_BPF_RELOCATION
,
22
__LLVM_TESTCASE_MAX
,
23
};
24
25
int
test_llvm__fetch_bpf_obj
(
void
**p_obj_buf,
size_t
*p_obj_buf_sz,
26
enum
test_llvm__testcase
index,
bool
force
,
27
bool
*
should_load_fail
);
28
#ifdef __cplusplus
29
}
30
#endif
31
#endif
LLVM_TESTCASE_BPF_RELOCATION
Definition:
llvm.h:21
force
static bool force
Definition:
builtin-diff.c:68
LLVM_TESTCASE_BPF_PROLOGUE
Definition:
llvm.h:20
LLVM_TESTCASE_KBUILD
Definition:
llvm.h:19
test_llvm__bpf_test_prologue_prog
const char test_llvm__bpf_test_prologue_prog[]
Definition:
llvm-src-prologue.c:2
LLVM_TESTCASE_BASE
Definition:
llvm.h:18
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 index, bool force, bool *should_load_fail)
Definition:
llvm.c:56
__LLVM_TESTCASE_MAX
Definition:
llvm.h:22
test_llvm__testcase
test_llvm__testcase
Definition:
llvm.h:17
should_load_fail
bool should_load_fail
Definition:
llvm.c:34
test_llvm__bpf_test_relocation
const char test_llvm__bpf_test_relocation[]
Definition:
llvm-src-relocation.c:2
test_llvm__bpf_base_prog
const char test_llvm__bpf_base_prog[]
Definition:
llvm-src-base.c:2
test_llvm__bpf_test_kbuild_prog
const char test_llvm__bpf_test_kbuild_prog[]
Definition:
llvm-src-kbuild.c:2
tests
llvm.h
Generated by
1.8.13