diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-28 17:12:04 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-28 17:12:04 +0200 |
commit | 59c11f912be76f0a8e37541d9b25e621daff61ca (patch) | |
tree | 69dd49712a1b1b40ceea161c0317178a51480871 /dwflpp.h | |
parent | 3db9c8433e58812c9ce47df384e23841aca27894 (diff) | |
download | systemtap-steved-59c11f912be76f0a8e37541d9b25e621daff61ca.tar.gz systemtap-steved-59c11f912be76f0a8e37541d9b25e621daff61ca.tar.xz systemtap-steved-59c11f912be76f0a8e37541d9b25e621daff61ca.zip |
Use dwlpp::setup_kernel for tracepoint modules.
Tracepoint modules ended up going through dwflpp::setup_user() because
there was no setup_kernel that takes a list of module names.
* dwflpp.h: Add kernel_p bool to constructor that takes a module list.
Add setup_kernel() variant that takes a module list.
* dwflpp.cxx: Likewise.
* tapsets.cxx (tracepoint_builder::init_dw): Call dwflpp constructor
indicating we expect kernel modules.
Diffstat (limited to 'dwflpp.h')
-rw-r--r-- | dwflpp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -173,7 +173,7 @@ struct dwflpp std::string function_name; dwflpp(systemtap_session & session, const std::string& user_module, bool kernel_p); - dwflpp(systemtap_session & session, const std::vector<std::string>& user_modules); + dwflpp(systemtap_session & session, const std::vector<std::string>& user_modules, bool kernel_p); ~dwflpp(); void get_module_dwarf(bool required = false, bool report = true); @@ -293,6 +293,7 @@ private: Dwarf_Die * function; void setup_kernel(const std::string& module_name, bool debuginfo_needed = true); + void setup_kernel(const std::vector<std::string>& modules, bool debuginfo_needed = true); void setup_user(const std::vector<std::string>& modules, bool debuginfo_needed = true); module_cu_cache_t module_cu_cache; |