+++ /dev/null
-#!/bin/sh
-#
-# Verify that --ignore-vmlinux "hides" vmlinux.
-
-stap $@ -p2 --ignore-vmlinux -e '
-probe kernel.function("printk") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(30) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# Verify that --ignore-dwarf "hides" dwarf info.
-
-stap $@ -p2 --ignore-dwarf -e '
-probe kernel.function("printk") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(30) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# --kelf doesn't work if vmlinux can't be found.
-
-stap $@ -p2 --ignore-vmlinux --kelf -e '
-probe kernel.function("printk") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(30) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# The symbol table doesn't give us enough info to probe inline functions.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.function("list_empty").inline {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(15) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# The symbol table doesn't give us enough info to map source files to functions.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.function("*@kernel/printk.c") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(15) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# The symbol table doesn't give us enough info to probe statements.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.statement("*@kernel/printk.c:639") {
- printf("probe hit: %s\n", pp())
- exit()
-}
-
-probe timer.sec(15) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# This should fail until/unless we expand our blacklist to cover symbols
-# in the symbol table that don't show up in dwarf.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.function("*") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(15) {
- exit()
-}
-' >/dev/null
+++ /dev/null
-#!/bin/sh
-#
-# The regular blacklist should thwart this.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.function("register_kprobe") {
- printf("%s called\n", probefunc())
- exit()
-}
-
-probe timer.sec(30) {
- exit()
-}
-'
+++ /dev/null
-#!/bin/sh
-#
-# The symbol table doesn't give us enough info to evaluate target variables.
-
-stap $@ -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e '
-probe kernel.function("printk") {
- printf("%s called; fmt = \"%s\"\n", probefunc(), kernel_string($fmt))
- exit()
-}
-
-probe timer.sec(15) {
- exit()
-}
-'