From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758015AbYFBKmT (ORCPT ); Mon, 2 Jun 2008 06:42:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752269AbYFBKmD (ORCPT ); Mon, 2 Jun 2008 06:42:03 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:56316 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbYFBKmB (ORCPT ); Mon, 2 Jun 2008 06:42:01 -0400 Date: Mon, 2 Jun 2008 12:41:50 +0200 From: Ingo Molnar To: Steven Rostedt Cc: Abhishek Sagar , Thomas Gleixner , LKML Subject: Re: [PATCH] ftrace: distinguish kretprobe'd functions in trace logs Message-ID: <20080602104150.GB898@elte.hu> References: <483C53EE.2060602@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Steven Rostedt wrote: > On Wed, 28 May 2008, Abhishek Sagar wrote: > > > > But if irq_enter() has a kretprobe installed on it, the return value stored on the stack at each invocation is modified to divert the return to a kprobe trampoline function called kretprobe_trampoline(). So with this the trace would (currently) look like: > > > > -0 [00] 4154504455.781616: irq_enter <- kretprobe_trampoline > > > > Now this is quite misleading to the end user, as it suggests something that didn't actually happen. So just to avoid such misinterpretations, the inlined patch aims to output such a log as: > > > > -0 [00] 4154504455.781616: irq_enter <- [unknown/kretprobe'd] > > > > > > Signed-off-by: Abhishek Sagar > > Thanks Abhishek, > > Acked-by: Steven Rostedt applied to tip/tracing/ftrace, thanks. Ingo