From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 235D1C433EF for ; Wed, 25 May 2022 13:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s9uCDEsqgyJNHwlnoSGbfzF2ZUh0AQT0cv/QJ5Nnyt0=; b=bcWwBWk09wGZeb sXeqt3VMtz9IlmlvilFQfzLjrubBhHUxtcRneei5CzCsYZuHJIi8BOn/3+1xZmP/xSRlaoHBsTPIM JALzUOuVjRAS2ttoIJF8GOFO5EIpBuxpooRu4ktzBmsPkEDgkbEcxzgwdtkAmfRCu80O4QKMGr2wg 8ZiCd6kmMs6bQGTiYlba9YcsUW+cIWvtAU2oXJG62FeiFT7y1gIacb6QbCMzizb6+I1hAqx3EmnmG K9A9Dpb3CMjXvPRmOjRQnp985UcyV7uqpwpDA0ReplsFmIStTFOvYfo9Mx2OLUdgJuezfejA4lJAk X8FBiSvQ4uGCRn5lwGBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntrIB-00BHkU-Rx; Wed, 25 May 2022 13:43:15 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntrI8-00BHij-6L for linux-arm-kernel@lists.infradead.org; Wed, 25 May 2022 13:43:14 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1786461882; Wed, 25 May 2022 13:43:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A261C385B8; Wed, 25 May 2022 13:43:09 +0000 (UTC) Date: Wed, 25 May 2022 09:43:07 -0400 From: Steven Rostedt To: Mark Rutland Cc: Masami Hiramatsu , Wang ShaoBo , cj.chengjian@huawei.com, huawei.libin@huawei.com, xiexiuqi@huawei.com, liwei391@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will@kernel.org, zengshun.wu@outlook.com, Jiri Olsa Subject: Re: [RFC PATCH -next v2 3/4] arm64/ftrace: support dynamically allocated trampolines Message-ID: <20220525094307.1f1fb561@gandalf.local.home> In-Reply-To: References: <20220426174749.b5372c5769af7bf901649a05@kernel.org> <20220505121538.04773ac98e2a8ba17f675d39@kernel.org> <20220509142203.6c4f2913@gandalf.local.home> <20220510181012.d5cba23a2547f14d14f016b9@kernel.org> <20220510104446.6d23b596@gandalf.local.home> <20220511233450.40136cdf6a53eb32cd825be8@kernel.org> <20220511111207.25d1a693@gandalf.local.home> <20220512210231.f9178a98f20a37981b1e89e3@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220525_064312_315502_C9792668 X-CRM114-Status: GOOD ( 15.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 25 May 2022 13:17:30 +0100 Mark Rutland wrote: > For arm64 I'd like to make this static, and have ftrace *always* capture a > minimal set of ftrace_regs, which would be: > > X0 to X8 inclusive > SP > PC > LR > FP > > Since X0 to X8 + SP is all that we need for arguments and return values (per > the calling convention we use), and PC+LR+FP gives us everything we need for > unwinding and live patching. > > I *might* want to add x18 to that when SCS is enabled, but I'm not immediately > sure. Does arm64 have HAVE_DYNAMIC_FTRACE_WITH_ARGS enabled? If so, then having the normal ftrace call back save the above so that all functions have it available would be useful. -- Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel