Add a thread flag to activate system-wide syscall tracing. Folded lttng-kernel-trace-thread-flag-sparc64.patch. Signed-off-by: Mathieu Desnoyers --- arch/sparc/include/asm/thread_info_32.h | 2 ++ arch/sparc/include/asm/thread_info_64.h | 3 ++- arch/sparc/kernel/entry.S | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) Index: linux-2.6-lttng/arch/sparc/include/asm/thread_info_32.h =================================================================== --- linux-2.6-lttng.orig/arch/sparc/include/asm/thread_info_32.h 2009-03-15 15:57:04.000000000 -0400 +++ linux-2.6-lttng/arch/sparc/include/asm/thread_info_32.h 2009-03-15 15:57:18.000000000 -0400 @@ -130,6 +130,7 @@ BTFIXUPDEF_CALL(void, free_thread_info, #define TIF_SIGPENDING 2 /* signal pending */ #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ #define TIF_RESTORE_SIGMASK 4 /* restore signal mask in do_signal() */ +#define TIF_KERNEL_TRACE 5 /* kernel trace active */ #define TIF_USEDFPU 8 /* FPU was used by this task * this quantum (SMP) */ #define TIF_POLLING_NRFLAG 9 /* true if poll_idle() is polling @@ -139,6 +140,7 @@ BTFIXUPDEF_CALL(void, free_thread_info, /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<