diff options
Diffstat (limited to 'tapset/ia64/syscalls.stp')
-rw-r--r-- | tapset/ia64/syscalls.stp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tapset/ia64/syscalls.stp b/tapset/ia64/syscalls.stp index c57ab7e6..9601ac08 100644 --- a/tapset/ia64/syscalls.stp +++ b/tapset/ia64/syscalls.stp @@ -10,10 +10,13 @@ probe syscall.mmap = kernel.function("sys_mmap") ? len = $len prot = $prot flags = $flags - fd = $fd + # Although the kernel gets an unsigned long fd, on the + # user-side it is a signed int. Fix this. + fd = __int32($fd) offset = $off argstr = sprintf("%p, %d, %s, %s, %d, %d", $addr, $len, - _mprotect_prot_str($prot), _mmap_flags($flags), $fd, $off) + _mprotect_prot_str($prot), _mmap_flags($flags), + __int32($fd), $off) } probe syscall.mmap.return = kernel.function("sys_mmap").return ? |