]> sourceware.org Git - systemtap.git/commit
Add RHEL7.2 fixes for PR18889 so that we can probe module initializers.
authorDavid Smith <dsmith@redhat.com>
Fri, 4 Dec 2015 20:23:17 +0000 (14:23 -0600)
committerDavid Smith <dsmith@redhat.com>
Fri, 4 Dec 2015 20:23:17 +0000 (14:23 -0600)
commitc788eb19fb7875f8360ba42bd8b5454372be7a2f
tree04f98453971018dce0b31deb68375a4dce38f786
parent7abf6458d89b8d774df436f468dd38ee3d9d5ed5
Add RHEL7.2 fixes for PR18889 so that we can probe module initializers.

* runtime/linux/kprobes.c (stapkp_prepare_kprobe): If we have
  kallsyms_on_each_symbol(), just return if we don't have an address.
  (stapkp_prepare_kretprobe): Ditto.
  (stapkp_symbol_callback): New callback function for
  kallsyms_on_each_symbol() to convert symbol_name+offset probes into
  address probes. This works around a kernel bug and should be faster as
  well.
  (stapkp_init): Call kallsyms_on_each_symbol() when needed.
  (stapkp_refresh): Ditto.
* runtime/transport/symbols.c (_stp_module_notifier): Change to the new
  module refresh logic if the kernel version is 3.10 or higher.
* tapsets.cxx (dwarf_derived_probe_group::emit_module_decls): Ditto.
* testsuite/systemtap.base/kmodule.exp: Only run the subtests that load
  the test kernel module after the systemtap module is loaded on systems
  that support module refreshes.
runtime/linux/kprobes.c
runtime/transport/symbols.c
tapsets.cxx
testsuite/systemtap.base/kmodule.exp
This page took 0.03047 seconds and 5 git commands to generate.