const int fd = u_arg[4];
printaddr(addr);
- tprintf(", %" PRI_kru ", ", len);
+ tprintf(", %" PRI_klu ", ", len);
printflags64(mmap_prot, prot, "PROT_???");
tprints(", ");
#ifdef MAP_TYPE
/* Params are passed directly, offset is in bytes */
SYS_FUNC(mmap)
{
- unsigned long long offset =
-#if HAVE_STRUCT_TCB_EXT_ARG
- tcp->ext_arg[5]; /* try test/x32_mmap.c */
-#else
- tcp->u_arg[5];
-#endif
/* Example of kernel-side handling of this variety of mmap:
* arch/x86/kernel/sys_x86_64.c::SYSCALL_DEFINE6(mmap, ...) calls
* sys_mmap_pgoff(..., off >> PAGE_SHIFT); i.e. off is in bytes,
* since the above code converts off to pages.
*/
- print_mmap(tcp, tcp->u_arg, offset);
+ print_mmap(tcp, tcp->u_arg, tcp->u_arg[5]);
return RVAL_DECODED | RVAL_HEX;
}
SYS_FUNC(munmap)
{
printaddr(tcp->u_arg[0]);
- tprintf(", %" PRI_kru, tcp->u_arg[1]);
+ tprintf(", %" PRI_klu, tcp->u_arg[1]);
return RVAL_DECODED;
}
static int
do_mprotect(struct tcb *tcp, bool has_pkey)
{
- printaddr_klu(getarg_klu(tcp, 0));
- tprintf(", %" PRI_klu ", ", getarg_klu(tcp, 1));
- printflags64(mmap_prot, getarg_klu(tcp, 2), "PROT_???");
+ printaddr(tcp->u_arg[0]);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
+ printflags64(mmap_prot, tcp->u_arg[2], "PROT_???");
if (has_pkey)
tprintf(", %d", (int) tcp->u_arg[3]);
SYS_FUNC(mremap)
{
printaddr(tcp->u_arg[0]);
- tprintf(", %" PRI_kru ", %" PRI_kru ", ", tcp->u_arg[1], tcp->u_arg[2]);
+ tprintf(", %" PRI_klu ", %" PRI_klu ", ", tcp->u_arg[1], tcp->u_arg[2]);
printflags64(mremap_flags, tcp->u_arg[3], "MREMAP_???");
#ifdef MREMAP_FIXED
if ((tcp->u_arg[3] & (MREMAP_MAYMOVE | MREMAP_FIXED)) ==
SYS_FUNC(madvise)
{
printaddr(tcp->u_arg[0]);
- tprintf(", %" PRI_kru ", ", tcp->u_arg[1]);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
printxval(madvise_cmds, tcp->u_arg[2], "MADV_???");
return RVAL_DECODED;
/* addr */
printaddr(tcp->u_arg[0]);
/* len */
- tprintf(", %" PRI_kru ", ", tcp->u_arg[1]);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
/* flags */
printflags(mctl_sync, tcp->u_arg[2], "MS_???");
SYS_FUNC(mlock2)
{
printaddr(tcp->u_arg[0]);
- tprintf(", %" PRI_kru ", ", tcp->u_arg[1]);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
printflags(mlock_flags, tcp->u_arg[2], "MLOCK_???");
return RVAL_DECODED;
{
if (entering(tcp)) {
printaddr(tcp->u_arg[0]);
- tprintf(", %" PRI_kru ", ", tcp->u_arg[1]);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[1]);
} else {
const unsigned long page_size = get_pagesize();
const unsigned long page_mask = page_size - 1;
const kernel_ulong_t flags = tcp->u_arg[4];
printaddr(addr);
- tprintf(", %" PRI_kru ", ", size);
+ tprintf(", %" PRI_klu ", ", size);
printflags64(mmap_prot, prot, "PROT_???");
- tprintf(", %" PRI_kru ", ", pgoff);
+ tprintf(", %" PRI_klu ", ", pgoff);
#ifdef MAP_TYPE
printxval64(mmap_flags, flags & MAP_TYPE, "MAP_???");
addflags(mmap_flags, flags & ~MAP_TYPE);
kernel_ulong_t map = tcp->u_arg[2];
printaddr(addr);
- tprintf(", %" PRI_kru ", ", len);
+ tprintf(", %" PRI_klu ", ", len);
unsigned int entry;
print_array(tcp, map, nmemb, &entry, sizeof(entry),