Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755668AbZJ3AGP (ORCPT ); Thu, 29 Oct 2009 20:06:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754708AbZJ3AGO (ORCPT ); Thu, 29 Oct 2009 20:06:14 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:58257 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754068AbZJ3AGO (ORCPT ); Thu, 29 Oct 2009 20:06:14 -0400 Subject: Re: [PATCH 0/3][RFC] tracing/kprobes: prevent jprobes from crashing function graph tracer From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Frederic Weisbecker , Peter Zijlstra , Thomas Gleixner , Arnaldo Carvalho de Melo , "H. Peter Anvin" , Li Zefan , Lai Jiangshan , "David S. Miller" , Stephen Hemminger In-Reply-To: <4AEA23AB.9020605@redhat.com> References: <20091029205151.852744305@goodmis.org> <4AEA10EC.8000103@redhat.com> <1256854653.26028.3255.camel@gandalf.stny.rr.com> <4AEA23AB.9020605@redhat.com> Content-Type: text/plain Organization: Kihon Technologies Inc. Date: Thu, 29 Oct 2009 20:06:14 -0400 Message-Id: <1256861174.26028.3261.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 29 On Thu, 2009-10-29 at 19:22 -0400, Masami Hiramatsu wrote: > Steven Rostedt wrote: > >> I think we can skip those user handlers, because those are irregular > >> functions and user can control (enable/disable) it. > > > > True, but it may be nice to still trace them. > > Hm, in that case, I think we can change jprobe_return() to call > f-g-tracer's return handler if needed as below; > --- > static inline jprobe_return(void) > { > implicit_function_return(); /* This executes f-g-tracer prologue */ > __jprobe_return(); /* This should be notraced */ > } Hmm, That looks like it can be quite a hack. We don't know at that moment if the handler has been traced or not. We can't always do the function graph logic. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/