mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Portable syscall inspection
@ 2007-05-28 22:59 Trent Waddington
  2007-05-29 12:35 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Trent Waddington @ 2007-05-28 22:59 UTC (permalink / raw)
  To: linux-kernel

Someone finally noticed that my program that uses ptrace only works on i386..
and, by the looks of it, there is no portable way to refer to the
registers of a
user_regs_struct when inspecting a system call.

I will probably end up making a header file for each architecture that
defines where
in the user_regs_struct things like the syscall number, the return
value and the first 3 parameters are..

has anyone done this already?  or can otherwise save me a lot of time?

Thanks,

Trent

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

end of thread, other threads:[~2007-05-31 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-28 22:59 Portable syscall inspection Trent Waddington
2007-05-29 12:35 ` Ralf Baechle
2007-05-31 10:27   ` Trent Waddington

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

all inboxes | Powered by JetHome®