blob: 9e4de9014f146127dac9b7f70c452ff9e7d0ffb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
set script "probe kernel.statement(-1).absolute {} probe timer.s(1) { exit() }"
set test "bad kprobe registration"
spawn stap -g -w -e "$script"
expect {
-re "^WARNING: probe .*registration error.*" { pass $test }
eof { fail "$test (eof)" }
timeout { fail "$test (timeout)" }
}
catch {close}
catch {wait}
|