From f982c59b2c2b1c25684213c816a69f18a98fea8a Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 20 Jul 2009 18:01:40 -0700 Subject: PR10424: Consider each tracepoint header separately With the current monolithic tracepoint query module, a failure in any of the discovered tracepoint headers means that you can't use any of the others either. This patch creates a separate query module for each header so they can pass or fail independently. * buildrun.cxx (make_tracequery): take a single header name instead of globbing for everything we can find. * hash.cxx (find_tracequery_hash): name the header file we're hashing. * tapsets.cxx (tracepoint_query::handle_query_func): make sure we don't duplicate tracepoints found through different headers. (tracepoint_builder::get_tracequery_module): get a header's module (tracepoint_builder::init_dw): glob for all tracepoint headers, and feed all their modules into dwflpp. --- hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.h') diff --git a/hash.h b/hash.h index a6397a52..f52fd89e 100644 --- a/hash.h +++ b/hash.h @@ -36,7 +36,7 @@ public: }; void find_hash (systemtap_session& s, const std::string& script); -std::string find_tracequery_hash (systemtap_session& s); +std::string find_tracequery_hash (systemtap_session& s, const std::string& header); 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