Debian Codegraph @

testsuite/systemtap.printf/pretty-bits.exp

raw
1 set test "pretty-bits"
2 set ::result_string {{.a=0, .b=1, .c=1, .d=2, .e=3, .f=5, .g=8, .h=13}}
3
4 set script $srcdir/$subdir/$test.stp
5 set header /tmp/$test.h
6 file copy -force $srcdir/$subdir/$test.h $header
7
8 foreach runtime [get_runtime_list] {
9 if {$runtime != ""} {
10 # This should just use "<header>", but tcl exec insists on treating
11 # that as a redirect. We can instead abuse the fact that the
12 # tokenize() used by @cast ignores leading delimiters.
13 stap_run2 $script :<$header> -g --runtime=$runtime
14 stap_run2 $script :<$header> -g --runtime=$runtime -DSTP_LEGACY_PRINT
15 } else {
16 stap_run2 $script kernel<$header> -g
17 stap_run2 $script kernel<$header> -g -DSTP_LEGACY_PRINT
18 }
19 }
20
21 file delete -force $header