summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-28 17:12:04 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-28 17:12:04 +0200
commit59c11f912be76f0a8e37541d9b25e621daff61ca (patch)
tree69dd49712a1b1b40ceea161c0317178a51480871 /dwflpp.h
parent3db9c8433e58812c9ce47df384e23841aca27894 (diff)
downloadsystemtap-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwflpp.h b/dwflpp.h
index 5f04d824..979ec868 100644
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -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;