Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756902Ab3CSPgj (ORCPT ); Tue, 19 Mar 2013 11:36:39 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:20855 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756042Ab3CSPgh (ORCPT ); Tue, 19 Mar 2013 11:36:37 -0400 X-Authority-Analysis: v=2.0 cv=UN5f7Vjy c=1 sm=0 a=rXTBtCOcEpjy1lPqhTCpEQ==:17 a=mNMOxpOpBa8A:10 a=dg4Nx7oYL4YA:10 a=5SG0PmZfjMsA:10 a=IkcTkHD0fZMA:10 a=meVymXHHAAAA:8 a=T1sv73n0zC0A:10 a=PYTFLQwZ1FClR4ZP5PYA:9 a=QEXdDO2ut3YA:10 a=jeBq3FmKZ4MA:10 a=rXTBtCOcEpjy1lPqhTCpEQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 74.67.115.198 Message-ID: <1363707396.5938.32.camel@gandalf.local.home> Subject: Re: [PATCH 2/2] tracing: syscall_regfunc() should not skip kernel threads From: Steven Rostedt To: David Howells Cc: Oleg Nesterov , Andrew Morton , Ingo Molnar , Frederic Weisbecker , linux-kernel@vger.kernel.org, "H. Peter Anvin" , linux-arch Date: Tue, 19 Mar 2013 11:36:36 -0400 In-Reply-To: <32387.1363705826@warthog.procyon.org.uk> References: <1363548972.25967.137.camel@gandalf.local.home> <20130317182834.GA22989@redhat.com> <1363546493.25967.129.camel@gandalf.local.home> <20130317190438.GA24582@redhat.com> <32387.1363705826@warthog.procyon.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 21 On Tue, 2013-03-19 at 15:10 +0000, David Howells wrote: > Steven Rostedt wrote: > > > Why? If we remove the tracepoint from the slowpath and use a table swap, > > then we wouldn't need to use the slowpath at all. > > How are you engineering a table swap? Do you patch the system call code to > change the immediate address loaded or do you put in a level of indirection? Patching the call site would probably be the easiest method. We've gotten pretty good at doing that ;-) -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/