diff options
author | Jim Keniston <jkenisto@us.ibm.com> | 2008-05-12 12:17:20 -0700 |
---|---|---|
committer | Jim Keniston <jkenisto@us.ibm.com> | 2008-05-12 12:17:20 -0700 |
commit | c7fe0041d2132e801f72e158854d54da50fc651d (patch) | |
tree | 258d955ef4a1ead4ba1102812d962c9c981d873b /testsuite/semko | |
parent | 8dd6b23de4dd099aa244402192cb3d7be2bda739 (diff) | |
parent | da3fe5fe9641e7c4cc6ae5c4a289ddbc020aca1a (diff) | |
download | systemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.tar.gz systemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.tar.xz systemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.zip |
Merge commit 'origin/dwarfless'
PR 4311 - Function boundary tracing without debuginfo: Phases 1 and 2
Diffstat (limited to 'testsuite/semko')
-rwxr-xr-x | testsuite/semko/nodwf01.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf02.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf03.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf04.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf05.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf06.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf07.stp | 15 | ||||
-rwxr-xr-x | testsuite/semko/nodwf08.stp | 14 | ||||
-rwxr-xr-x | testsuite/semko/nodwf09.stp | 14 |
9 files changed, 127 insertions, 0 deletions
diff --git a/testsuite/semko/nodwf01.stp b/testsuite/semko/nodwf01.stp new file mode 100755 index 00000000..25217bac --- /dev/null +++ b/testsuite/semko/nodwf01.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf02.stp b/testsuite/semko/nodwf02.stp new file mode 100755 index 00000000..8f82d54b --- /dev/null +++ b/testsuite/semko/nodwf02.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf03.stp b/testsuite/semko/nodwf03.stp new file mode 100755 index 00000000..6b66f2e9 --- /dev/null +++ b/testsuite/semko/nodwf03.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf04.stp b/testsuite/semko/nodwf04.stp new file mode 100755 index 00000000..c20dec4f --- /dev/null +++ b/testsuite/semko/nodwf04.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf05.stp b/testsuite/semko/nodwf05.stp new file mode 100755 index 00000000..83fcfa3d --- /dev/null +++ b/testsuite/semko/nodwf05.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf06.stp b/testsuite/semko/nodwf06.stp new file mode 100755 index 00000000..7318cbec --- /dev/null +++ b/testsuite/semko/nodwf06.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf07.stp b/testsuite/semko/nodwf07.stp new file mode 100755 index 00000000..4a2cf4a5 --- /dev/null +++ b/testsuite/semko/nodwf07.stp @@ -0,0 +1,15 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf08.stp b/testsuite/semko/nodwf08.stp new file mode 100755 index 00000000..4b6d9da5 --- /dev/null +++ b/testsuite/semko/nodwf08.stp @@ -0,0 +1,14 @@ +#!/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() +} +' diff --git a/testsuite/semko/nodwf09.stp b/testsuite/semko/nodwf09.stp new file mode 100755 index 00000000..e103833f --- /dev/null +++ b/testsuite/semko/nodwf09.stp @@ -0,0 +1,14 @@ +#!/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() +} +' |