| 1 |
set test "dw_entry_value" |
| 2 |
set test_flags "additional_flags=-g" |
| 3 |
set test_flags "$test_flags additional_flags=-Og" |
| 4 |
|
| 5 |
set res [target_compile $srcdir/$subdir/$test.c $test executable "$test_flags"] |
| 6 |
if { $res != "" } { |
| 7 |
verbose "target_compile failed: $res" 2 |
| 8 |
fail "$test: unable to compile $test.c" |
| 9 |
} else { |
| 10 |
pass "$test: compiled $test.c" |
| 11 |
} |
| 12 |
|
| 13 |
set ::result_string {systemtap starting probe |
| 14 |
systemtap ending probe |
| 15 |
systemtap test success} |
| 16 |
|
| 17 |
if { ![catch { exec eu-readelf -w $test | grep entry_value: }] } { |
| 18 |
stap_run2 $srcdir/$subdir/$test.stp -c ./${test} -w |
| 19 |
} else { |
| 20 |
untested "$test: no DW_OP_GNU_entry_value found" |
| 21 |
} |
| 22 |
|
| 23 |
catch { exec rm -f $test } |