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 9899E17FE2 for ; Tue, 9 May 2023 14:51:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D41CC433D2; Tue, 9 May 2023 14:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683643886; bh=PSuly6IqXkBhVavF6HVipVlpYPya9EjQa9lgfCgsi+0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MhaCSWZs9T3/Sy230PJYTRtWP2wNeoDMloajhpkNztUTJq3krTV8okrWy1zqeN2XG nvxq7wxOof2jiR5ym0Zdc4McOInxY9QsffhOWpxAVQP35zu+zbuL69ZRlUgEM80RIu lp4nJcC3TggBkEUYr+BwFTivpb9j+zXqb6O0HscIeLeRtL4Zok/ZH2Ure/Y5lUUbZ2 HwOTwXenNMy6DkSr/HE6hHtGbRxKKvBKQOBs1M4GrfUBxfe1kEx1VJoO2MPYsE8V/K 0DlbkYTw8pUB/mSMb9B1iddBADg5H/+8kqdjDlASAgwOMtqEBIkD/UUh0nWS+7b6TS tC5ExHfL4tpWg== Date: Tue, 9 May 2023 23:51:21 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Florent Revest , Mark Rutland , Will Deacon , Mathieu Desnoyers , Martin KaFai Lau , bpf@vger.kernel.org Subject: Re: [PATCH v9.1 01/11] fprobe: Pass return address to the handlers Message-Id: <20230509235121.28974ab2b5341eade5491a35@kernel.org> In-Reply-To: <20230505112134.34669200@gandalf.local.home> References: <168299383880.3242086.7182498102007986127.stgit@mhiramat.roam.corp.google.com> <168299384798.3242086.3958932989430895961.stgit@mhiramat.roam.corp.google.com> <20230505112134.34669200@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 5 May 2023 11:21:34 -0400 Steven Rostedt wrote: > On Tue, 2 May 2023 11:17:28 +0900 > "Masami Hiramatsu (Google)" wrote: > > > From: Masami Hiramatsu (Google) > > > > Pass return address as 'ret_ip' to the fprobe entry and return handlers. > > The change log tells us "what" but not "why". Indeed, and thanks, I almost forgot the reason why I introduced it :( This is actually for fprobe_exit_handler() to pass the return address to user handler so that the fprobe-events can show the return address correctly. When I implemented the fprobe-events, I found this was required but splitted from the main fprobe event patch but forgot to update the description. Let me update it. Thank you! > > -- Steve > > > > > Signed-off-by: Masami Hiramatsu (Google) > > --- > > -- Masami Hiramatsu (Google)