From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6933 invoked by alias); 21 Apr 2011 17:50:05 -0000 Received: (qmail 6918 invoked by uid 22791); 21 Apr 2011 17:50:04 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from casper.infradead.org (HELO casper.infradead.org) (85.118.1.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Apr 2011 17:49:50 +0000 Received: from j77219.upc-j.chello.nl ([24.132.77.219] helo=dyad.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.72 #1 (Red Hat Linux)) id 1QCy0k-0000Iz-Tw for systemtap@sources.redhat.com; Thu, 21 Apr 2011 17:49:50 +0000 Received: by dyad.programming.kicks-ass.net (Postfix, from userid 65534) id B5C2E410CF49; Thu, 21 Apr 2011 19:54:16 +0200 (CEST) Received: from [IPv6:::1] (dyad [192.168.0.60]) by dyad.programming.kicks-ass.net (Postfix) with ESMTP id 382E5404CC6C; Thu, 21 Apr 2011 19:54:14 +0200 (CEST) Subject: Re: [PATCH v3 2.6.39-rc1-tip 7/26] 7: x86: analyze instruction and determine fixups. From: Peter Zijlstra To: Srikar Dronamraju Cc: Steven Rostedt , Ingo Molnar , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Andi Kleen , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Oleg Nesterov , LKML , SystemTap , Jim Keniston , Roland McGrath , Ananth N Mavinakayanahalli , Andrew Morton In-Reply-To: <20110421173120.GJ10698@linux.vnet.ibm.com> References: <20110401143223.15455.19844.sendpatchset@localhost6.localdomain6> <20110401143348.15455.68644.sendpatchset@localhost6.localdomain6> <1303219751.7181.101.camel@gandalf.stny.rr.com> <20110421173120.GJ10698@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 21 Apr 2011 17:50:00 -0000 Message-ID: <1303408345.2035.161.camel@laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2011-q2/txt/msg00143.txt.bz2 On Thu, 2011-04-21 at 23:01 +0530, Srikar Dronamraju wrote: > > Sometimes, the user might try registering a probe at a valid file + > valid offset + valid consumer; but an instruction that we cant probe. > Then trying to figure why its failing would be very hard. Uhm, how about failing to create the probe to begin with? You can even do that in userspace as you can inspect the DSO you're going to probe (and pretty much have to, since you'll have to pass the kernel a fd to hand it the proper inode).