Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1836334rwd; Fri, 9 Jun 2023 02:59:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6W21VY6ggWhCMuk97ZCorgQoXVKtP9zXOHtVdU0qPLXLoxCs0GeKGhHtuhJAUGiVta1mUq X-Received: by 2002:a92:d792:0:b0:32f:80a1:2e44 with SMTP id d18-20020a92d792000000b0032f80a12e44mr1202613iln.9.1686304747637; Fri, 09 Jun 2023 02:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686304747; cv=none; d=google.com; s=arc-20160816; b=bBP3uC4BeLYx83BLwdkQPMjRL7xpGeFM2Se++Q33JoGuItcCiBbfKlIeJz3ZmuMQ+0 BwD2V8E+Tb00LQrLFvTixh6Z1YMHq3UGRgMy8G3prJIpza6yDWMHAVA1VVxLqmONrhge kAHRj4M7UEfgmjYDxuK5qiqd8gAeP0Bv3QfEuznUQuYFJ7CNSRj3h2txqa8WHqiSPRT/ wCkwJPpNz2G1wGkGqteeULaW72uKdm81cgSa8cmiUNiS0l+nHTcmR5VJ+yA5j9yYai8Y rARZmoqp8Hko9U4dvIJI4wNaeXvGS6F4kcKg4tdcyMUkmWVSo7JYN+FZuY6jqFib4fX3 X5Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=U9S0d8bZsFqImpv+tib2M8PantmqSloYeV2bhWe1Tlk=; b=p6BdcQX/0D7NSpkSqM3bAZWg+4M1f/WyQ9jjreQP0vASVfaMUOUKcg7E3q5/JvhzgB UR4vEuZlNm5wlO1/IKJ3UI9il1GO8OpJ7l3RckRngFWqM7xOX0Ox6NORlJY1YfR+v952 pc97+59EAPn5ZQJCBfcyowiJTvx5Sosw3MnqlTx0jT4aQhd8b0jKOPRyOoJ/w8+XdUe/ 2QfNAKvFWGRWJQvnbvEcYkIUYjW3ebiukNYLheXTVaKj5prCMmnxbhFW4dN7qe9ND9Rf ZuWoGLZQhUGZDyt7VHc8Vnql1iIPZXi1ZiNDzLRk1ltFnMw3CR0uJq3Cg6JbvyW2kRu6 Pi+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a63eb45000000b0053b8c98d14bsi2363743pgk.859.2023.06.09.02.58.55; Fri, 09 Jun 2023 02:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240670AbjFIJhP (ORCPT + 99 others); Fri, 9 Jun 2023 05:37:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241617AbjFIJgz (ORCPT ); Fri, 9 Jun 2023 05:36:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4577A5270; Fri, 9 Jun 2023 02:32:01 -0700 (PDT) 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 83E72655F0; Fri, 9 Jun 2023 09:31:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51F6BC433EF; Fri, 9 Jun 2023 09:31:22 +0000 (UTC) Date: Fri, 9 Jun 2023 10:31:19 +0100 From: Catalin Marinas To: Donglin Peng Cc: mhiramat@kernel.org, rostedt@goodmis.org, linux@armlinux.org.uk, mark.rutland@arm.com, will@kernel.org, rmk+kernel@armlinux.org.uk, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, tglx@linutronix.de, dave.hansen@linux.intel.com, x86@kernel.org, bp@alien8.de, hpa@zytor.com, chenhuacai@kernel.org, zhangqing@loongson.cn, kernel@xen0n.name, mingo@redhat.com, peterz@infradead.org, xiehuan09@gmail.com, dinghui@sangfor.com.cn, huangcun@sangfor.com.cn, dolinux.peng@gmail.com, linux-trace-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 4/8] arm64: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 08, 2023 at 05:42:18AM -0700, Donglin Peng wrote: > The previous patch ("function_graph: Support recording and printing > the return value of function") has laid the groundwork for the for > the funcgraph-retval, and this modification makes it available on > the ARM64 platform. > > We introduce a new structure called fgraph_ret_regs for the ARM64 > platform to hold return registers and the frame pointer. We then > fill its content in the return_to_handler and pass its address to > the function ftrace_return_to_handler to record the return value. > > Reviewed-by: Mark Rutland > Tested-by: Mark Rutland > Signed-off-by: Donglin Peng We fully trust Mark's reviews ;) but just in case you need an official maintainer ack: Acked-by: Catalin Marinas