From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14700 invoked by alias); 17 Feb 2007 11:40:04 -0000 Received: (qmail 14588 invoked by uid 48); 17 Feb 2007 11:39:51 -0000 Date: Sat, 17 Feb 2007 11:40:00 -0000 Message-ID: <20070217113951.14587.qmail@sourceware.org> From: "srinivasa 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-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00372.txt.bz2 ------- Additional Comments From srinivasa at in dot ibm dot com 2007-02-17 11:39 ------- Jprobe module should have jprobe_nop_retun in its function and "return" is also required. An example is here int jversion_read_proc(char *page, char **start, off_t off, int count, int *eof, void *data) { jprobe_nop_return(); return 0; } static struct jprobe my_jprobe = { .entry = JPROBE_ENTRY(jversion_read_proc) }; static int __init jprobe_init(void) { int ret; my_jprobe.kp.symbol_name = "version_read_proc"; if ((ret = register_jprobe(&my_jprobe)) <0) { printk("register_jprobe failed, returned %d\n", ret); return -1; } printk("Planted jprobe at %p, handler addr %p\n", my_jprobe.kp.addr, my_jprobe.entry); return 0; } static void __exit jprobe_exit(void) { unregister_jprobe(&my_jprobe); printk("jprobe unregistered\n"); } module_init(jprobe_init) module_exit(jprobe_exit) MODULE_LICENSE("GPL"); -- 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.