Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3903677ioo; Wed, 25 May 2022 10:18:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzauoq3UGduSxNneZ7mKbA5u9CxoRJXCLdF0fAnvoj//MwPKTw1qFwmNatih8HFlPcoNYoS X-Received: by 2002:a17:903:240f:b0:158:b871:33ac with SMTP id e15-20020a170903240f00b00158b87133acmr33455650plo.135.1653499114111; Wed, 25 May 2022 10:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653499114; cv=none; d=google.com; s=arc-20160816; b=wP30PHrhy1jh9H71WJQsjpMtS9bR9D52kqxbLPI9vMNN1tWf3quhPDejW8VnxP20Bd aTXEEcrLNlcS9UgZ+eAy95+jJzISvulGeFSA/CfhZsWqX2OlbJmxrtdjazLDQ+aKEt1F b7OuQaA4zrP/12Fc1J6YJat6QgioSlukmq6nUHE4b/lkRG+eziyYaEmy7YP8GVdMOJkx vuEdSVO6m3e8qG3ufJ3ewnumYt1CEhzYZEtLnw0zJ+kTlpYbnafu9VA7Jj5sL6Jq+u6M VCfMwmc64WGNfD9JS2+szT8blE2nIGTZp8SM4cSe9wZ00lEx+v+b4j9gjotGU3ptG+J6 yz0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=SLyrXdUDoLj7Gtm5V5uOvJb32O7tFkFvBgNDFCYxFkk=; b=el64Ir/PuYc6ZuFcXz8GUifiMrOi/LfTPatbORGScK4iwJMwq7rKbtL6JHJSfG7XxO K/r4ZECYVShdxPUUnQaw85xKYWhJV1/BBHLat0u3f8u0RPG1E/0Ho1A0YfgbCEnynItZ F30NYeEmTfB5ghor92f9Nmk1paKc0nqNhdjZv3WD7ZFsKuVTcIiNHTRvEs6d42tuvSs+ pX9GUj6iBw7n5eisWE3U0RKAQyoFvYRTuGm/8CxvWn0sUWvG3cu6vt+eBbVWNg8EWJO+ xASjlBev1dmJWcQYiiasTCo3OfD3ANTBOLw7Ab9o+gVW0VgS83NAUZe4k1iSSFx6X9rH tRgg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902bf4700b00163724c3d97si98936pls.564.2022.05.25.10.18.20; Wed, 25 May 2022 10:18:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238243AbiEYNnR (ORCPT + 99 others); Wed, 25 May 2022 09:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236921AbiEYNnO (ORCPT ); Wed, 25 May 2022 09:43:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30A316D38F for ; Wed, 25 May 2022 06:43:13 -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 ams.source.kernel.org (Postfix) with ESMTPS id D609FB81DA7 for ; 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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