From f90f92615df6ff2a62282359281889597e5dbf17 Mon Sep 17 00:00:00 2001 From: Srinivasa DS Date: Wed, 23 Apr 2008 15:06:32 -0400 Subject: PR6416: extend probing blacklist with more init/exit sections --- tapsets.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index 6e776a58..c0a090e2 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2618,7 +2618,13 @@ dwarf_query::blacklisted_p(const string& funcname, Dwarf_Addr addr) { if (section.substr(0, 6) == string(".init.") || - section.substr(0, 6) == string(".exit.")) + section.substr(0, 6) == string(".exit.") || + section.substr(0, 9) == string(".devinit.") || + section.substr(0, 9) == string(".devexit.") || + section.substr(0, 9) == string(".cpuinit.") || + section.substr(0, 9) == string(".cpuexit.") || + section.substr(0, 9) == string(".meminit.") || + section.substr(0, 9) == string(".memexit.")) { // NB: module .exit. routines could be probed in theory: // if the exit handler in "struct module" is diverted, -- cgit From a53c9645aeb7a97a122e161aaa4359152802d5f7 Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 25 Apr 2008 11:58:56 -0500 Subject: Handles markers with no format string. 2008-04-25 David Smith PR 6455. * tapsets.cxx (mark_builder::build): Handles markers with no format string. --- tapsets.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index c0a090e2..23e85a0e 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -6488,6 +6488,11 @@ mark_builder::build(systemtap_session & sess, string::size_type notwhite = format.find_first_not_of(" \t"); format.erase(0, notwhite); + // If the format is empty, make sure we add back a space + // character, which is what MARK_NOARGS expands to. + if (format.length() == 0) + format = " "; + if (sess.verbose>3) clog << "'" << name << "' '" << module << "' '" << format << "'" << endl; -- cgit