]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: make it possible to call do_sigaltstack()
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 28 Jan 2015 17:08:01 +0000 (12:08 -0500)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:30:02 +0000 (15:30 +0100)
DTrace needs to be able to call do_sigaltstack() from its system call
stub code when we're trying to probe that system call.  With the shift
to UEK4, that function was marked static.

Orabug: 20456825

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
include/linux/signal.h
kernel/signal.c

index ab1e0392b5ac1ce89c80dc2bf0e4e4ccc7a736bd..c9c6ef4de09da13a20051d640492c15281b42c9f 100644 (file)
@@ -426,6 +426,7 @@ int unhandled_signal(struct task_struct *tsk, int sig);
 
 void signals_init(void);
 
+int do_sigaltstack(const stack_t __user *, stack_t __user *, unsigned long);
 int restore_altstack(const stack_t __user *);
 int __save_altstack(stack_t __user *, unsigned long);
 
index 35a031d82087da8668902f978125e1c7aeb0126e..7d3de199c1976a6a3a7ab8b933e251a2bb868029 100644 (file)
@@ -3151,7 +3151,7 @@ int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact)
        return 0;
 }
 
-static int
+int
 do_sigaltstack (const stack_t __user *uss, stack_t __user *uoss, unsigned long sp)
 {
        stack_t oss;