From: Eugene Syromyatnikov Date: Sun, 16 Oct 2016 23:15:37 +0000 (+0300) Subject: bjm: use getarg_ull for retrieving first two parameters of init_module syscall X-Git-Tag: v4.15~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dad07434a85f2132c412c95cde4011157857df91;p=strace bjm: use getarg_ull for retrieving first two parameters of init_module syscall As init_module has no compat wrapper, its first parameter is a pointer and the second is length, they both have the same size as kernel_ulong_t type. * bjm.c (SYS_FUNC(init_module)): Obtain first two parameters using getarg_ull, print address argument using printaddr_ull, print length argument using "%llu" conversion specifier. --- diff --git a/bjm.c b/bjm.c index e77b73d6..054f110b 100644 --- a/bjm.c +++ b/bjm.c @@ -44,8 +44,8 @@ SYS_FUNC(delete_module) SYS_FUNC(init_module) { - printaddr(tcp->u_arg[0]); - tprintf(", %lu, ", tcp->u_arg[1]); + printaddr_ull(getarg_ull(tcp, 0)); + tprintf(", %llu, ", getarg_ull(tcp, 1)); printstr(tcp, tcp->u_arg[2], -1); return RVAL_DECODED;