From patchwork Tue Sep 1 16:14:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 52937 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 8190A2157D for ; Tue, 1 Sep 2015 16:15:08 +0000 (UTC) Received: by wiclp12 with SMTP id lp12sf12867014wic.0 for ; Tue, 01 Sep 2015 09:15:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Q/u0YZct3HQRTLDyYaBb5lJtqaY1Z6F804ki6zP8neo=; b=BXvhcgim3Lbzivu/bHLA3hvzAQ+ojcpow/a93PkDaQUrT41irnllFbZ+OyEGElMEOm /Of+vN8KTxeVhPDf6rWvFxTnnRjsHFCpR2g1pYZ3L381I5dQ6naBRH6G69oLdSmMRt/D La8j3KlBOENqjsySS1ThXdOsXr3gbFEQtRPABZaiYKrm1kg067N0pTkzTm7PXAiOpKwb DbHZSiWBgLABS0C0ARJQSBehC12g4/cwvIBjuq/E/r8vCTUv7QDO/MtWnV5hEhY4Oyux v25zesz4UmIJPkazz9TTGBvdRxGd20YPS5K7qDa+O/5cx9LxMQZvF1E3eDHdSg1tVd8r NUww== X-Gm-Message-State: ALoCoQmlZyRvAw4cuAABX19HZ0vkPuUfyRG1tU+WABWV+kbmULEcHxJRJGPnHWPtLZ7jAQNwYS2E X-Received: by 10.180.77.105 with SMTP id r9mr1062647wiw.0.1441124107400; Tue, 01 Sep 2015 09:15:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.99 with SMTP id p3ls513665laj.57.gmail; Tue, 01 Sep 2015 09:15:07 -0700 (PDT) X-Received: by 10.152.37.227 with SMTP id b3mr13174925lak.91.1441124107089; Tue, 01 Sep 2015 09:15:07 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id qg4si16821600lbb.25.2015.09.01.09.15.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 09:15:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lagj9 with SMTP id j9so534406lag.2 for ; Tue, 01 Sep 2015 09:15:06 -0700 (PDT) X-Received: by 10.112.63.138 with SMTP id g10mr13751066lbs.106.1441124106016; Tue, 01 Sep 2015 09:15:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp644026lbb; Tue, 1 Sep 2015 09:15:03 -0700 (PDT) X-Received: by 10.66.192.162 with SMTP id hh2mr48594408pac.71.1441124102179; Tue, 01 Sep 2015 09:15:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id em2si15555939pbb.199.2015.09.01.09.15.01; Tue, 01 Sep 2015 09:15:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753283AbbIAQOm (ORCPT + 28 others); Tue, 1 Sep 2015 12:14:42 -0400 Received: from casper.infradead.org ([85.118.1.10]:46971 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753189AbbIAQOl (ORCPT ); Tue, 1 Sep 2015 12:14:41 -0400 Received: from [177.35.17.8] (helo=zoo.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWoCf-000753-2L; Tue, 01 Sep 2015 16:14:33 +0000 Received: by zoo.infradead.org (Postfix, from userid 1000) id 43D4722015E; Tue, 1 Sep 2015 13:14:27 -0300 (BRT) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Wang Nan , Zefan Li , pi3orama@163.com, Arnaldo Carvalho de Melo Subject: [PATCH 2/3] perf build: Fix Intel PT instruction decoder dependency problem Date: Tue, 1 Sep 2015 13:14:03 -0300 Message-Id: <1441124044-20465-3-git-send-email-acme@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1441124044-20465-1-git-send-email-acme@kernel.org> References: <1441124044-20465-1-git-send-email-acme@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: acme@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Wang Nan 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: Wang Nan Acked-by: Adrian Hunter Acked-by: Jiri Olsa Cc: Zefan Li Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1441087005-107540-1-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/intel-pt-decoder/Build | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/intel-pt-decoder/Build b/tools/perf/util/intel-pt-decoder/Build index 240730d682c1..2386322ece4f 100644 --- a/tools/perf/util/intel-pt-decoder/Build +++ b/tools/perf/util/intel-pt-decoder/Build @@ -4,6 +4,7 @@ inat_tables_script = util/intel-pt-decoder/gen-insn-attr-x86.awk inat_tables_maps = util/intel-pt-decoder/x86-opcode-map.txt $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) + $(call rule_mkdir) @$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@ $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c