| 1 |
set test "at_var_mark" |
| 2 |
set testpath "$srcdir/$subdir" |
| 3 |
|
| 4 |
set stap_path $env(SYSTEMTAP_PATH)/stap |
| 5 |
|
| 6 |
# Check @var, even when var doesn't exist, works in process.mark probes. |
| 7 |
set output_string "s = \\d+\r\n.*pass:yes:0\r\n" |
| 8 |
set invoke "$stap_path -e 'probe begin \{ exit() \}'" |
| 9 |
|
| 10 |
# Only run on make installcheck and uprobes present. |
| 11 |
if {! [installtest_p]} { untested "$test"; return } |
| 12 |
|
| 13 |
foreach runtime [get_runtime_list] { |
| 14 |
if {$runtime != ""} { |
| 15 |
if {$runtime == "dyninst"} { |
| 16 |
# dyninst lacks support for VMA-tracking |
| 17 |
setup_kfail 15052 "*-*-*" |
| 18 |
} |
| 19 |
stap_run "${test} ($runtime)" wait_5_secs $output_string \ |
| 20 |
--runtime=$runtime ${testpath}/${test}.stp -c $invoke |
| 21 |
|
| 22 |
} elseif {[uprobes_p]} { |
| 23 |
stap_run ${test} wait_5_secs $output_string \ |
| 24 |
${testpath}/${test}.stp -c $invoke |
| 25 |
|
| 26 |
} else { |
| 27 |
untested "$test" |
| 28 |
} |
| 29 |
} |