[PATCH 03/26] bjm: Use getarg_ull for retrieving len parameter of init_module syscall
Eugene Syromyatnikov
evgsyr at gmail.com
Mon Oct 24 03:00:09 UTC 2016
Since it is of kernel_ulont_t type, in fact.
* bjm.c (SYS_FUNC(init_module)): Use "%llu" conversion specifier, obtain
len aargument via getarg_ull.
---
bjm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bjm.c b/bjm.c
index e77b73d..c8e8470 100644
--- a/bjm.c
+++ b/bjm.c
@@ -45,7 +45,7 @@ SYS_FUNC(delete_module)
SYS_FUNC(init_module)
{
printaddr(tcp->u_arg[0]);
- tprintf(", %lu, ", tcp->u_arg[1]);
+ tprintf(", %llu, ", getarg_ull(tcp, 1));
printstr(tcp, tcp->u_arg[2], -1);
return RVAL_DECODED;
--
1.7.10.4
More information about the Strace-devel
mailing list