Debian Codegraph @

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

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