summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--tapsets.cxx3
-rwxr-xr-xtestsuite/semok/twenty.stp8
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef0fca5b..8dea6bdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-11-08 Frank Ch. Eigler <fche@redhat.com>
+ * 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 <fche@redhat.com>
+
* translate.cxx (c_unparser::visit_foreach_loop): With PR 1275
done, add back read lock around foreach loop. Add a write lock
around preceding sort operation. Leave a race condition window. :-(
diff --git a/tapsets.cxx b/tapsets.cxx
index 7b0d2b78..d9a75340 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 00000000..6d7f5183
--- /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("*") {}