diff options
author | David Smith <dsmith@redhat.com> | 2010-04-06 13:17:15 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-04-06 13:17:15 -0500 |
commit | 602eddb22e42fd0ae51549240f54a247d13afe17 (patch) | |
tree | 28470660f76d1df1b62ce82e7063e056ba95ed5a /testsuite/buildok/atomic.stp | |
parent | dd3d6ed1d4187da281fac6c344ebe765274325bc (diff) | |
download | systemtap-steved-602eddb22e42fd0ae51549240f54a247d13afe17.tar.gz systemtap-steved-602eddb22e42fd0ae51549240f54a247d13afe17.tar.xz systemtap-steved-602eddb22e42fd0ae51549240f54a247d13afe17.zip |
Added atomic_read() embedded-C function and tests.
* tapset/atomic.stp: Added atomic_read().
* testsuite/buildok/atomic.stp: Added atomic_read() compile test.
* testsuite/systemtap.base/atomic.exp: Added atomic_read() tests.
* testsuite/lib/stap_run_error.exp (stap_run_error): Logs stap command and
tries to ensure inferior process is killed.
Diffstat (limited to 'testsuite/buildok/atomic.stp')
-rwxr-xr-x | testsuite/buildok/atomic.stp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/buildok/atomic.stp b/testsuite/buildok/atomic.stp index 00690453..5e0375f5 100755 --- a/testsuite/buildok/atomic.stp +++ b/testsuite/buildok/atomic.stp @@ -1,6 +1,7 @@ #! stap -p4 probe begin { + printf("%d\n", atomic_read(0)) printf("%d\n", atomic_long_read(0)) exit() } |