Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752590AbaFFVpO (ORCPT ); Fri, 6 Jun 2014 17:45:14 -0400 Received: from mail-vc0-f176.google.com ([209.85.220.176]:61172 "EHLO mail-vc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458AbaFFVpM (ORCPT ); Fri, 6 Jun 2014 17:45:12 -0400 MIME-Version: 1.0 In-Reply-To: <539235C5.1030002@zytor.com> References: <201406042235.s54MZgwP020553@terminus.zytor.com> <20140606140017.afb7f91142f66cb3dd13c186@linux-foundation.org> <53922F74.20406@linux.intel.com> <539231B8.8000400@zytor.com> <53923490.2060407@zytor.com> <539235C5.1030002@zytor.com> From: Andy Lutomirski Date: Fri, 6 Jun 2014 14:44:51 -0700 Message-ID: Subject: Re: [GIT PULL] x86/vdso changes for v3.16 To: "H. Peter Anvin" Cc: "H. Peter Anvin" , Linus Torvalds , Andrew Morton , Cyrill Gorcunov , Linux Kernel Mailing List , Ingo Molnar , Sasha Levin , Stefani Seibold , Thomas Gleixner , Pavel Emelyanov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 6, 2014 at 2:42 PM, H. Peter Anvin wrote: > On 06/06/2014 02:39 PM, Andy Lutomirski wrote: >>> >>> For accessing memory members doing it via a pointer is pretty much TRT, >>> but for things that might be in register it is undesirable to force it >>> out to memory. >> >> Do you also believe in the folklore that GCC can optimize code >> sequences like the things in that header? Because I'm pretty sure >> that no clang or gcc version I've ever seen can do it. >> > > I have seen gcc do some pretty sophisticated memory elision lately. > Don't know if that includes byte swaps. > >> On the other hand, even a factor of ten in the time it takes to run >> vdso2c is completely irrelevant. > > Yep, as I noted in the patch I sent (which is broken - updated one > included here.) Acked-by: Andy Lutomirski The generated vdso-image-*.c files are identical. --Andy > > -hpa > -- Andy Lutomirski AMA Capital Management, LLC -- 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/