Debian Codegraph @

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

raw
1 set test "ctime"
2 set linux_result_string {Thu Jan 1 00:00:00 1970
3 Wed Dec 31 23:59:59 1969
4 Thu Jan 1 00:00:01 1970
5 Sat Mar 3 09:46:40 1973
6 Fri Feb 13 23:31:30 2009
7 Sat Jan 10 13:37:04 2004
8 Fri Jul 13 11:01:20 2012
9 conversion error
10 conversion error
11 Fri Dec 13 20:45:52 1901
12 conversion error
13 Tue Jan 19 03:14:07 2038
14 conversion error
15 conversion error
16 conversion error}
17
18 # Notice the dyninst result string is different than the linux result
19 # string. The userspace glibc library can convert more values.
20 set dyninst_result_string {Thu Jan 1 00:00:00 1970
21 Wed Dec 31 23:59:59 1969
22 Thu Jan 1 00:00:01 1970
23 Sat Mar 3 09:46:40 1973
24 Fri Feb 13 23:31:30 2009
25 Sat Jan 10 13:37:04 2004
26 Fri Jul 13 11:01:20 2012
27 Sun Aug 24 00:00:00 1000
28 Thu Sep 2 00:00:00 9993
29 Fri Dec 13 20:45:52 1901
30 Fri Dec 13 20:45:51 1901
31 Tue Jan 19 03:14:07 2038
32 Tue Jan 19 03:14:08 2038
33 conversion error
34 conversion error}
35
36 foreach runtime [get_runtime_list] {
37 if {$runtime != ""} {
38 set ::result_string [subst $${runtime}_result_string]
39 stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime
40 } else {
41 set ::result_string $linux_result_string
42 stap_run2 $srcdir/$subdir/$test.stp
43 }
44 }