From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320Ab1DURtt (ORCPT ); Thu, 21 Apr 2011 13:49:49 -0400 Received: from casper.infradead.org ([85.118.1.10]:56685 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703Ab1DURts (ORCPT ); Thu, 21 Apr 2011 13:49:48 -0400 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 19:52:25 +0200 Message-ID: <1303408345.2035.161.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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).