[PATCH] Tilera 3/3: a couple of generic changes

Chris Metcalf cmetcalf at tilera.com
Wed Dec 23 16:26:40 UTC 2009


These are not Tilera-specific so I broke them out to a separate
path.  One adds support for MREMAP_FIXED for mremap(); the other
just changes the first argument of mbind() to display in hex like
other pointers do.

diff -ru --new-file strace-4.5.19/mem.c tilera-source/mem.c
--- strace-4.5.19/mem.c	2009-01-23 11:10:22.000000000 -0500
+++ tilera-source/mem.c	2009-12-23 10:08:40.729414000 -0500
@@ -371,6 +371,9 @@
 
 static const struct xlat mremap_flags[] = {
 	{ MREMAP_MAYMOVE,	"MREMAP_MAYMOVE"	},
+#ifdef MREMAP_FIXED
+	{ MREMAP_FIXED,		"MREMAP_FIXED"		},
+#endif
 	{ 0,			NULL			}
 };
 
@@ -773,7 +776,7 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%lu, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
+		tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
 		printxval(policies, tcp->u_arg[2], "MPOL_???");
 		get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[4], 0);
 		tprintf(", ");




More information about the Strace-devel mailing list