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: 9240453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A40FB600CB for ; Wed, 20 Jul 2016 20:18:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9685127C39 for ; Wed, 20 Jul 2016 20:18:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AABD27D5E; Wed, 20 Jul 2016 20:18:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 49A2F27C39 for ; Wed, 20 Jul 2016 20:18:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPxvG-0002FH-BJ; Wed, 20 Jul 2016 20:16:50 +0000 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPxuy-0001lO-Pi for linux-arm-kernel@lists.infradead.org; Wed, 20 Jul 2016 20:16:34 +0000 Received: by mail-io0-x236.google.com with SMTP id q83so57931132iod.1 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=JhWhEryhq7FQjjoX4IxvAs2w7gGQ9iZ0DZ9L1XHq5/sf+JdKRnFGaguIPUvHI8n68E Ea5VJyhoj8WOZSPk8oKKMu+ua349q9JT5ZtFQLQ068bK4QDtZbKiH59OFzmu66fsXmCE SiBRZImUE4ldsfY9FQIKgvOrDzN6LtJC7yfmK2tjiNmPK0kbHr2RSv2x+2IcRqKlNZiP mRfvrjmBpHgkR41D3t+2KL0VDrawdTLegEhc2fr1eh54PeGUsBfWWgdkW1y9jz9eTyR/ oQbW73VQp/Xuz+Ye1VLB5ywd31lLIAWO5R0yTEnmCVJV7l+1k/qUuTpAQrpcAXwjqHQT F1Hg== X-Gm-Message-State: ALyK8tIqYDjd4ZkoOUB5qWaEgm6vLxS32+7zx9FnZuaQPUN8JMndi/arfZzNts+c44tEk9VX 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160720_131632_995237_A84BD056 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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)