]> sourceware.org Git - systemtap.git/commitdiff
PR13112 (and PR13108) blacklist probing function from include/asm .h files.
authorMark Wielaard <mjw@redhat.com>
Mon, 5 Sep 2011 21:37:11 +0000 (23:37 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 5 Sep 2011 21:37:11 +0000 (23:37 +0200)
dwflpp.cxx (build_blacklist): all include/asm .h blfile patterns might
need "full path" so prefix those with '.*'
Add new XFAIL semok.exp inb_blacklisted.stp testcase.

dwflpp.cxx
testsuite/semko/inb_blacklisted.stp [new file with mode: 0755]

index a4a1a9560ff4b995c045773d279ad40f198ff3cc..3f6d98719a24732c183ea83750e7a64e3631974e 100644 (file)
@@ -2954,14 +2954,16 @@ dwflpp::build_blacklist()
   blsection += "|\\.meminit\\.";
   blsection += "|\\.memexit\\.";
 
+  /* NOTE all include/asm .h blfile patterns might need "full path"
+     so prefix those with '.*' - see PR13108 and PR13112. */
   blfile += "kernel/kprobes\\.c"; // first alternative, no "|"
   blfile += "|arch/.*/kernel/kprobes\\.c";
   // Older kernels need ...
-  blfile += "|include/asm/io\\.h";
-  blfile += "|include/asm/bitops\\.h";
+  blfile += "|.*/include/asm/io\\.h";
+  blfile += "|.*/include/asm/bitops\\.h";
   // While newer ones need ...
-  blfile += "|arch/.*/include/asm/io\\.h";
-  blfile += "|arch/.*/include/asm/bitops\\.h";
+  blfile += "|.*/arch/.*/include/asm/io\\.h";
+  blfile += "|.*/arch/.*/include/asm/bitops\\.h";
   blfile += "|drivers/ide/ide-iops\\.c";
 
   // XXX: it would be nice if these blacklisted functions were pulled
diff --git a/testsuite/semko/inb_blacklisted.stp b/testsuite/semko/inb_blacklisted.stp
new file mode 100755 (executable)
index 0000000..46baab8
--- /dev/null
@@ -0,0 +1,8 @@
+#! stap -p2
+
+/* PR13112 (and PR13108)
+   probing functions from blacklisted files shouldn't be possible. */
+probe kernel.function("inb@*.h")
+{
+  log("blacklisted")
+}
This page took 0.08008 seconds and 5 git commands to generate.