diff options
author | wcohen <wcohen> | 2008-01-25 17:00:13 +0000 |
---|---|---|
committer | wcohen <wcohen> | 2008-01-25 17:00:13 +0000 |
commit | 76281bb2d64dfe1acf236f3c1fa7e3ce0b01e2f7 (patch) | |
tree | 92e5d173e413c881741c036fea1ccf89dc64d8ad /tapset | |
parent | 61e6369cbee45118e12ee4ea43e9d7a48b3c2660 (diff) | |
download | systemtap-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')
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/syscalls.stp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index f617b331..94071f07 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2008-01-25 Will Cohen <wcohen@redhat.com> + + PR5554 + * syscalls.stp (__is_user_regs): Modify to work with older kernels. + 2008-01-23 Masami Hiramatsu <mhiramat@redhat.com> PR5554 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(®s->xcs); #endif - THIS->__retvalue = ((cs & SEGMENT_RPL_MASK) == USER_RPL); + THIS->__retvalue = (!!((cs & 3))); #elif defined(__x86_64__) unsigned long cs = kread(®s->cs); THIS->__retvalue = (!!((cs & 3))); |