From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 2/2] tracing: syscall_regfunc() should not skip kernel threads Date: Tue, 19 Mar 2013 14:27:38 -0700 Message-ID: <5148D84A.3090604@linux.intel.com> 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> <1363707396.5938.32.camel@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com ([143.182.124.37]:25918 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964890Ab3CSV1n (ORCPT ); Tue, 19 Mar 2013 17:27:43 -0400 In-Reply-To: <1363707396.5938.32.camel@gandalf.local.home> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Steven Rostedt Cc: David Howells , Oleg Nesterov , Andrew Morton , Ingo Molnar , Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-arch On 03/19/2013 08:36 AM, Steven Rostedt wrote: > 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 ;-) > Yes, given that the machinery is already there we might as well use it. -hpa