summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/llvm.h
blob: 5150b4d6ef50afe357f5f86300f4d39d28bec658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PERF_TEST_LLVM_H
#define PERF_TEST_LLVM_H

#include <stddef.h> /* for size_t */
#include <stdbool.h> /* for bool */

extern const char test_llvm__bpf_base_prog[];
extern const char test_llvm__bpf_test_kbuild_prog[];
extern const char test_llvm__bpf_test_prologue_prog[];

enum test_llvm__testcase {
	LLVM_TESTCASE_BASE,
	LLVM_TESTCASE_KBUILD,
	LLVM_TESTCASE_BPF_PROLOGUE,
	__LLVM_TESTCASE_MAX,
};

int test_llvm__fetch_bpf_obj(void **p_obj_buf, size_t *p_obj_buf_sz,
			     enum test_llvm__testcase index, bool force);
#endif