From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433Ab2GSXE0 (ORCPT ); Thu, 19 Jul 2012 19:04:26 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:5582 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751956Ab2GSXEY (ORCPT ); Thu, 19 Jul 2012 19:04:24 -0400 X-Authority-Analysis: v=2.0 cv=IOWA+3TG c=1 sm=0 a=s5Htg7xnQOKvHEu9STBOug==:17 a=OpT9cpI26MMA:10 a=kEgnM1vrZgIA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=meVymXHHAAAA:8 a=ayC55rCoAAAA:8 a=SNmshCP3zPXKbJIT_2QA:9 a=PUjeQqilurYA:10 a=jxPKWpqHnu65YFAe:21 a=5FqrB-Tgo15A9pxU:21 a=s5Htg7xnQOKvHEu9STBOug==:117 X-Cloudmark-Score: 0 X-Originating-IP: 72.230.195.127 Message-ID: <1342739063.12353.82.camel@gandalf.stny.rr.com> Subject: Re: [RFC][PATCH 2/4 v4] ftrace/x86: Add save_regs for i386 function calls From: Steven Rostedt To: "H. Peter Anvin" Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Frederic Weisbecker , yrl.pp-manager.tt@hitachi.com Date: Thu, 19 Jul 2012 19:04:23 -0400 In-Reply-To: <50088FD4.4060401@zytor.com> References: <20120711195048.885039013@goodmis.org> <20120711195745.379060003@goodmis.org> <4FFEC58E.5070202@hitachi.com> <1342205273.30075.19.camel@gandalf.stny.rr.com> <1342627145.11900.7.camel@gandalf.stny.rr.com> <50076ED9.3000100@hitachi.com> <1342702344.12353.16.camel@gandalf.stny.rr.com> <1342702682.12353.20.camel@gandalf.stny.rr.com> <50088FD4.4060401@zytor.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.4.3-1 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 On Thu, 2012-07-19 at 15:53 -0700, H. Peter Anvin wrote: > lea is not typically faster than add, but in the case of Atom, it is > done in an earlier pipeline stage (AGU instead of ALU) which means lea > is faster if its inputs are already available as address expressions and > is consumed by address expressions; the goal is to avoid the ALU->AGU > forwarding latency. Well, the question is, which is faster: lea 8(%esp), %esp addl $8, %esp Basically, all we want to do is add 8 to the stack pointer. And this is for the x86_32 version of whatever hardware is in use. -- Steve