From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758375AbZCOUZy (ORCPT ); Sun, 15 Mar 2009 16:25:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755007AbZCOUZm (ORCPT ); Sun, 15 Mar 2009 16:25:42 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:58941 "EHLO smtp.polymtl.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756442AbZCOUZl (ORCPT ); Sun, 15 Mar 2009 16:25:41 -0400 Message-Id: <20090315200506.290420044@polymtl.ca> References: <20090315200144.017321577@polymtl.ca> User-Agent: quilt/0.46-1 Date: Sun, 15 Mar 2009 16:01:54 -0400 From: Mathieu Desnoyers To: Ingo Molnar , akpm@linux-foundation.org, Frederic Weisbecker , Steven Rostedt , LKML Cc: Mathieu Desnoyers Subject: [RFC patch 10/20] LTTng Kernel Trace Thread Flag m68k Content-Disposition: inline; filename=lttng-kernel-trace-thread-flag-m68k.patch X-Poly-FromMTA: (test.casi.polymtl.ca [132.207.72.60]) at Sun, 15 Mar 2009 20:24:30 +0000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a thread flag to activate system-wide syscall tracing. Signed-off-by: Mathieu Desnoyers --- 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<