From a2639cb76e9151cad6ceebc21857d2d6aa8cbc8a Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 20 Jul 2009 16:25:35 -0700 Subject: Return hash module values directly as strings * session.h (systemtap_session): remove tracequery_path * hash.cxx (find_tracequery_hash, find_typequery_hash): return strings * tapsets.cxx (dwarf_cast_expanding_visitor::filter_special_modules): get the hashed path from the return value instead of a parameter (tracepoint_builder::init_dw): ditto, and don't stuff it in session --- hash.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hash.h') diff --git a/hash.h b/hash.h index 7e432216..a6397a52 100644 --- a/hash.h +++ b/hash.h @@ -36,8 +36,7 @@ public: }; void find_hash (systemtap_session& s, const std::string& script); -void find_tracequery_hash (systemtap_session& s); -void find_typequery_hash (systemtap_session& s, const std::string& name, - std::string& module); +std::string find_tracequery_hash (systemtap_session& s); +std::string find_typequery_hash (systemtap_session& s, const std::string& name); /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ -- cgit