From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752521Ab0ESGVu (ORCPT ); Wed, 19 May 2010 02:21:50 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:55161 "EHLO e28smtp05.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289Ab0ESGVq (ORCPT ); Wed, 19 May 2010 02:21:46 -0400 Date: Wed, 19 May 2010 11:51:42 +0530 From: Srikar Dronamraju To: Masami Hiramatsu Cc: Peter Zijlstra , Ingo Molnar , Mel Gorman , Steven Rostedt , Randy Dunlap , Linus Torvalds , Roland McGrath , "H. Peter Anvin" , Christoph Hellwig , Ananth N Mavinakayanahalli , Oleg Nesterov , Mark Wielaard , Mathieu Desnoyers , LKML , Jim Keniston , Frederic Weisbecker , "Rafael J. Wysocki" , "Frank Ch. Eigler" , Andrew Morton , "Paul E. McKenney" Subject: Re: [PATCH v4 10/13] trace: Common code for kprobes/uprobes traceevents Message-ID: <20100519062142.GD19957@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20100518165826.20070.11594.sendpatchset@localhost6.localdomain6> <20100518170024.20070.25438.sendpatchset@localhost6.localdomain6> <4BF2CD2F.8000104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4BF2CD2F.8000104@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Isn't it a common header for kprobes and uprobes? :) > > Maybe "Probe-based dynamic events common header" ? > Agree. > > +#define MAX_TRACE_ARGS 128 > > +#define MAX_ARGSTR_LEN 63 > > +#define MAX_EVENT_NAME_LEN 64 > > +#define UPROBE_EVENT_SYSTEM "uprobes" > > You should *just move* the common code in this patch. > Additional uprobes code can be introduced in next patch. > Okay. > > + > > +/* Flags for trace_probe */ > > +#define TP_FLAG_TRACE 1 > > +#define TP_FLAG_PROFILE 2 > > +#define UPROBE_ENABLED 4 > > If this is a trace_probe flag, it is better to start with TP_FLAG_. Okay. Does TP_FLAG_UPROBE sound fine? Thanks Masami. -- Thanks and Regards Srikar