diff options
author | David Smith <dsmith@redhat.com> | 2010-03-22 13:41:02 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-03-22 13:41:02 -0500 |
commit | 82c7381731e28366e08d9407276bfa8408d24c29 (patch) | |
tree | 91aadadf440547f1f968e57bf93dd1b3f12261a4 | |
parent | 13045789c2760786a55f39ade4fe99109cd344ac (diff) | |
download | systemtap-steved-82c7381731e28366e08d9407276bfa8408d24c29.tar.gz systemtap-steved-82c7381731e28366e08d9407276bfa8408d24c29.tar.xz systemtap-steved-82c7381731e28366e08d9407276bfa8408d24c29.zip |
Ifdef out atomic_long_read() body on older kernels where the type doesn't exist.
* tapset/atomic.stp: If we don't have ATOMIC_LOGN_INIT(), ifdef out the
function.
-rw-r--r-- | tapset/atomic.stp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tapset/atomic.stp b/tapset/atomic.stp index d0581455..ab20eb5e 100644 --- a/tapset/atomic.stp +++ b/tapset/atomic.stp @@ -8,6 +8,7 @@ function atomic_long_read:long(addr:long) %{ /* pure */ +#ifdef ATOMIC_LONG_INIT atomic_long_t *a = (atomic_long_t *)(long)THIS->addr; /* We call deref() here to ensure the memory is valid to read. @@ -16,4 +17,5 @@ function atomic_long_read:long(addr:long) (void)deref(sizeof(*a), a); THIS->__retvalue = atomic_long_read(a); CATCH_DEREF_FAULT(); +#endif %} |