Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756574Ab0FNRsa (ORCPT ); Mon, 14 Jun 2010 13:48:30 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:35502 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755806Ab0FNRs3 (ORCPT ); Mon, 14 Jun 2010 13:48:29 -0400 Date: Mon, 14 Jun 2010 13:47:57 -0400 From: Christoph Hellwig To: Srikar Dronamraju Cc: Peter Zijlstra , Ingo Molnar , Masami Hiramatsu , Mel Gorman , Randy Dunlap , Arnaldo Carvalho de Melo , Steven Rostedt , Roland McGrath , "H. Peter Anvin" , Christoph Hellwig , Ananth N Mavinakayanahalli , Oleg Nesterov , Mark Wielaard , Mathieu Desnoyers , LKML , Linus Torvalds , Frederic Weisbecker , Jim Keniston , "Rafael J. Wysocki" , "Frank Ch. Eigler" , Andrew Morton , "Paul E. McKenney" Subject: Re: [PATCH v5 8/14] samples: Uprobes samples Message-ID: <20100614174757.GD23754@infradead.org> References: <20100614082748.29068.21995.sendpatchset@localhost6.localdomain6> <20100614082923.29068.80447.sendpatchset@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100614082923.29068.80447.sendpatchset@localhost6.localdomain6> User-Agent: Mutt/1.5.20 (2009-08-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 972 Lines: 24 On Mon, Jun 14, 2010 at 01:59:23PM +0530, Srikar Dronamraju wrote: > samples.patch > > From: Srikar Dronamraju > > Uprobes Samples > > This provides an example uprobes module in the samples directory. > > To run this module run (as root) > insmod uprobe_example.ko vaddr= pid= > Where is the address where we want to place the probe. > is the pid of the process we are interested to probe. What's the point of this sample? It's a sub-set of what the perf uprobes inteface supports, and writing kernel modules to probe userspace code is braindead to start with. So if you remove this example of what people should not do we can also get rid of all the exports. -- 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/