Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6392288imd; Wed, 31 Oct 2018 10:58:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5eibp7gwQzF2CH+Ajg2OxSB/XYUoqriN4hn647xOUkToY3wD7jILJ9rAy3o6dJx2o2SxDXg X-Received: by 2002:a17:902:5c4:: with SMTP id f62-v6mr4475311plf.18.1541008738427; Wed, 31 Oct 2018 10:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541008738; cv=none; d=google.com; s=arc-20160816; b=E/KAQtZnpBp9CX5zUofPe4Q9EdCK2a8u9Zg/Ziu1ClmQae7n1eTYsGl6s0j3gGohI/ RxE9YGU3Fgw7damAa5n8JLphEFHELpb5HltbuKcWdktIUUzUmLP7QnNpArOFR/jW0hc/ oSQGwPIg3qQs+OV7EPGYDI2aAfBJWS4THSWC0svqYLQTlq6MqrxKXhB/2z/qM+EENPaO hGVOHtWab2Ne7/VUPCNKLATs3KXTZctY8MWsQZuEwKDA5281O3YoWdrFlwwARS7wWCKV 8fdmua3oXg6VaX6rd3x3p5AK5kOXbUy3w+V7+Pom+tFJ4JA1FQnhG1IKzRUwRbFQ139c dTCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=JGpNFBlTA96ndxttRJx82KMiXUKuRTl03HAeb/zSr74=; b=rrPsKn8I0GEa1nzPEwyXtrJ6ELqUDYfX7N8zFSztxPoJFNFkPpZtfVsA6DFIQkF1ib brWqMt+dvBezDcYoj/vFfTescRGMLFLrVD7dJRCzUM7nSxqkRng0qWbvUryfzJWTAhZR S4Sh1PVNwR0L7q7ie1qnFLLxU2kB7oyDrP0f4m5yus/evXk7SUlZa2mTYUzK0UWUv1hM Rek9BJGabHEsE+YnjbAWT2gpIAKrxZo0zleeuf+5ICPiwV8O1e5fLbJ//qncMSCz+GNh GUGRgAWJhEysmfjEJcuqg87Qc6JOE6mVtyE/f6NP8uJNAG8cYJtK1Il5iPBuDNcg+YhC eoNw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11-v6si25678971plt.349.2018.10.31.10.58.42; Wed, 31 Oct 2018 10:58:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730038AbeKAC5R (ORCPT + 99 others); Wed, 31 Oct 2018 22:57:17 -0400 Received: from verein.lst.de ([213.95.11.211]:39195 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729997AbeKAC5P (ORCPT ); Wed, 31 Oct 2018 22:57:15 -0400 Received: by newverein.lst.de (Postfix, from userid 107) id 697586F9C1; Wed, 31 Oct 2018 18:58:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on newverein.lst.de X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50 autolearn=disabled version=3.3.1 Received: from blackhole (p5B33FFCA.dip0.t-ipconnect.de [91.51.255.202]) by newverein.lst.de (Postfix) with ESMTPSA id 4B3366F9B7; Wed, 31 Oct 2018 18:58:07 +0100 (CET) Date: Wed, 31 Oct 2018 18:58:00 +0100 From: Torsten Duwe To: Mark Rutland Cc: Jiri Kosina , Will Deacon , Catalin Marinas , Julien Thierry , Steven Rostedt , Josh Poimboeuf , Ingo Molnar , Ard Biesheuvel , Arnd Bergmann , AKASHI Takahiro , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, kristina.martsenko@arm.com Subject: Re: [PATCH v4 1/3] arm64: implement ftrace with regs Message-ID: <20181031185800.6aa17c91@blackhole> In-Reply-To: <20181031141819.lv2tuj4ne5nf3lh3@lakrids.cambridge.arm.com> References: <20181026142008.D922868C94@newverein.lst.de> <20181026142148.6353A68C94@newverein.lst.de> <20181031121002.hmag2mwvlpzwobvf@lakrids.cambridge.arm.com> <20181031141819.lv2tuj4ne5nf3lh3@lakrids.cambridge.arm.com> Organization: LST e.V. X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 Oct 2018 14:18:19 +0000 Mark Rutland wrote: > On Wed, Oct 31, 2018 at 02:19:07PM +0100, Jiri Kosina wrote: > > Other architectures do rely on that. That's exactly for example why > > on x86 we use '-pg -mfentry', to make sure we hook the function > > *before* prologue. > > Ah, I'd missed -mfentry for x86. I now see that's also the case with > __gnu_mcount_nc on arch/arm, so that covers my confusion. Yes, fentry used to be the prerequisite, but it's everything but portable. PPC64 already had the profile-kernel switch, which was becoming just usable as we got at live patching. I'm hoping that the patchable-function-entry will become the future de-facto standard. Torsten