From patchwork Wed Jul 20 20:16:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 72486 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp65747qga; Wed, 20 Jul 2016 13:16:31 -0700 (PDT) X-Received: by 10.66.47.133 with SMTP id d5mr77189711pan.48.1469045791596; Wed, 20 Jul 2016 13:16:31 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si5114406pft.165.2016.07.20.13.16.31; Wed, 20 Jul 2016 13:16:31 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754538AbcGTUQR (ORCPT + 29 others); Wed, 20 Jul 2016 16:16:17 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:34925 "EHLO mail-io0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751339AbcGTUQM (ORCPT ); Wed, 20 Jul 2016 16:16:12 -0400 Received: by mail-io0-f174.google.com with SMTP id m101so57743310ioi.2 for ; Wed, 20 Jul 2016 13:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ChQzLlYWbOu+DTZBtPxuX/iCF1mOobqCUYslxJA+5vk=; b=Emp5FHnCOAC43olrmkJkFSrxTGZQ63LBbtsKaCevBjpCMBw4/d2Sflz4VHpReOwPrI ci5mlDoV232xsM0UvKtOEocMYZmmYbg9uce5QlMV7b7YDyWQ8wyjoULrFJsgjzNjnfN9 Dn4BLzk7mhQdg3jpQRBxGi78h0Fa+uAa8iYWg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ChQzLlYWbOu+DTZBtPxuX/iCF1mOobqCUYslxJA+5vk=; b=JuKDGDMygWzA+tFQKOePDfTJF7ykGKt24xQGCwOi+d0HFYpVqJ7xrv2Wom1w3bIIKO NRCbfRchAxYeq56XYZR+xzCBXoVA6gY6H9wpzMtIv/d9Vf6Gd8cl0Hix5qN+Hu/ZFaKQ Hwq3tNe6uuo2f7DvK6iTPhy2PXmif6wRFtsRr5WV1+k/sstsxSHp9Nwk5IQNN7SJahaX 1fCTVUPtIW+hLpyfblbN35DJk+uuVt40d/AgxQ9NfNu0zzfz9Fb1z6w8MKD//UQcJn7T sXr2ai5XaIzER70P1OBW+GVRxGug8nD+FSfgQ2+6eHMROzNT3QRZyvfdK9zYCyEbOFdl BVow== X-Gm-Message-State: ALyK8tIb3KHJpBmISbVrMV3jTsnK6jLg2x8+jAwGsbr+DvpBOhZZN9rC+6Y7AfK6cAvwKfv0 X-Received: by 10.107.158.132 with SMTP id h126mr45613023ioe.120.1469045771709; Wed, 20 Jul 2016 13:16:11 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id 97sm2140218ioi.12.2016.07.20.13.16.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jul 2016 13:16:11 -0700 (PDT) From: Mathieu Poirier To: acme@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V3 1/3] tools: Copy the header file needed by perf tools Date: Wed, 20 Jul 2016 14:16:06 -0600 Message-Id: <1469045768-17549-2-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469045768-17549-1-git-send-email-mathieu.poirier@linaro.org> References: <1469045768-17549-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Directly accessing kernel files is not allowed anymore. As such making file coresight-pmu.h accessible by the perf tools and complain if this copy strays from the one found in the main kernel tree. Signed-off-by: Mathieu Poirier --- tools/perf/MANIFEST | 1 + tools/perf/Makefile.perf | 3 +++ 2 files changed, 4 insertions(+) -- 2.7.4 diff --git a/tools/perf/MANIFEST b/tools/perf/MANIFEST index ad2534df4ba6..f181c613d9aa 100644 --- a/tools/perf/MANIFEST +++ b/tools/perf/MANIFEST @@ -77,4 +77,5 @@ tools/include/linux/stringify.h tools/include/linux/types.h tools/include/linux/err.h tools/include/linux/bitmap.h +tools/include/linux/coresight-pmu.h tools/arch/*/include/uapi/asm/perf_regs.h diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 6641abb97f0a..9ad53b9868d8 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -429,6 +429,9 @@ $(PERF_IN): prepare FORCE @(test -f ../../include/asm-generic/bitops/fls64.h && ( \ (diff -B ../include/asm-generic/bitops/fls64.h ../../include/asm-generic/bitops/fls64.h >/dev/null) \ || echo "Warning: tools/include/asm-generic/bitops/fls64.h differs from kernel" >&2 )) || true + @(test -f ../../include/linux/coresight-pmu.h && ( \ + (diff -B ../include/linux/coresight-pmu.h ../../include/linux/coresight-pmu.h >/dev/null) \ + || echo "Warning: tools/include/linux/coresight-pmu.h differs from kernel" >&2 )) || true $(Q)$(MAKE) $(build)=perf $(OUTPUT)perf: $(PERFLIBS) $(PERF_IN) $(LIBTRACEEVENT_DYNAMIC_LIST)