2 * Copyright (C) 2015, Wang Nan <wangnan0@huawei.com>
3 * Copyright (C) 2015, Huawei Inc.
11 /* Path of clang executable */
12 const char *clang_path;
14 * Template of clang bpf compiling. 5 env variables
16 * $CLANG_EXEC: Path to clang.
17 * $CLANG_OPTIONS: Extra options to clang.
18 * $KERNEL_INC_OPTIONS: Kernel include directories.
19 * $WORKING_DIR: Kernel source directory.
20 * $CLANG_SOURCE: Source file to be compiled.
22 const char *clang_bpf_cmd_template;
23 /* Will be filled in $CLANG_OPTIONS */
24 const char *clang_opt;
25 /* Where to find kbuild system */
26 const char *kbuild_dir;
28 * Arguments passed to make, like 'ARCH=arm' if doing cross
29 * compiling. Should not be used for dynamic compiling.
31 const char *kbuild_opts;
34 extern struct llvm_param llvm_param;
35 extern int perf_llvm_config(const char *var, const char *value);