public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PTRACE_{READ,WRITE}{TEXT,DATA}
@ 2008-04-29  3:54 Benjamin Herrenschmidt
  2008-04-29  4:34 ` PTRACE_{READ,WRITE}{TEXT,DATA} David Miller
  2008-04-29 22:07 ` PTRACE_{READ,WRITE}{TEXT,DATA} Roland McGrath
  0 siblings, 2 replies; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2008-04-29  3:54 UTC (permalink / raw)
  To: Roland McGrath; +Cc: David S. Miller, Linux Kernel list, Rik van Riel

Hi Roland, David !

I noticed kernel/ptrace.c has ptrace_readdata/writedata functions that
are only used by sparc and sparc64 which implements the ptrace requests
PTRACE_READ_DATA, PTRACE_WRITE_DATA (and _TEXT variants).

Any reason not to make everybody benefit from these and moving the sparc
implementation to the generic ptrace_request (&compat) ?

It's more efficient than read/writing one word at a time... I thought
about it in the light of some work Rik is doing to make
access_process_vm useable on video ram mappings done by the X server...

If you are ok, I'll do a patch.

Cheers,
Ben


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

end of thread, other threads:[~2008-04-30  1:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29  3:54 PTRACE_{READ,WRITE}{TEXT,DATA} Benjamin Herrenschmidt
2008-04-29  4:34 ` PTRACE_{READ,WRITE}{TEXT,DATA} David Miller
2008-04-29  4:44   ` PTRACE_{READ,WRITE}{TEXT,DATA} Rik van Riel
2008-04-29  5:06     ` PTRACE_{READ,WRITE}{TEXT,DATA} Benjamin Herrenschmidt
2008-04-29  5:06   ` PTRACE_{READ,WRITE}{TEXT,DATA} Benjamin Herrenschmidt
2008-04-29 22:07 ` PTRACE_{READ,WRITE}{TEXT,DATA} Roland McGrath
2008-04-30  0:06   ` PTRACE_{READ,WRITE}{TEXT,DATA} Benjamin Herrenschmidt
2008-04-30  1:32     ` PTRACE_{READ,WRITE}{TEXT,DATA} Roland McGrath

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