public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] ptrace: forced_successful_syscall_return() macro
@ 2008-03-19 21:17 Roland McGrath
  2008-03-19 21:17 ` Roland McGrath
                   ` (7 more replies)
  0 siblings, 8 replies; 40+ messages in thread
From: Roland McGrath @ 2008-03-19 21:17 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton
  Cc: linux-arch, tony.luck, linux-ia64, linux-kernel, David Miller,
	linuxppc-dev, Paul Mackerras, sparclinux, Ingo Molnar,
	Thomas Gleixner, Richard Henderson

This adds the forced_successful_syscall_return() macro, a mate to
force_successful_syscall_return() to test rather than set the condition.

Signed-off-by: Roland McGrath <roland@redhat.com>
---
 include/linux/ptrace.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index ebe0c17..9272e63 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -124,8 +124,13 @@ int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data);
  * is a no-op and the spurious error condition needs to be filtered out by some
  * other means (e.g., in user-level, by passing an extra argument to the
  * syscall handler, or something along those lines).
+ *
+ * On architectures that define force_successful_syscall_return(),
+ * forced_successful_syscall_return() should also be defined.
+ * It returns nonzero if force_successful_syscall_return() was just used.
  */
 #define force_successful_syscall_return() do { } while (0)
+#define forced_successful_syscall_return() 0
 #endif
 
 /*

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

end of thread, other threads:[~2008-03-24  7:55 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 21:17 [PATCH 1/8] ptrace: forced_successful_syscall_return() macro Roland McGrath
2008-03-19 21:17 ` Roland McGrath
2008-03-19 21:18 ` [PATCH 2/8] alpha ptrace: forced_successful_syscall_return() Roland McGrath
2008-03-19 21:18   ` Roland McGrath
2008-03-19 21:19 ` [PATCH 3/8] ia64 " Roland McGrath
2008-03-19 21:19   ` Roland McGrath
2008-03-19 21:19 ` [PATCH 4/8] powerpc " Roland McGrath
2008-03-19 21:19   ` Roland McGrath
     [not found]   ` <20080319211936.28E8B26F9A7-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
2008-03-24  7:55     ` Paul Mackerras
2008-03-24  7:55       ` Paul Mackerras
2008-03-19 21:20 ` [PATCH 5/8] sparc64 " Roland McGrath
2008-03-19 21:20   ` Roland McGrath
     [not found]   ` <20080319212001.2DB8526F995-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
2008-03-19 21:30     ` David Miller
2008-03-19 21:30       ` David Miller
     [not found]       ` <20080319.143037.180042261.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-03-19 21:36         ` Roland McGrath
2008-03-19 21:36           ` Roland McGrath
     [not found]           ` <20080319213610.244FC26F995-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
2008-03-19 22:42             ` David Miller
2008-03-19 22:42               ` David Miller
2008-03-19 21:20 ` [PATCH 6/8] ptrace: arch_ptrace -ENOSYS return Roland McGrath
2008-03-19 21:20   ` Roland McGrath
2008-03-20  2:40   ` Linus Torvalds
2008-03-20  2:40     ` Linus Torvalds
2008-03-20  7:40     ` Christoph Hellwig
2008-03-20  7:40       ` Christoph Hellwig
     [not found]     ` <alpine.LFD.1.00.0803191935080.3020-5CScLwifNT1QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2008-03-20  8:16       ` Roland McGrath
2008-03-20  8:16         ` Roland McGrath
     [not found]         ` <20080320081658.0B23826F995-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
2008-03-21 13:50           ` Thomas Gleixner
2008-03-21 13:50             ` Thomas Gleixner
2008-03-21 14:07             ` Christoph Hellwig
2008-03-21 14:07               ` Christoph Hellwig
2008-03-21 14:10             ` Sam Ravnborg
2008-03-21 14:10               ` Sam Ravnborg
2008-03-21 14:55         ` Linus Torvalds
2008-03-21 14:55           ` Linus Torvalds
2008-03-21 15:07           ` Ingo Molnar
2008-03-21 15:07             ` Ingo Molnar
2008-03-19 21:20 ` [PATCH 7/8] x86 " Roland McGrath
2008-03-19 21:20   ` Roland McGrath
2008-03-19 21:21 ` [PATCH 8/8] powerpc " Roland McGrath
2008-03-19 21:21   ` Roland McGrath

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