From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758405AbZCOTgU (ORCPT ); Sun, 15 Mar 2009 15:36:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758345AbZCOTcB (ORCPT ); Sun, 15 Mar 2009 15:32:01 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:56502 "EHLO smtp.polymtl.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758378AbZCOTcA (ORCPT ); Sun, 15 Mar 2009 15:32:00 -0400 Message-Id: <20090315191103.901222737@polymtl.ca> References: <20090315190340.229569867@polymtl.ca> User-Agent: quilt/0.46-1 Date: Sun, 15 Mar 2009 15:03:50 -0400 From: Mathieu Desnoyers To: Ingo Molnar , akpm@linux-foundation.org, Frederic Weisbecker , Steven Rostedt , LKML Cc: Mathieu Desnoyers Subject: [RFC patch 10/21] 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 19:30:28 +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-01-30 11:12:17.000000000 -0500 +++ linux-2.6-lttng/arch/m68k/include/asm/thread_info_mm.h 2009-01-30 11:12:54.000000000 -0500 @@ -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-01-30 11:13:07.000000000 -0500 +++ linux-2.6-lttng/arch/m68k/include/asm/thread_info_no.h 2009-01-30 11:15:16.000000000 -0500 @@ -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<