Debian Codegraph @

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

raw
1 set test "target_set_thread"
2
3 if {! [installtest_p]} { untested "$test"; return }
4 if {! [uprobes_p]} { untested "$test"; return }
5
6 # target_set should not forget a process once one of its threads ends.
7 # (this is an issue with using syscall.exit, which is only a true process exit
8 # if that was the last thread in the thread group.)
9
10 set ::result_string {benchmark__start
11 benchmark__thread__end
12 benchmark__end}
13
14 set script $srcdir/$subdir/$test.stp
15 set command {stap --benchmark-sdt-loops=1 --benchmark-sdt-threads=1}
16
17 foreach runtime [get_runtime_list] {
18 if {$runtime != ""} {
19 stap_run3 "$test ($runtime)" $script --runtime=$runtime -c $command
20 } else {
21 stap_run3 $test $script -c $command
22 }
23 }