• W
    perf tools: Auto detecting kernel build directory · d325d788
    Wang Nan 提交于
    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: NWang Nan <wangnan0@huawei.com>
    Acked-by: NAlexei 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.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    d325d788
llvm-utils.c 7.9 KB