Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/kallsyms.exp

raw
1 set test "kallsyms"
2
3 if {![installtest_p]} {untested $test; return}
4
5 set script {"probe timer.profile {print_stack(backtrace()); exit()}"}
6 set passed 0
7
8 # don't let stap find kernel debuginfo!
9 eval spawn env SYSTEMTAP_DEBUGINFO_PATH=$srcdir DEBUGINFOD_URLS= DEBUGINFOD_CACHE_PATH=/dev/null stap --all-modules -e $script
10 expect {
11 -timeout 30
12 -re "\\\[kernel\\\]" {
13 set passed 1
14 }
15 }
16 catch { close }; catch { wait }
17
18 if {$passed == 1} {
19 pass $test
20 } else {
21 fail $test
22 }