[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1209441248.18023.124.camel@pasglop>
Date: Tue, 29 Apr 2008 13:54:08 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Roland McGrath <roland@...hat.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Linux Kernel list <linux-kernel@...r.kernel.org>,
Rik van Riel <riel@...hat.com>
Subject: PTRACE_{READ,WRITE}{TEXT,DATA}
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists