diff options
author | hunt <hunt> | 2007-06-07 15:11:04 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-06-07 15:11:04 +0000 |
commit | e62ffeb978b987ffa7cea29c1d0176276b1e65bd (patch) | |
tree | 4a9c757920b191ae0367b1c5b5f1cbaac3a3fc33 /tapset/syscalls.stp | |
parent | 19765587f35b795d9a4e331261b2320fe79fbfe2 (diff) | |
download | systemtap-steved-e62ffeb978b987ffa7cea29c1d0176276b1e65bd.tar.gz systemtap-steved-e62ffeb978b987ffa7cea29c1d0176276b1e65bd.tar.xz systemtap-steved-e62ffeb978b987ffa7cea29c1d0176276b1e65bd.zip |
2007-06-07 Martin Hunt <hunt@redhat.com>
Fallout from PR 3331 fix. Sometimes glibc and the
kernel disagree about signed vs unsigned.
* aux_syscalls.stp: Rename __uid() to __int32().
* syscalls.stp: Change syscall.chown, syscall.fchown,
syscall.lchown, and syscall.lseek to use __int32().
* syscalls2.stp: Change syscall.setregid, syscall.resgid,
syscall.resuid, and syscall.setreuid to use __int32().
Diffstat (limited to 'tapset/syscalls.stp')
-rw-r--r-- | tapset/syscalls.stp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index 51117fb2..fb96698e 100644 --- a/tapset/syscalls.stp +++ b/tapset/syscalls.stp @@ -247,8 +247,8 @@ probe syscall.chmod.return = kernel.function("sys_chmod").return { probe syscall.chown = kernel.function("sys_chown") { name = "chown" path = user_string($filename) - owner = $user - group = $group + owner = __int32($user) + group = __int32($group) argstr = sprintf("%s, %d, %d",user_string_quoted($filename), owner, group) } probe syscall.chown.return = kernel.function("sys_chown").return { @@ -617,9 +617,9 @@ probe syscall.fchmod.return = kernel.function("sys_fchmod").return { probe syscall.fchown = kernel.function("sys_fchown") { name = "fchown" fd = $fd - owner = $user - group = $group - argstr = sprintf("%d, %d, %d", $fd, $user, $group) + owner = __int32($user) + group = __int32($group) + argstr = sprintf("%d, %d, %d", $fd, owner, group) } probe syscall.fchown.return = kernel.function("sys_fchown").return { name = "fchown" @@ -1599,8 +1599,8 @@ probe syscall.kill.return = kernel.function("sys_kill").return { probe syscall.lchown = kernel.function("sys_lchown") { name = "lchown" path = user_string($filename) - owner = $user - group = $group + owner = __int32($user) + group = __int32($group) argstr = sprintf("%s, %d, %d",user_string_quoted($filename), owner, group) } probe syscall.lchown.return = kernel.function("sys_lchown").return { @@ -1764,10 +1764,10 @@ probe syscall.lremovexattr.return = kernel.function("sys_lremovexattr").return { probe syscall.lseek = kernel.function("sys_lseek") { name = "lseek" fildes = $fd - offset = $offset + offset = __int32($offset) whence = $origin whence_str = _seek_whence_str($origin) - argstr = sprintf("%d, %d, %s", $fd, $offset, whence_str) + argstr = sprintf("%d, %d, %s", $fd, offset, whence_str) } probe syscall.lseek.return = kernel.function("sys_lseek").return { name = "lseek" |