From: Dmitry V. Levin Date: Thu, 27 Oct 2016 22:44:08 +0000 (+0000) Subject: kcmp: print index parameters of unknown commands as kernel_ulong_t X-Git-Tag: v4.15~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63c27873b64e1cdd086c1073c4079deb7ecfd7ec;p=strace kcmp: print index parameters of unknown commands as kernel_ulong_t * lookup_dcookie.c (SYS_FUNC(kcmp)): Use getarg_ull to retrieve idx1 and idx2, print them using %#llx format in case of unknown command. --- diff --git a/kcmp.c b/kcmp.c index aec494a3..4668b48f 100644 --- a/kcmp.c +++ b/kcmp.c @@ -33,8 +33,8 @@ SYS_FUNC(kcmp) pid_t pid1 = tcp->u_arg[0]; pid_t pid2 = tcp->u_arg[1]; int type = tcp->u_arg[2]; - unsigned long idx1 = tcp->u_arg[3]; - unsigned long idx2 = tcp->u_arg[4]; + unsigned long long idx1 = getarg_ull(tcp, 3); + unsigned long long idx2 = getarg_ull(tcp, 4); tprintf("%d, %d, ", pid1, pid2); printxval(kcmp_types, type, "KCMP_???"); @@ -51,7 +51,7 @@ SYS_FUNC(kcmp) case KCMP_VM: break; default: - tprintf(", %#lx, %#lx", idx1, idx2); + tprintf(", %#llx, %#llx", idx1, idx2); } return RVAL_DECODED;