Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3336183imu; Fri, 18 Jan 2019 08:40:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6h1VWYdnrnLHpkrW8owyNJirtPU7dUVf78mPJO2YQPUBcbr2OmkuYEfEWFcmGHUahJHCYl X-Received: by 2002:a63:5922:: with SMTP id n34mr18303264pgb.435.1547829628499; Fri, 18 Jan 2019 08:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547829628; cv=none; d=google.com; s=arc-20160816; b=K/vgbdW/NfxGR4W5EmED0hxNWY9VfPtvXesIZp137bozM78hDWGaa90akdVbRGmso3 YGb3gOBynFNgyum4M8HY8udLhF89DF5QhjLPfQPQhJgXDv2b+KO2BU0ss74CFxAWpInx Ninl965To3QhOYn7dyFwUsxHA1mS4TJs3f03zszcX4MsPklm6cLT2kPpaZ0CLLgtzn+9 oTweIw2A5JX7VZLpvzCmaN4/vZzGwF1zedP7YVD+S2xdpU1mJJejjWHMmO+gTg+Y5gW5 Tn7dLT8RaXyyluHGOkrCKHUevZAgNPq7WiqghsqkBqRjphoVBMQE+b1aL+gfJ2UVaSJN GneA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:date:message-id:subject:cc:to; bh=f2Fln0ru8d2BqPuB8LyvLF4+j92n4vpr49Nmu1RsLzo=; b=e7MGZwmXlFOaWJOrjKSF0hnFPtb17PMhYaWSUTVOUoknooI45eTV+iS0bMSoe4QtWo qBmZjUwbEbVm5xXbAjPZs2woZr27VzMxk9S5pmB19JZKrl8No+ODGbVFcngAxqlp2leD o2F53et4Kni1F33UVmQBMbT8TrO3/tl2tDt4riVV7EPbmfKDV5mn9z6HurSKF4rNk0eH 3wg/ScgD4BCi9VbpPG7KEdblt012ogzZO44UpIosRp1bm87LvUzSAaBIiTyBMLSl6tLk /xS0ubUZ2F5BEcmNSC8Phh48rM8xQmhYI9foLIus1U60DB84e9eVa+6kkxDnWG3wfGHv 7IfA== 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 x13si5568325pgx.266.2019.01.18.08.40.09; Fri, 18 Jan 2019 08:40:28 -0800 (PST) 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 S1728033AbfARQhi (ORCPT + 99 others); Fri, 18 Jan 2019 11:37:38 -0500 Received: from verein.lst.de ([213.95.11.211]:44649 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbfARQhi (ORCPT ); Fri, 18 Jan 2019 11:37:38 -0500 Received: by newverein.lst.de (Postfix, from userid 2005) id 6A99268CEB; Fri, 18 Jan 2019 17:37:36 +0100 (CET) To: Mark Rutland , Will Deacon , Catalin Marinas , Julien Thierry , Steven Rostedt , Josh Poimboeuf , Ingo Molnar , Ard Biesheuvel , Arnd Bergmann , AKASHI Takahiro , Amit Daniel Kachhap Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: [PATCH v7 0/3] arm64: ftrace with regs Message-Id: <20190118163736.6A99268CEB@newverein.lst.de> Date: Fri, 18 Jan 2019 17:37:36 +0100 (CET) From: duwe@lst.de (Torsten Duwe) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So here's v7 of ftrace with regs only. I've split out the CC_FLAGS_FTRACE cleanup and the gcc activation into separate patches, respectively. The set should include all of Mark's requested changes. Most notably, it now patches in the first insn "mov x9, lr" right at startup, to avoid the races we discussed; I'm conveniently abusing the initial _make_nop for that. The empty mcount: routine caused a lot of Q's, so it's gone now. I updated the accompanying livepatch patches here as well, in case somebody is interested ;) They have only been updated to match this current ftrace-regs set, not more. The whole series applies cleanly on 5.0-rc2 in detail: changes since v6: * change the stack layout once more; I hope I have it the "standard" way now. And yes, it looks simpler and cleaner; thanks, Mark, for nagging. * split out the independent Kconfig and Makefile changes * fixed style issues * s/fp/x29/g * MCOUNT_ADDR is now merely a 64-bit magic, as this is totally sufficient. * QUICK_LR_SAVE renamed back to MOV_X9_X30. * place MOV_X9_X30 insns on bootup, and only flip b <-> nop at runtime * graph tracer "ifdeffery" reshuffle Torsten