From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16017 invoked by alias); 5 Oct 2006 17:32:49 -0000 Received: (qmail 15980 invoked by uid 48); 5 Oct 2006 17:32:37 -0000 Date: Thu, 05 Oct 2006 17:32:00 -0000 From: "jkenisto at us dot ibm dot com" To: systemtap@sources.redhat.com Message-ID: <20061005173237.3310.jkenisto@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug kprobes/3310] New: kallsyms_lookup_name gone - update kprobes tests 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-q4/txt/msg00023.txt.bz2 In Linux 2.6.19-rc1, register_kprobe() has been enhanced so that you can set kp.symbol_name and kp.offset as an alternative to setting kp.addr. This enhancement affects register_kretprobe() and register_jprobe() accordingly. Also, a new macro, regs_return_value(regs), is provided to extract the return value from regs in a kretprobe handler. A side effect of these enhancement is that kallsyms_lookup_name() is no longer exported, and so existing kprobes-based modules that use kallsyms_lookup_name() will break. Consequently, test modules in tests/kernel need to be updated to check "#ifdef regs_return_value" and set symbol_name+offset or addr=kallsyms_lookup_name() accordingly. Also to use regs_return_value(). Compare the example programs in Documentation/kprobes.txt in 2.6.19-rc1 with the earlier versions for guidance. -- Summary: kallsyms_lookup_name gone - update kprobes tests Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P1 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=3310 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.