From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753717Ab2DPMgG (ORCPT ); Mon, 16 Apr 2012 08:36:06 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:57350 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343Ab2DPMgE (ORCPT ); Mon, 16 Apr 2012 08:36:04 -0400 Date: Mon, 16 Apr 2012 17:57:37 +0530 From: Srikar Dronamraju To: Arnaldo Carvalho de Melo Cc: Masami Hiramatsu , Peter Zijlstra , Ingo Molnar , Andrew Morton , Linus Torvalds , Ananth N Mavinakayanahalli , Jim Keniston , LKML , Linux-mm , Oleg Nesterov , Andi Kleen , Christoph Hellwig , Steven Rostedt , Thomas Gleixner , Anton Arapov Subject: Re: [PATCH] perf/probe: Provide perf interface for uprobes Message-ID: <20120416122737.GB25464@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20120411135742.29198.45061.sendpatchset@srdronam.in.ibm.com> <20120411144918.GD16257@infradead.org> <20120411170343.GB29831@linux.vnet.ibm.com> <20120411181727.GK16257@infradead.org> <4F864BB3.3090405@hitachi.com> <20120412140751.GM16257@infradead.org> <20120412151037.GC21587@linux.vnet.ibm.com> <4F87C76B.10001@hitachi.com> <20120414011330.GC31880@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20120414011330.GC31880@infradead.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12041612-5518-0000-0000-000003B093AD Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > Another case > > > perf probe do_fork clone_flags now looks for variable clone_flags in > > > kernel function do_fork. > > > > But if we allow to trace perf probe zsh zfree; then > > > 'perf probe do_fork clone_flags' should it check for do_fork executable > > > or not? If it does check and finds one, and searches for clone_flags > > > function and doesnt find, then should it continue with searching the > > > kernel? > > > Agree. I'd like to suggest you to start with only full path support, > > and see, how we can handle abbreviations :) > > Agreed, I was just making usability suggestions. > > Those can be implemented later, if we agree they ease the tool use. > I have just made a prototype for guessing the target when -m and -x options arent passed. That still uses the absolute path for now. I was trying to see if we can identify the module by the short name by using kernel_get_module_path(). However kernel_get_module_path() needs init_vmlinux() to be called before. Since init_vmlinux() cant be called more than once and init_vmlinux gets called later, I thought calling it here wasnt good option. Wanted to see if we could open /proc/modules and then match the module name. But again, I wasnt sure how to handle offline modules. -- Thanks and Regards Srikar