From 1a8cdc201ed9967a19b2920f980b0022fbf1d9dc Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 16 Mar 2011 19:04:52 -0400 Subject: lttng-instrumentation/lttng-kernel-trace-thread-flag-s390 LTTng Kernel Trace Thread Flag s390 Add a thread flag to activate system-wide syscall tracing. Signed-off-by: Mathieu Desnoyers --- arch/s390/include/asm/thread_info.h | 2 ++ arch/s390/kernel/entry.S | 3 ++- arch/s390/kernel/entry64.S | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'arch/s390') diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index ad1382f7932..637ce13517a 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h @@ -94,6 +94,7 @@ static inline struct thread_info *current_thread_info(void) #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ #define TIF_SECCOMP 10 /* secure computing */ #define TIF_SYSCALL_TRACEPOINT 11 /* syscall tracepoint instrumentation */ +#define TIF_KERNEL_TRACE 12 /* kernel trace active */ #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_31BIT 17 /* 32bit process */ @@ -113,6 +114,7 @@ static inline struct thread_info *current_thread_info(void) #define _TIF_SYSCALL_AUDIT (1<>8 | _TIF_SYSCALL_AUDIT>>8 | \ - _TIF_SECCOMP>>8 | _TIF_SYSCALL_TRACEPOINT>>8) + _TIF_SECCOMP>>8 | _TIF_SYSCALL_TRACEPOINT>>8 | \ + _TIF_KERNEL_TRACE>>8) STACK_SHIFT = PAGE_SHIFT + THREAD_ORDER STACK_SIZE = 1 << STACK_SHIFT diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 9d3603d6c51..7b5255e3b94 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S @@ -55,7 +55,8 @@ _TIF_WORK_SVC = (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_NEED_RESCHED | \ _TIF_WORK_INT = (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_NEED_RESCHED | \ _TIF_MCCK_PENDING) _TIF_SYSCALL = (_TIF_SYSCALL_TRACE>>8 | _TIF_SYSCALL_AUDIT>>8 | \ - _TIF_SECCOMP>>8 | _TIF_SYSCALL_TRACEPOINT>>8) + _TIF_SECCOMP>>8 | _TIF_SYSCALL_TRACEPOINT>>8 | \ + _TIF_KERNEL_TRACE>>8) #define BASED(name) name-system_call(%r13) -- cgit v1.2.3