public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* strace not working with latest git
@ 2008-09-10 15:52 Nylund, Martin
  2008-09-11  9:43 ` AW: " Nylund, Martin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nylund, Martin @ 2008-09-10 15:52 UTC (permalink / raw)
  To: linux-sh

Hello all,

I haven't bee able to get strace working on my sh7722 target:

$> uname -a
Linux 192.168.105.52 2.6.27-rc6-00008-g3ed6d13-dirty #184 Wed Sep 10
17:31:44 CEST 2008 sh4al-dsp unknown

$> strace ls
restart_syscall(<... resuming interrupted call ...>) = 0
.
. <repeating many times>
.
restart_syscall(<... resuming interrupted call ...>) = 0
restart_syscall(<... resuming interrupted call ...>) = 0
bin      etc      linuxrc  mplayer  sbin     tmp
restart_syscall(<... resuming interrupted call ...>) = 0
boot     include  man      opt      share    usr
restart_syscall(<... resuming interrupted call ...>) = 0
dev      lib      mnt      proc     sys      var
restart_syscall(<... resuming interrupted call ...>) = 0
~ #                            


I traced the problem a bit and in strace sources, the ptrace call
PTRACE_PEEKUSR always returns 0 when fetching the syscall number. I also
added a printk to PTRACE_PEEKUSR in arch/sh/kernel/ptrace_32.c and the
returned value is always 0. 

What might be wrong here?

Martin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-12 10:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-10 15:52 strace not working with latest git Nylund, Martin
2008-09-11  9:43 ` AW: " Nylund, Martin
2008-09-11 14:00 ` Nylund, Martin
2008-09-12  9:35 ` Paul Mundt
2008-09-12  9:54 ` AW: " Nylund, Martin
2008-09-12 10:39 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox