From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18636 invoked by alias); 16 Jan 2006 10:56:21 -0000 Received: (qmail 18405 invoked by alias); 16 Jan 2006 10:56:19 -0000 Date: Mon, 16 Jan 2006 10:56:00 -0000 Message-ID: <20060116105619.18401.qmail@sourceware.org> From: "suparna at in dot ibm dot com" To: systemtap@sources.redhat.com In-Reply-To: <20060113232600.2152.jkenisto@us.ibm.com> References: <20060113232600.2152.jkenisto@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug kprobes/2152] jprobe variant to run handler instead of probed function X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00168.txt.bz2 ------- Additional Comments From suparna at in dot ibm dot com 2006-01-16 10:56 ------- Subject: Re: New: jprobe variant to run handler instead of probed function On Fri, Jan 13, 2006 at 11:26:01PM -0000, jkenisto at us dot ibm dot com wrote: > A kprobes user has asked for the ability to use kprobes to turn a specified > function into a no-op. I couldn't figure out how to do that (Any ideas?), but > it occurred to us that jprobes takes us partway there. > > Our user's request could be viewed as a special case of a more general feature: > the ability to execute a jprobe-like handler instead of (rather than before) > executing the probed function. Probably just calling "return" instead of "jprobe_return" from the jprobe handler would do the trick ? I had that possibility at the back of my mind as a use of jprobes for fault injection purposes, but one would need to actually try it out to make sure it works (I hadn't really thought it through it in detail). Regards Suparna > > -- > Summary: jprobe variant to run handler instead of probed function > Product: systemtap > Version: unspecified > Status: NEW > Severity: enhancement > Priority: P3 > Component: kprobes > AssignedTo: systemtap at sources dot redhat dot com > ReportedBy: jkenisto at us dot ibm dot com > > > http://sourceware.org/bugzilla/show_bug.cgi?id=2152 > > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. -- http://sourceware.org/bugzilla/show_bug.cgi?id=2152 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.