From 59c11f912be76f0a8e37541d9b25e621daff61ca Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 28 Sep 2009 17:12:04 +0200 Subject: 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. --- dwflpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dwflpp.h') 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& user_modules); + dwflpp(systemtap_session & session, const std::vector& 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& modules, bool debuginfo_needed = true); void setup_user(const std::vector& modules, bool debuginfo_needed = true); module_cu_cache_t module_cu_cache; -- cgit