summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-02-05 17:48:33 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-05 17:48:33 +0100
commit0b99a8ac3bf6314bc92ab528b3849ab3faf7bf4c (patch)
tree5776b0ee3153cac54261e18d7ac5b4e3f2fab6ba /mem.c
parent4645582edbbc6c3605904634de7bcb9b0b4f0ef2 (diff)
downloadstrace-0b99a8ac3bf6314bc92ab528b3849ab3faf7bf4c.tar.gz
strace-0b99a8ac3bf6314bc92ab528b3849ab3faf7bf4c.tar.bz2
strace-0b99a8ac3bf6314bc92ab528b3849ab3faf7bf4c.tar.xz
Add tilegx support to strace
tilegx support has been in the kernel since 3.0. In addition, fix some issues with the tilepro support already present in strace, primarily the decision to use the <asm/unistd.h> numbering space for system calls. * defs.h [TILE]: Include <asm/ptrace.h> and provide an extern struct pt_regs tile_regs for efficiency. Provide compat 32-bit personality via SUPPORTED_PERSONALITIES, PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE, and DEFAULT_PERSONALITY. * linux/tile/errnoent1.h: New file, includes linux/errnoent.h. * linux/tile/ioctlent1.h: New file, includes linux/ioctlent.h. * linux/tile/signalent1.h: New file, includes linux/signalent.h. * linux/tile/syscallent.h: Update with new asm-generic syscalls. The version previously committed was the from the first tile patch to LKML, which subsequently was changed to use <asm-generic/unistd.h>. * linux/tile/syscallent1.h: Copy from linux/tile/syscallent.h. * mem.c (addtileflags) [TILE]: use %ld properly for a "long" variable. * process.c [TILE]: Choose clone arguments correctly and properly suppress all "struct user" related offsets in user_struct_offsets. * signal.c [TILE]: Use tile_regs not upeek. * syscall.c (update_personality) [TILE]: Print mode. (PT_FLAGS_COMPAT) [TILE]: Provide if not in system headers. (tile_regs) [TILE]: Define 'struct pt_regs' variable to hold state. (get_regs) [TILE]: use PTRACE_GETREGS to set tile_regs rather than using upeek. (get_scno) [TILE]: Set personality. (get_syscall_args) [TILE]: Use tile_regs. (get_syscall_result) [TILE]: Update tile_regs. (get_error) [TILE]: Use tile_regs. (printcall) [TILE]: Print pc. (arg0_offset, arg1_offset, restore_arg0, restore_arg1) [TILE]: Properly handle tile call semantics and support tilegx. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mem.c b/mem.c
index 0279030..3139904 100644
--- a/mem.c
+++ b/mem.c
@@ -197,7 +197,7 @@ addtileflags(long flags)
case MAP_CACHE_HOME_TASK: tprints("|MAP_CACHE_HOME_TASK"); break;
case MAP_CACHE_HOME_HASH: tprints("|MAP_CACHE_HOME_HASH"); break;
default:
- tprintf("|MAP_CACHE_HOME(%d)",
+ tprintf("|MAP_CACHE_HOME(%ld)",
(home >> _MAP_CACHE_HOME_SHIFT) );
break;
}