diff options
author | Stan Cox <scox@redhat.com> | 2008-08-27 17:56:28 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2008-08-27 17:56:28 -0400 |
commit | 0a102c820c4ee8da300b4a834ef0f15fa13016d3 (patch) | |
tree | 02d0b0a216d46ad37f712d063d05f47402283183 /testsuite/systemtap.base/global_end.stp | |
parent | 695ae5272479f77d261eea37a9ee4bef55c4ab12 (diff) | |
download | systemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.tar.gz systemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.tar.xz systemtap-steved-0a102c820c4ee8da300b4a834ef0f15fa13016d3.zip |
Automatically print written but unread globals
Diffstat (limited to 'testsuite/systemtap.base/global_end.stp')
-rw-r--r-- | testsuite/systemtap.base/global_end.stp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/global_end.stp b/testsuite/systemtap.base/global_end.stp new file mode 100644 index 00000000..e9a1eb8f --- /dev/null +++ b/testsuite/systemtap.base/global_end.stp @@ -0,0 +1,30 @@ +global alpha, beta, gamma, iota + +probe begin { + gamma = "abcdefghijklmnopqrstuvwxyz" + + iota["one"] = "eleven" + iota["two"] = "twelve" + + alpha["one",1] = 1 + alpha["one",2] = 2 + alpha["two",1] = 3 + alpha["two",2] = 4 + + beta["one",1] = 1 + beta["one",2] = 2 + beta["two",1] = 3 + beta["two",2] = 4 +} + +probe timer.ms(2000) { + exit () +} + +probe end { +foreach ([i,j] in beta) + printf("[%#s,%#x]=%#x ", i, j, beta[i,j]) +print("\n") +exit() +} + |