Lines Matching refs:kbuild_dir

36 	.kbuild_dir = NULL,
56 llvm_param.kbuild_dir = strdup(value); in perf_llvm_config()
247 static int detect_kbuild_dir(char **kbuild_dir) in detect_kbuild_dir() argument
249 const char *test_dir = llvm_param.kbuild_dir; in detect_kbuild_dir()
279 err = asprintf(kbuild_dir, "%s%s%s", prefix_dir, test_dir, in detect_kbuild_dir()
318 void llvm__get_kbuild_opts(char **kbuild_dir, char **kbuild_include_opts) in llvm__get_kbuild_opts() argument
324 if (!kbuild_dir || !kbuild_include_opts) in llvm__get_kbuild_opts()
327 *kbuild_dir = NULL; in llvm__get_kbuild_opts()
332 *kbuild_dir = strdup(saved_kbuild_dir); in llvm__get_kbuild_opts()
335 if (*kbuild_dir && *kbuild_include_opts) in llvm__get_kbuild_opts()
338 zfree(kbuild_dir); in llvm__get_kbuild_opts()
348 if (llvm_param.kbuild_dir && !llvm_param.kbuild_dir[0]) { in llvm__get_kbuild_opts()
354 err = detect_kbuild_dir(kbuild_dir); in llvm__get_kbuild_opts()
364 pr_debug("Kernel build dir is set to %s\n", *kbuild_dir); in llvm__get_kbuild_opts()
365 force_set_env("KBUILD_DIR", *kbuild_dir); in llvm__get_kbuild_opts()
376 *kbuild_dir); in llvm__get_kbuild_opts()
378 zfree(kbuild_dir); in llvm__get_kbuild_opts()
384 saved_kbuild_dir = strdup(*kbuild_dir); in llvm__get_kbuild_opts()
460 char *kbuild_dir = NULL, *kbuild_include_opts = NULL, in llvm__compile_bpf() local
487 llvm__get_kbuild_opts(&kbuild_dir, &kbuild_include_opts); in llvm__compile_bpf()
506 force_set_env("WORKING_DIR", kbuild_dir ? : "."); in llvm__compile_bpf()
556 free(kbuild_dir); in llvm__compile_bpf()
571 free(kbuild_dir); in llvm__compile_bpf()