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(", ");

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to