From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758832AbZCOTfx (ORCPT ); Sun, 15 Mar 2009 15:35:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758272AbZCOTcA (ORCPT ); Sun, 15 Mar 2009 15:32:00 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:56498 "EHLO smtp.polymtl.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758340AbZCOTb7 (ORCPT ); Sun, 15 Mar 2009 15:31:59 -0400 Message-Id: <20090315191105.438901940@polymtl.ca> References: <20090315190340.229569867@polymtl.ca> User-Agent: quilt/0.46-1 Date: Sun, 15 Mar 2009 15:04:00 -0400 From: Mathieu Desnoyers To: Ingo Molnar , akpm@linux-foundation.org, Frederic Weisbecker , Steven Rostedt , LKML Cc: Mathieu Desnoyers Subject: [RFC patch 20/21] LTTng Kernel Trace Thread Flag xtensa Content-Disposition: inline; filename=lttng-kernel-trace-thread-flag-xtensa.patch X-Poly-FromMTA: (test.casi.polymtl.ca [132.207.72.60]) at Sun, 15 Mar 2009 19:30: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/xtensa/include/asm/thread_info.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-2.6-lttng/arch/xtensa/include/asm/thread_info.h =================================================================== --- linux-2.6-lttng.orig/arch/xtensa/include/asm/thread_info.h 2009-01-09 18:15:54.000000000 -0500 +++ linux-2.6-lttng/arch/xtensa/include/asm/thread_info.h 2009-01-09 18:17:49.000000000 -0500 @@ -133,6 +133,7 @@ static inline struct thread_info *curren #define TIF_IRET 4 /* return with iret */ #define TIF_MEMDIE 5 #define TIF_RESTORE_SIGMASK 6 /* restore signal mask in do_signal() */ +#define TIF_KERNEL_TRACE 7 /* kernel trace active */ #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_FREEZE 17 /* is freezing for suspend */ @@ -141,11 +142,12 @@ static inline struct thread_info *curren #define _TIF_NEED_RESCHED (1<