From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753988Ab2AILcf (ORCPT ); Mon, 9 Jan 2012 06:32:35 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:53384 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675Ab2AILce (ORCPT ); Mon, 9 Jan 2012 06:32:34 -0500 Date: Mon, 9 Jan 2012 16:54:27 +0530 From: Srikar Dronamraju To: Masami Hiramatsu Cc: Peter Zijlstra , Linus Torvalds , Oleg Nesterov , Ingo Molnar , Andrew Morton , LKML , Linux-mm , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Rothwell , yrl.pp-manager.tt@hitachi.com Subject: Re: [PATCH v8 3.2.0-rc5 9/9] perf: perf interface for uprobes Message-ID: <20120109112427.GB10189@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20111216122756.2085.95791.sendpatchset@srdronam.in.ibm.com> <20111216122951.2085.95511.sendpatchset@srdronam.in.ibm.com> <4F06D22D.9060906@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4F06D22D.9060906@hitachi.com> User-Agent: Mutt/1.5.20 (2009-06-14) x-cbid: 12010911-5518-0000-0000-0000016C3372 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > + > > +static int convert_to_perf_probe_point(struct probe_trace_point *tp, > > + struct perf_probe_point *pp) > > +{ > > + pp->function = strdup(tp->symbol); > > + if (pp->function == NULL) > > + return -ENOMEM; > > + pp->offset = tp->offset; > > + pp->retprobe = tp->retprobe; > > + > > + return 0; > > +} > > This function could be used in kprobe_convert_to_perf_probe() too. > In that case, it will be separated as a cleanup from this. Do you really want this in a separate patch, since it doesnt make too much sense without the uprobes code. -- Thanks and Regards Srikar