diff options
author | hunt <hunt> | 2007-10-25 22:22:16 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-25 22:22:16 +0000 |
commit | 0379c17346059afa8dffb07eef82eaea726be6d2 (patch) | |
tree | af53c0b5618fd36d67dd928c65919379d575b135 /testsuite/systemtap.maps/elision.stp | |
parent | 805006f778928f9d43419c3ad0f9e6cd0e9df9c0 (diff) | |
download | systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.tar.gz systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.tar.xz systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.zip |
2007-10-25 Martin Hunt <hunt@redhat.com>
* systemtap.printf/print_char.*: New test.
* systemtap.printf/print.*: New test.
* systemtap.printf/println.*: New test.
* systemtap.maps/elision.*: New tests.
* config/unix.exp: Added stap_run_exact.
* lib/stap_run_exact.exp: New. Like stap_run2 but
takes a seperate test name.
Diffstat (limited to 'testsuite/systemtap.maps/elision.stp')
-rw-r--r-- | testsuite/systemtap.maps/elision.stp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/elision.stp b/testsuite/systemtap.maps/elision.stp new file mode 100644 index 00000000..e903f569 --- /dev/null +++ b/testsuite/systemtap.maps/elision.stp @@ -0,0 +1,54 @@ +# test that we can check the count of an empty array + +global a,b,c + +probe begin +{ + a <<< 444 + a <<< 999 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + a <<< 444 + a <<< 500 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + a <<< 0 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + a <<< 50 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + a <<< 1450 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + a <<< 1500 + print(@hist_linear(a, 0, 1500, 50)) + delete a + + b <<< -10 + print(@hist_linear(b, -100, 100, 10)) + delete b + + b <<< 0 + print(@hist_linear(b, -100, 100, 10)) + delete b + + c <<< 128 + print(@hist_log(c)) + delete c + + c <<< 0 + print(@hist_log(c)) + delete c + + c <<< -2 + c <<< -4096 + print(@hist_log(c)) + + exit() +} |