summaryrefslogtreecommitdiff
path: root/tools/perf/util/llvm-utils.h
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-07-14 06:40:02 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-08-07 10:57:16 -0300
commitd325d7887b960627dc686d70d07682e18383f9c4 (patch)
treeb0ac46a5e263ed9e1af09adf7853b6262bcfdc38 /tools/perf/util/llvm-utils.h
parent4cea3a9cb30a962fa759fcb081fb83351113d9c4 (diff)
downloadlinux-d325d7887b960627dc686d70d07682e18383f9c4.tar.gz
linux-d325d7887b960627dc686d70d07682e18383f9c4.tar.bz2
linux-d325d7887b960627dc686d70d07682e18383f9c4.zip
perf tools: Auto detecting kernel build directory
This patch detects kernel build directory by checking the existence of include/generated/autoconf.h. clang working directory is changed to kbuild directory if it is found, to help user use relative include path. Following patch will detect kernel include directory, which contains relative include patch so this workdir changing is needed. Users are allowed to set 'kbuild-dir = ""' manually to disable this checking. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: David Ahern <dsahern@gmail.com> Cc: He Kuang <hekuang@huawei.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kaixu Xia <xiakaixu@huawei.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/n/tip-owyfwfbemrjn0tlj6tgk2nf5@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/llvm-utils.h')
0 files changed, 0 insertions, 0 deletions