Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/openmp-stmt.exp

raw
1 set test "openmp-stmt"
2
3 set test_flags "additional_flags=-g additional_flags=-fopenmp additional_flags=-O2"
4 set res [target_compile $srcdir/$subdir/$test.c $test.exe executable "$test_flags"]
5
6 set count 0
7 spawn stap -L "process(\"$test.exe\").statement(\"*@*:*\")"
8 expect {
9 -re {^process[^\r\n]*\r\n} { incr count; exp_continue }
10 timeout { }
11 eof { }
12 }
13 verbose -log "$count statements found"
14
15 if { $count > 1} then { pass $test } else { fail $test $count }