public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RFC: ptrace: Enabling PTRACE_{GET,SET}REGSET calls without CONFIG_HAVE_ARCH_TRACEHOOK
@ 2011-04-01 16:47 Dave Martin
  0 siblings, 0 replies; only message in thread
From: Dave Martin @ 2011-04-01 16:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: Will Deacon, Nicolas Pitre, Ulrich Weigand, Suresh Siddha

Hi all,

I notice in kernel/ptrace.c that the generic regset ptrace calls
PTRACE_GETREGSET and PTRACE_SETREGSET are predicated on
CONFIG_HAVE_ARCH_TRACEHOOK.

However, if I'm reading the code correctly then all these calls
really depend on is regsets implemented in the target arch.

Since I'm separately proposing a regsets implementation for ARM,
it would be nice to enable these ptrace calls; but I don't think
we're ready to enable CONFIG_HAVE_ARCH_TRACEHOOK there for now.

Does anyone know whether it would be safe/straightforward to
change the #ifdef in kernel/ptrace.c to something else,
such as CORE_DUMP_USE_REGSET?  I think all arches which implement
regsets define this, though I haven't researched this thoroughly.

Any views welcome.

Cheers
---Dave

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-01 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 16:47 RFC: ptrace: Enabling PTRACE_{GET,SET}REGSET calls without CONFIG_HAVE_ARCH_TRACEHOOK Dave Martin

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