This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug kprobes/3310] New: kallsyms_lookup_name gone - update kprobes tests


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]