From 4893e4b2858af12d916c3915a97336cdb0c8236b Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 8 Nov 2005 19:45:59 +0000 Subject: [PATCH] 2005-11-08 Frank Ch. Eigler * tapsets.cxx (blacklisted_p): Tolerate NULL filename parameter. * src/testsuite/semok/twenty.stp: New test to enumerate everything dwarfly probeable. --- ChangeLog | 6 ++++++ tapsets.cxx | 3 ++- testsuite/semok/twenty.stp | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 testsuite/semok/twenty.stp diff --git a/ChangeLog b/ChangeLog index ef0fca5b5..8dea6bdb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-08 Frank Ch. Eigler + + * tapsets.cxx (blacklisted_p): Tolerate NULL filename parameter. + * src/testsuite/semok/twenty.stp: New test to enumerate everything + dwarfly probeable. + 2005-11-08 Frank Ch. Eigler * translate.cxx (c_unparser::visit_foreach_loop): With PR 1275 diff --git a/tapsets.cxx b/tapsets.cxx index 7b0d2b787..d9a75340b 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1710,7 +1710,8 @@ dwarf_query::blacklisted_p(string const & funcname, // properly generalized, perhaps via a table populated from script // files. A "noprobe kernel.function("...")" construct might do // the trick. - string filename_s = filename ? filename : ""; // is passed as const char* + if (filename == 0) filename = ""; // possibly 0 + string filename_s = filename; // is passed as const char* if (funcname == "do_IRQ" || filename_s == "kernel/kprobes.c" || 0 == fnmatch ("arch/*/kernel/kprobes.c", filename, 0) || diff --git a/testsuite/semok/twenty.stp b/testsuite/semok/twenty.stp new file mode 100755 index 000000000..6d7f51833 --- /dev/null +++ b/testsuite/semok/twenty.stp @@ -0,0 +1,8 @@ +#! stap -p2 + +probe kernel.function("*") {} +probe module("*").function("*") {} +probe kernel.function("*").return {} +probe module("*").function("*").return {} +probe kernel.inline("*") {} +probe module("*").inline("*") {} -- 2.43.5