Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp379903imm; Thu, 13 Sep 2018 01:09:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaMYaUJZCXOAINqX4Uvju8qZzIPeV0Hl4maI4nYENUeOIkEj6vB3Uz++8vkA7x2ew8Hj7pu X-Received: by 2002:a62:9ed1:: with SMTP id f78-v6mr6281168pfk.206.1536826140018; Thu, 13 Sep 2018 01:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536826139; cv=none; d=google.com; s=arc-20160816; b=SoqnN+NRqeEMuMk81e7npdPJ93a4Qsrv6EgRk1razOWKCuM95sjKAnKc6tF6A7VFBR DN9ToSf1yHuQu9Tcytnm7p0bSflBgFvje94dHEh0pp+mwlmExIKlUMakA+BAjWxx98xU QUj1j1VGE+kAb9iUyl2EmPY/OcliveSLrzopDiDHFrBIld382VGvqZDZYMMPwMhqKZ6u flUoyTG6/8yo0yLhfDLplNv9rVrRjk51qDOW41UdxzO+rO+/26IMqXVrjqobH5VCFrPx P3QJGdbkgeUDck/zebxPMQ1J4V59zcL1uAcyD7z/ezQQtLpUbTvVaNs+gQg+E8ckyvZb ZRDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=mKnKAZ7RleV9BEeChN1f5E4MMUvhOiEa6zJdwgB2Wbo=; b=aJcinz91dc11VWvXXflmdPgMZWJLjl4O5ynvH5DI9pdkw6hK7al+iESkEL0p6lSuwL jmFsCOjUuOeRFsn8iA7+Ov0wtisAmf5q94UovG3fn9wnw5ec0ceB2J7mdKyH3K0YrAEZ vukcoEJEgzmS7wfS5fIdEvd/UiDmtMA5MCZRtYRe9JINc2btqOQs3TKyXrh4NqQMWeTF WgvP6RuP7wf+eSzGd/yjHycpZO5bm82M2gWK/AszZOLRsMWk7Vj7zUWkDRYdzwH4rDBf WHwJ9yq9hOAKg/FdGylDeEXPd3jtvMcujAxn5br9Zj62yz19aIUpB8DGS3ei8mnMfUvD yKJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si3436719pfn.363.2018.09.13.01.08.44; Thu, 13 Sep 2018 01:08:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727592AbeIMNPl (ORCPT + 99 others); Thu, 13 Sep 2018 09:15:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46882 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbeIMNPl (ORCPT ); Thu, 13 Sep 2018 09:15:41 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7508D3084043; Thu, 13 Sep 2018 08:07:20 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-49.ams2.redhat.com [10.36.116.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CCC7A5D6AA; Thu, 13 Sep 2018 08:07:15 +0000 (UTC) Subject: Re: [PATCH v3] x86/vdso: Handle clock_gettime(CLOCK_TAI) in vDSO To: Andy Lutomirski , Thomas Gleixner Cc: Andy Lutomirski , Matt Rickard , Stephen Boyd , John Stultz , X86 ML , LKML References: <20180901015935.CCF0B18E20A9@virtux64.softrans.com.au> <59403142-1073-3926-65dd-ac55ead357b9@redhat.com> From: Florian Weimer Message-ID: <0120ea99-fcac-839a-ef8f-1daa74c17bec@redhat.com> Date: Thu, 13 Sep 2018 10:07:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 13 Sep 2018 08:07:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/12/2018 07:11 PM, Andy Lutomirski wrote: >> The multiplexer interfaces need much more surgery and talking about futex, >> we'd need to sit down with quite some people and identify the things they >> actually care about before just splitting it up and keeping the existing >> overloaded trainwreck the same. >> > There’s also the issue of how much the speedup matters. For futex, maybe a better interface saves 3ns, but a futex syscall is hundreds of ns. clock_gettime() is called at high frequency and can be ~25ns. Saving a few ns is a bigger deal. My concern is that the userspace system call wrappers currently do not know how many arguments the individual operations take and what types the arguments have (hence the “type-polymorphic” nature I mentioned). This could be a problem for on-stack argument passing (where you might read values beyond the end of the stack, and glibc avoids that most of the time by having enough cruft on the stack), and for architectures which pass pointers and integers in different registers (like some m68k ABIs do for the return value). Thanks, Florian