Messages in this thread Patch in this message | | | Date | Sun, 15 Mar 2009 16:01:54 -0400 | From | Mathieu Desnoyers <> | Subject | [RFC patch 10/20] LTTng Kernel Trace Thread Flag m68k |
| |
Add a thread flag to activate system-wide syscall tracing.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> --- arch/m68k/include/asm/thread_info_mm.h | 1 + arch/m68k/include/asm/thread_info_no.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-)
Index: linux-2.6-lttng/arch/m68k/include/asm/thread_info_mm.h =================================================================== --- linux-2.6-lttng.orig/arch/m68k/include/asm/thread_info_mm.h 2009-03-15 15:57:05.000000000 -0400 +++ linux-2.6-lttng/arch/m68k/include/asm/thread_info_mm.h 2009-03-15 15:57:16.000000000 -0400 @@ -49,6 +49,7 @@ struct thread_info { */ #define TIF_SIGPENDING 6 /* signal pending */ #define TIF_NEED_RESCHED 7 /* rescheduling necessary */ +#define TIF_KERNEL_TRACE 13 /* kernel trace active */ #define TIF_DELAYED_TRACE 14 /* single step a syscall */ #define TIF_SYSCALL_TRACE 15 /* syscall trace active */ #define TIF_MEMDIE 16 Index: linux-2.6-lttng/arch/m68k/include/asm/thread_info_no.h =================================================================== --- linux-2.6-lttng.orig/arch/m68k/include/asm/thread_info_no.h 2009-03-15 15:57:05.000000000 -0400 +++ linux-2.6-lttng/arch/m68k/include/asm/thread_info_no.h 2009-03-15 15:57:16.000000000 -0400 @@ -84,6 +84,7 @@ static inline struct thread_info *curren #define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_MEMDIE 4 +#define TIF_KERNEL_TRACE 5 /* kernel trace active */ #define TIF_FREEZE 16 /* is freezing for suspend */ /* as above, but as bit values */ @@ -92,8 +93,9 @@ static inline struct thread_info *curren #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) #define _TIF_FREEZE (1<<TIF_FREEZE) +#define _TIF_KERNEL_TRACE (1<<TIF_KERNEL_TRACE) -#define _TIF_WORK_MASK 0x0000FFFE /* work to do on interrupt/exception return */ +#define _TIF_WORK_MASK 0x0000FFDE /* work to do on interrupt/exception return */ #endif /* __KERNEL__ */ -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
| |