Lines Matching refs:kbuild_include_opts
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()
328 *kbuild_include_opts = NULL; in llvm__get_kbuild_opts()
333 *kbuild_include_opts = strdup(saved_kbuild_include_opts); in llvm__get_kbuild_opts()
335 if (*kbuild_dir && *kbuild_include_opts) in llvm__get_kbuild_opts()
339 zfree(kbuild_include_opts); in llvm__get_kbuild_opts()
368 (void **)kbuild_include_opts, in llvm__get_kbuild_opts()
382 pr_debug("include option is set to %s\n", *kbuild_include_opts); in llvm__get_kbuild_opts()
385 saved_kbuild_include_opts = strdup(*kbuild_include_opts); 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()
504 force_set_env("KERNEL_INC_OPTIONS", kbuild_include_opts); in llvm__compile_bpf()
580 free(kbuild_include_opts); in llvm__compile_bpf()
595 free(kbuild_include_opts); in llvm__compile_bpf()