Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Friday, March 21, 2008 - 6:50 am

On Thu, 20 Mar 2008, Roland McGrath wrote:

What about adding a CONFIG_ARCH_HAS_PTRACE2, which is set by the archs
which are converted. For those which are not you add a fallback
implementation:

#ifndef CONFIG_ARCH_HAS_PTRACE2
static int arch_ptrace2(whatever your favourite interface)
{
	ret = arch_ptrace();
	return do_ugly_fixups(ret);
}
#endif

That way you introduce the new interface and convert one or two archs
initialy without breaking the other 22.

At the same time you mark arch_ptrace() deprecated so it will get the
attention of the arch maintainers pretty fast. Once all archs are
converted we can remove the config flag and the fallback quirk.

Thanks,
	tglx
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Roland McGrath, (Wed Mar 19, 2:20 pm)
[PATCH 7/8] x86 ptrace: arch_ptrace -ENOSYS return, Roland McGrath, (Wed Mar 19, 2:20 pm)
[PATCH 8/8] powerpc ptrace: arch_ptrace -ENOSYS return, Roland McGrath, (Wed Mar 19, 2:21 pm)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Linus Torvalds, (Wed Mar 19, 7:40 pm)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Christoph Hellwig, (Thu Mar 20, 12:40 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Roland McGrath, (Thu Mar 20, 1:16 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Thomas Gleixner, (Fri Mar 21, 6:50 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Christoph Hellwig, (Fri Mar 21, 7:07 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Sam Ravnborg, (Fri Mar 21, 7:10 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Linus Torvalds, (Fri Mar 21, 7:55 am)
Re: [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return, Ingo Molnar, (Fri Mar 21, 8:07 am)