Debian Codegraph @

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

raw
1 set test "backtrace"
2
3 if {![installtest_p]} { untested $test; return }
4
5 if {![istarget "x86_64-*-*"] && ![istarget "i*86-*-*"]} {
6 setup_kfail 10739 [istarget]
7 }
8
9 set ok 0
10 set ok2 0
11 spawn stap $srcdir/$subdir/backtrace.stp
12 expect {
13 -timeout 30
14 -re {^WARNING: no or bad debug frame hdr[^\r\n]*\r\n} { exp_continue }
15 -re {^WARNING: No binary search table for eh frame, doing slow linear search for stap[^\r\n]*\r\n} { exp_continue }
16 -re {^WARNING: Missing unwind data for a module, rerun with[^\r\n]*\r\n} { exp_continue }
17 -re {^[^\r\n ]*\r\n} { incr ok; exp_continue }
18 -re {^ [^\r\n]*\r\n} { incr ok2; exp_continue }
19
20 eof { }
21 timeout { fail "$test (timeout)" }
22 }
23 catch { close }; catch { wait }
24 if {$ok == 3 && $ok2 >= $ok} then { pass "$test ($ok $ok2)" } else { fail "$test ($ok $ok2)" }
25
26
27 set test "backtrace-unwindsyms"
28
29 if {![istarget "x86_64-*-*"] && ![istarget "i*86-*-*"]} {
30 setup_kfail 10739 [istarget]
31 }
32
33 set ok 0
34 set ok2 0
35 spawn stap $srcdir/$subdir/backtrace.stp -d kernel
36 expect {
37 -timeout 30
38 -re {^WARNING: no or bad debug frame hdr[^\r\n]*\r\n} { exp_continue }
39 -re {^WARNING: No binary search table for eh frame, doing slow linear search for stap[^\r\n]*\r\n} { exp_continue }
40 -re {^WARNING: DWARF expression stack underflow in CFI[^\r\n]*\r\n} { exp_continue }
41 -re {^WARNING: Missing unwind data for a module[^\r\n]*\r\n} { exp_continue }
42 -re {^[^\r\n ]*\r\n} { incr ok; exp_continue }
43 -re {^ [^\r\n]*\r\n} { incr ok2; exp_continue }
44 eof { }
45 timeout { fail "$test (timeout)" }
46 }
47 catch { close }; catch { wait }
48 if {$ok == 3 && $ok2 >= $ok} then { pass "$test ($ok $ok2)" } else { fail "$test ($ok $ok2)" }
49
50 set test "self-unwind-ensure-exact"
51
52 if {![istarget "x86_64-*-*"] && ![istarget "i*86-*-*"]} {
53 setup_kfail 10739 [istarget]
54 }
55
56 set ok 0
57 spawn stap $srcdir/$subdir/backtrace.stp -d kernel
58 expect {
59 -timeout 30
60 -re {^WARNING: no or bad debug frame hdr[^\r\n]*\r\n} { exp_continue }
61 -re {^WARNING: No binary search table for eh frame, doing slow linear search for stap_self_tmp_value[^\r\n]*\r\n} { exp_continue }
62 -re {^WARNING: DWARF expression stack underflow in CFI[^\r\n]*\r\n} { exp_continue }
63 -re {[^\r\n]*inexact*[^\r\n]*\r\n} { incr ok; exp_continue }
64 eof { }
65 timeout { fail "$test (timeout)" }
66 }
67 catch { close }; catch { wait }
68 if {$ok == 0} then { pass "$test ($ok)" } else { fail "$test ($ok)" }
69