From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D7xotcQe" 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