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
--- /dev/null
+#! stap -p2
+
+/* PR13112 (and PR13108)
+ probing functions from blacklisted files shouldn't be possible. */
+probe kernel.function("inb@*.h")
+{
+ log("blacklisted")
+}