summaryrefslogtreecommitdiffstats
path: root/tapset/syscalls.stp
diff options
context:
space:
mode:
authorwcohen <wcohen>2008-01-25 17:00:13 +0000
committerwcohen <wcohen>2008-01-25 17:00:13 +0000
commit76281bb2d64dfe1acf236f3c1fa7e3ce0b01e2f7 (patch)
tree92e5d173e413c881741c036fea1ccf89dc64d8ad /tapset/syscalls.stp
parent61e6369cbee45118e12ee4ea43e9d7a48b3c2660 (diff)
downloadsystemtap-steved-76281bb2d64dfe1acf236f3c1fa7e3ce0b01e2f7.tar.gz
systemtap-steved-76281bb2d64dfe1acf236f3c1fa7e3ce0b01e2f7.tar.xz
systemtap-steved-76281bb2d64dfe1acf236f3c1fa7e3ce0b01e2f7.zip
2008-01-25 Will Cohen <wcohen@redhat.com>
PR5554 * syscalls.stp (__is_user_regs): Modify to work with older kernels.
Diffstat (limited to 'tapset/syscalls.stp')
-rw-r--r--tapset/syscalls.stp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp
index 3a239245..d394208f 100644
--- a/tapset/syscalls.stp
+++ b/tapset/syscalls.stp
@@ -857,7 +857,7 @@ function __is_user_regs:long (regs:long) %{ /* pure */
#else
int cs = kread(&regs->xcs);
#endif
- THIS->__retvalue = ((cs & SEGMENT_RPL_MASK) == USER_RPL);
+ THIS->__retvalue = (!!((cs & 3)));
#elif defined(__x86_64__)
unsigned long cs = kread(&regs->cs);
THIS->__retvalue = (!!((cs & 3)));