login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
29
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Benjamin Herrenschmidt
Subject:
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
Date: Monday, April 28, 2008 - 10:06 pm
On Mon, 2008-04-28 at 21:34 -0700, David Miller wrote:
quoted text
> From: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Date: Tue, 29 Apr 2008 13:54:08 +1000 > > > 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... > > It's kind of pointless because what gdb does these days on Linux is > use the procfs 'mem' file to directly read in parts of the inferior's > address space. > > See linux_proc_xfer_partial() in gdb/linux-nat.c=
Good point. That still uses access_process_vm() so Rik and I work is still valid tho. Thanks, Ben. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
PTRACE_{READ,WRITE}{TEXT,DATA}
, Benjamin Herrenschmidt
, (Mon Apr 28, 8:54 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, David Miller
, (Mon Apr 28, 9:34 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Rik van Riel
, (Mon Apr 28, 9:44 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Benjamin Herrenschmidt
, (Mon Apr 28, 10:06 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Benjamin Herrenschmidt
, (Mon Apr 28, 10:06 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Roland McGrath
, (Tue Apr 29, 3:07 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Benjamin Herrenschmidt
, (Tue Apr 29, 5:06 pm)
Re: PTRACE_{READ,WRITE}{TEXT,DATA}
, Roland McGrath
, (Tue Apr 29, 6:32 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate