• Wang Nan's avatar
    perf build: Fix Intel PT instruction decoder dependency problem · 04aa90b5
    Wang Nan authored
    I hit following building error randomly:
    
        ...
      /bin/sh: /path/to/kernel/buildperf/util/intel-pt-decoder/inat-tables.c: No such file or directory
        ...
        LINK     /path/to/kernel/buildperf/plugin_mac80211.so
        LINK     /path/to/kernel/buildperf/plugin_kmem.so
        LINK     /path/to/kernel/buildperf/plugin_xen.so
        LINK     /path/to/kernel/buildperf/plugin_hrtimer.so
      In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:25:0:
      util/intel-pt-decoder/inat.c:24:25: fatal error: inat-tables.c: No such file or directory
       #include "inat-tables.c"
                               ^
      compilation terminated.
      make[4]: *** [/path/to/kernel/buildperf/util/intel-pt-decoder/intel-pt-insn-decoder.o] Error 1
      make[4]: *** Waiting for unfinished jobs....
        LINK     /path/to/kernel/buildperf/plugin_function.so
    
    This is caused by tools/perf/util/intel-pt-decoder/Build that, it tries
    to generate $(OUTPUT)util/intel-pt-decoder/inat-tables.c atomatically
    but forget to ensure the existance of $(OUTPUT)util/intel-pt-decoder
    directory.
    
    This patch fixes it by adding $(call rule_mkdir) like other similar rules.
    Signed-off-by: default avatarWang Nan <wangnan0@huawei.com>
    Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
    Cc: Zefan Li <lizefan@huawei.com>
    Cc: pi3orama@163.com
    Link: http://lkml.kernel.org/r/1441087005-107540-1-git-send-email-wangnan0@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    04aa90b5
Build 655 Bytes