Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp620962lqc; Fri, 8 Mar 2024 07:15:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGZ5Q8pJ4j4HXlvH0jS+q5mKGesZov9Jt7vsOvPYmS8zF7RZvNgmnOpdlcOdpnj6lcMJs+q+maYk3PP6j/FETvAMG7y3Lzt1BROe8i6g== X-Google-Smtp-Source: AGHT+IGMp5G0raQpO1rZV+WzpF41SZa0OFbbITchzgXj05MvK+OkIkMUhvEOEbi2nnYqCUGJGFFu X-Received: by 2002:a05:6a20:1583:b0:1a1:87df:beef with SMTP id h3-20020a056a20158300b001a187dfbeefmr1178066pzj.19.1709910914678; Fri, 08 Mar 2024 07:15:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709910914; cv=pass; d=google.com; s=arc-20160816; b=aVk08Jwg4uBB+qRwGocjjbR1PygbaHTs7wzrYUeimVs01t8R6CXNCq4AtSzTnSelHz Y3FBu9uOGzaMARuyAzkCWDQpLX3Sq+HkGcA+Y9HHLZCrmgWK7oq2XGsbzivbDS2jpoze fXN/ccOvdyUnavMNbxD+vRKZoShbqNL5uTxvK876N3nZVpISi6sWcOLQZNFzozmxwYah TY3vpX7pEn+m8uIyZadzeZZZsw0YDTWJlJJFhC3QLrX3e6YnqryAGl3KfN0kYXwJKF5c 9UED24byZEJPPIXatlb4erSOkWkyhMCMM1reNJcdl3VwI/JFbjzGkiRkYoRXdtVz1D3N aBlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=kiBG6NDg0mdz/VQTJh0JeyINO/3FNBUFPbEEfObBu1U=; fh=dvk6+RSxOWW5WnxXZkYOx4PqY5B94edphMaWxV6ebyA=; b=GN1/31oG/eZqXH2I7hCbxecQ3kCmwBtC1j7nJ9RIBAGepJoiGOeRdXVap/8Ks5F8Qe ksHUUeoug4i0ONahfRY37IRfm+QZYLMv2SPgUoPfChTAOFkvUg0uBLFdWLa1MNNvYSib Wx17ike7bvdPxlIAGyoxwJgpz7OFQnjT7C9fz4zFWwtMDMYgNwrxfKg1emozVsz9ZMBj hNIu9IjNaT1HNjZEdE/N0rqS8adf0tHosEgtJqq6/ZcZLNPtlNkJj3s6ZqrwlNK5dU54 rs0qm7h6x+wSSaSX2/8gjVUl18UQ1Szer1qiFOP3mscwQYiJF3GMs4OTdn2yvRgTdRAv 8sPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D7xotcQe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97217-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u18-20020a634552000000b005cd8123afb5si16232751pgk.547.2024.03.08.07.15.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 07:15:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97217-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D7xotcQe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97217-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BDCB5281D2C for ; Fri, 8 Mar 2024 15:15:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9D011DFCB; Fri, 8 Mar 2024 15:15:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D7xotcQe" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 007254C90; Fri, 8 Mar 2024 15:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910908; cv=none; b=lZ5TmueOgsruyic4k25dwrljd+yBzLJEZGDfL/BGjc60SDvp7WBUAKpUlJEktUam1iHhPXfwXNVmYR/XuSiXXiE4qpBjyF/XMrh7L7HSw5YBJ+8zAkK0VSpl7WhoBEpZYIkzbf+D6Pw3cZMmhh6IeDd1bfoYvc/05NlIvoNpy2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910908; c=relaxed/simple; bh=kiBG6NDg0mdz/VQTJh0JeyINO/3FNBUFPbEEfObBu1U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jorP+mDE7ag5AlVwwpMTHOUl43kpS6siCfg/8NzRgwdKtA8b+UTer4Ug+QrxTZaC3JJwT72JtxSRiUmfzm8KNOdmsJw6LdQqxLov9qh6/PkWxUs3xcyeDzUYjvYbL+WLAmGHrHW0e21hILGTJLmnNjFoRnkLIQVRdCxr1jaXW2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D7xotcQe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14120C433F1; Fri, 8 Mar 2024 15:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709910907; bh=kiBG6NDg0mdz/VQTJh0JeyINO/3FNBUFPbEEfObBu1U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=D7xotcQe3A04Jva6aO95z5uwgSua5Kh8NIKGlm9gMf8NZn7Lh2SXPv8O+9Q/ctBbX SE5/1uOnYkir0I8D3mMkxOy4240pGsl4Vlpg8NiFLkRgtw7thX5S2gyWytXw4zfllB 96Hd6aUc6P+yJGcvxlNfd3p1oKPIrfq/N+TVVGiDU3ute21NHvlP6DOvfQu7NrvxfH +AYKncrCxuNeZnIdyIIQXlobvX4Mg+h5ugyQ/xg5ighezsIqijXzLB3SwuEtHfIuqh in9lVWw+zzvQCPXPtcOaJVn2T+sOBMbEF4YxGPZTTZjzcmGpNvFME/2OF2jXNvKn3h 05Nh1GxfmGPOA== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Puranjay Mohan Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Sami Tolvanen , Guo Ren , Ley Foon Tan , Deepak Gupta , Sia Jee Heng , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Song Shuai , =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Al Viro , Jisheng Zhang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS In-Reply-To: References: <20240306165904.108141-1-puranjay12@gmail.com> <87ttlhdeqb.fsf@all.your.base.are.belong.to.us> <87jzmdowp4.fsf@all.your.base.are.belong.to.us> Date: Fri, 08 Mar 2024 16:15:04 +0100 Message-ID: <87edckkb5z.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Puranjay Mohan writes: >> Now, I think a better approach for RISC-V would be implementing what x86 >> has (arch_ftrace_update_trampoline()), rather than CALL_OPS for RISC-V. >> >> Thoughts? > > I am going to spin some patches for implementing > arch_ftrace_update_trampoline() for > RISC-V, then we can compare the two approaches and see which is > better. But I agree > that arch_ftrace_update_trampoline() is a better approach given that > we can jump anywhere > with auipc/jalr. Yup, and the text size wont blow up. Cheers, Bj=C3=B6rn