Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbbFBUZO (ORCPT ); Tue, 2 Jun 2015 16:25:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40146 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbbFBUZH (ORCPT ); Tue, 2 Jun 2015 16:25:07 -0400 Message-ID: <556E111F.50000@redhat.com> Date: Tue, 02 Jun 2015 22:25:03 +0200 From: Denys Vlasenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Steven Rostedt CC: Ingo Molnar , Linus Torvalds , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86/asm/entry/32: Open-code CLEAR_RREGS. No code changes. References: <1433271842-9139-1-git-send-email-dvlasenk@redhat.com> <20150602153447.330cb569@gandalf.local.home> In-Reply-To: <20150602153447.330cb569@gandalf.local.home> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 27 On 06/02/2015 09:34 PM, Steven Rostedt wrote: > On Tue, 2 Jun 2015 21:04:01 +0200 > Denys Vlasenko wrote: > >> This macro is small, has only four callsites, and one of them is >> slightly different using a conditional parameter. >> >> A few saved lines aren't worth the resulting obfuscation. > > I'm curious, why? Did someone recommend this change? I'm proposing to do this. Of course, I don't expect that any my patch must be accepted. > I don't see it as obfuscation at all. Riddle me this, looking at the current code. What's up with that strange manipulations of %r9 register? Why the code in SYSCALL and SYSENTER entry points is not the same, why "r9 dance" is done only in one of these entry points? -- 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/