From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbdJPNfw (ORCPT ); Mon, 16 Oct 2017 09:35:52 -0400 Received: from foss.arm.com ([217.140.101.70]:57166 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752141AbdJPNfv (ORCPT ); Mon, 16 Oct 2017 09:35:51 -0400 Date: Mon, 16 Oct 2017 14:35:31 +0100 From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, adech.fo@gmail.com, aryabinin@virtuozzo.com, catalin.marinas@arm.com, christoffer.dall@linaro.org, dvyukov@google.com, linux-kbuild@vger.kernel.org, will.deacon@arm.com, yamada.masahiro@socionext.com Subject: Re: [PATCH 0/4] Cleanup instrumentation avoidance Message-ID: <20171016133530.fhspouznccpprjc6@lakrids.cambridge.arm.com> References: <20171016132440.38098-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171016132440.38098-1-mark.rutland@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry Marc, I somehow typo'd your name when sending this out... Mark. On Mon, Oct 16, 2017 at 02:24:36PM +0100, Mark Rutland wrote: > Recently we spotted that some code with special ABI requirements was > being instrumented by KCOV [1], and we need to avoid all instrumentation > in this case. > > While it's possible to disable each instrumentation option manually, > this is tedious and error prone as new options are introduced. > > This series adds a new CC_INSTRUMENT option which can be used to disable > all instrumentation of a given file or directory, and makes use of this > throught arm64. > > There are other places where this could be used (e.g. the EFI stub), but > I've avoided altering those for now in the hope that this can be taken > via the arm64 tree. > > Thanks, > Mark. > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-September/533105.html > > Mark Rutland (4): > kbuild: allow global override of CC instrumentation > arm64: prevent instrumentation of LL/SC atomics > kvm/arm64: simplify CC instrumentation opt-out > arm64: vdso: remove pointless gcov option > > arch/arm64/kernel/vdso/Makefile | 3 --- > arch/arm64/kvm/hyp/Makefile | 5 +---- > arch/arm64/lib/Makefile | 1 + > scripts/Makefile.lib | 17 +++++++++++++---- > 4 files changed, 15 insertions(+), 11 deletions(-) > > -- > 2.11.0 >