File: ptr-1.2.exp

package info (click to toggle)
systemtap 5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,556 kB
  • sloc: cpp: 81,117; ansic: 54,933; xml: 49,795; exp: 43,595; sh: 11,526; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (85 lines) | stat: -rw-r--r-- 1,474 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
set test "ptr-1.2"

if {$::tcl_platform(wordSize) == 8} {
  set ::result_string "0x0000000000000000
0x0000000000000001
0x0000000012345678
0x12345678abcdef00
0x0000000012345678

  0x0000000000000000X
  0x0000000000000001X
  0x0000000012345678X
  0x12345678abcdef00X
  0x0000000012345678X

0x000000000000000000X
0x000000000000000001X
0x000000000012345678X
0x0012345678abcdef00X
0x000000000012345678X

0x000000
0x000001
0x12345678
0x12345678abcdef00
0x12345678

0x000000X
0x000001X
0x12345678X
0x12345678abcdef00X
0x12345678X

0x0000000000000000
0x0000000000000001
0x0000000012345678
0x12345678abcdef00
0x0000000012345678"
} else {
  set ::result_string "0x00000000
0x00000001
0x12345678
0xabcdef00
0x12345678

          0x00000000X
          0x00000001X
          0x12345678X
          0xabcdef00X
          0x12345678X

0x000000000000000000X
0x000000000000000001X
0x000000000012345678X
0x0000000000abcdef00X
0x000000000012345678X

0x000000
0x000001
0x12345678
0xabcdef00
0x12345678

0x000000X
0x000001X
0x12345678X
0xabcdef00X
0x12345678X

0x00000000
0x00000001
0x12345678
0xabcdef00
0x12345678"
}

foreach runtime [get_runtime_list] {
    if {$runtime != ""} {
	stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime --compatible=1.2
	stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime --compatible=1.2 -DSTP_LEGACY_PRINT
    } else {
	stap_run2 $srcdir/$subdir/$test.stp --compatible=1.2
	stap_run2 $srcdir/$subdir/$test.stp --compatible=1.2 -DSTP_LEGACY_PRINT
    }
}