From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756120AbZEJXGk (ORCPT ); Sun, 10 May 2009 19:06:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752329AbZEJXGa (ORCPT ); Sun, 10 May 2009 19:06:30 -0400 Received: from mx1.redhat.com ([66.187.233.31]:58584 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbZEJXG3 (ORCPT ); Sun, 10 May 2009 19:06:29 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Mathieu Desnoyers X-Fcc: ~/Mail/linus Cc: akpm@linux-foundation.org, Ingo Molnar , linux-kernel@vger.kernel.org, "Frank Ch. Eigler" , Jason Baron , Tom Zanussi , fweisbec@gmail.com, laijs@cn.fujitsu.com, rostedt@goodmis.org, peterz@infradead.org, jiayingz@google.com, mbligh@google.com Cc: Oleg Nesterov Subject: Re: [RFC patch 00/20] Kernel tracing thread flag In-Reply-To: Mathieu Desnoyers's message of Saturday, 9 May 2009 12:22:09 -0400 <20090509162209.217414024@polymtl.ca> References: <20090509162209.217414024@polymtl.ca> X-Shopping-List: (1) Despotic seduction string-art (2) Ostentatious detention (3) Judicious prostitutes (4) Spurious homogeneous beef Message-Id: <20090510230435.B0E94FC35D@magilla.sf.frob.com> Date: Sun, 10 May 2009 16:04:35 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I suspect you will hit troubles with some arch's not having a bit to spare. (Even on x86, it probably hurts several bytes of cache wastage to have to use longer immediates in some 'test' instructions.) Another direction to go for this is overloading TIF_SYSCALL_TRACE, so we do not need any arch changes. Before the end of the ptrace cleanup work that Oleg is in the middle of, it should become simple to divorce ptrace's own bookkeeping from TIF_SYSCALL_TRACE. At that point, we just need a little bit of cooperation (in generic non-arch code) to overload that bit for multiple simultaneous purposes. Thanks, Roland