Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759984Ab2HIXQd (ORCPT ); Thu, 9 Aug 2012 19:16:33 -0400 Received: from mga14.intel.com ([143.182.124.37]:51276 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754131Ab2HIXQb (ORCPT ); Thu, 9 Aug 2012 19:16:31 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.77,742,1336374000"; d="scan'208";a="178971484" Message-ID: <502444CC.8030906@linux.intel.com> Date: Thu, 09 Aug 2012 16:16:28 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Steven Rostedt CC: Mathieu Desnoyers , LKML , Linus Torvalds , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , Avi Kivity , Christoph Hellwig , Andrew Morton Subject: Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections References: <1344544823.6935.82.camel@gandalf.stny.rr.com> <20120809205053.GB15109@Krystal> <1344551131.6935.90.camel@gandalf.stny.rr.com> In-Reply-To: <1344551131.6935.90.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 25 On 08/09/2012 03:25 PM, Steven Rostedt wrote: >> >> It might be better to improve gcc to move really cold branches out of >> line (really, really far away), and use the compiler to do this, rather >> than to use an extra indirection that adds bloat and complexity to the >> kernel. > > I think modifying gcc is something that can help more than tracing. But > that's been a pipe dream for such a long time that I've started dreaming > about winning a gold medal in the Olympics instead. Standing on the > podium listening to the crowd chanting your name along with your country > is more fun to dream about than seeing your unlikely code stop becoming > hurdles for the CPU sprinters. > At one point, maybe, but lately we have had a lot more traction from the gcc developers, giving us features like __fentry__ and asm goto. -hpa -- 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/