From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754713AbbAJUmf (ORCPT ); Sat, 10 Jan 2015 15:42:35 -0500 Received: from mail.skyhub.de ([78.46.96.112]:47975 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754270AbbAJUme (ORCPT ); Sat, 10 Jan 2015 15:42:34 -0500 Date: Sat, 10 Jan 2015 21:42:31 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Denys Vlasenko , Denys Vlasenko , Linux Kernel Mailing List , Linus Torvalds , Oleg Nesterov , "H. Peter Anvin" , Frederic Weisbecker , X86 ML , Alexei Starovoitov , Will Drewry , Kees Cook Subject: Re: [PATCH 3/4] x86: open-code register save/restore in trace_hardirqs thunks Message-ID: <20150110204231.GD12218@pd.tnic> References: <1420734315-30943-1-git-send-email-dvlasenk@redhat.com> <1420734315-30943-4-git-send-email-dvlasenk@redhat.com> <20150109121950.GD13637@pd.tnic> <20150110142336.GC12218@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 10, 2015 at 12:17:13PM -0800, Andy Lutomirski wrote: > I asked this once, and someone told me that push/pop has lower > throughput. I find this surprising. Implicit dependency on %rsp probably. The MOVs allow you to start more stuff out-of-order I'd guess... > Tt could be worth adding a macro along the lines of pushq_cfi_save > that does the pushq_cfi and the CFI_REL_OFFSET. Yep, for balance. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --