diff options
author | David Smith <dsmith@redhat.com> | 2008-06-23 14:42:03 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-06-23 14:43:07 -0500 |
commit | 30fa13cdf6b8225d590642226e1255d3f574ef8a (patch) | |
tree | 2bb1c1b7f5419b12592bca1fb66a1311e1574cfc /runtime/task_finder_vma.c | |
parent | 86e6b319e54eb69a3c83d148f5ca8d62e041f05c (diff) | |
download | systemtap-steved-30fa13cdf6b8225d590642226e1255d3f574ef8a.tar.gz systemtap-steved-30fa13cdf6b8225d590642226e1255d3f574ef8a.tar.xz systemtap-steved-30fa13cdf6b8225d590642226e1255d3f574ef8a.zip |
Made RHEL5 changes.
2008-06-23 David Smith <dsmith@redhat.com>
* task_finder_vma.c (__stp_tf_vma_hash): Improved determination of
whether this is a 64-bit platform.
* syscall.h: Handles kernels with older style register
definitions.
Diffstat (limited to 'runtime/task_finder_vma.c')
-rw-r--r-- | runtime/task_finder_vma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c index c849f187..76b5c059 100644 --- a/runtime/task_finder_vma.c +++ b/runtime/task_finder_vma.c @@ -24,7 +24,7 @@ static struct hlist_head __stp_tf_vma_table[__STP_TF_TABLE_SIZE]; static inline u32 __stp_tf_vma_hash(struct task_struct *tsk, unsigned long addr) { -#if (__SIZEOF_LONG__ == 8) +#ifdef CONFIG_64BIT return (jhash_3words(tsk->pid, (u32)addr, (u32)(addr >> 32), 0) & (__STP_TF_TABLE_SIZE - 1)); #else |