Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp830959imm; Thu, 13 Sep 2018 08:22:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYTwEREn/DN00iEm/ag1b1WgmM4DumlsAp7vucsb41auAQR816WF3NXqA4i3tQVm20HRAJH X-Received: by 2002:a62:f40a:: with SMTP id r10-v6mr7963557pff.47.1536852171726; Thu, 13 Sep 2018 08:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536852171; cv=none; d=google.com; s=arc-20160816; b=D6mzj+dtbkNP6KA589sh5OLLAEPD0O6H8pV/U4/t3fCuBgr3jsjOaW5igq3gvwt1sW NzdkuIv1Yg5V1D1rL4kASZ5oHqMi3dPyR+Od71k0uAMuqEfDVBeMHvDcmCukqH477Ic8 v6M1rKgLP+WIHDYfAXOVfpWgAlrnUZhS+4uHb2jTcLbp9AtN2d0b/7nYhJ7ge6z7zcLX YE9Xzf6S2/Ks9KRjEZftrwREsdL/BIaTBGMwsbnyNJ3n32WFNqoFTo3WF9+H6KifUhCu Ym/1nlX2txPW8RRT3S4mhAR7q4F4fcBQQhm1BTds0pBwYoWfdCFOJ97CpSCXtCUnVKYM fmdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=jL23avSdA6tKIdPG6xoqxEoyLoaSgmpxu2m+v+RAclA=; b=GgvPBkZeGXqQHcHg51Fc78DXHUSprO1qbeZLlGp0RIVnv0WJqCEUW4WFzPamXbyYS6 NaZizL4yGPUvQfELJVHRSWONOgMd0l5txx/RiCfalvcfvvRkg1SsdLIWrFW/RVVx/qvU d2tBeUN0k8Y1KhMhDfTPJEwcphaWgMl9TadeuIiu6kGhI5ZktyarCERu5eLar+pD0r0C eYOeZZd8D/0sAsDMMwFT7RS3jCurETJEQ7qY0Wt7i4twx+R211CS01dSb/yzFr7qH/z5 +luPv1C6IIHekBCy6IOcMu44Ol2fnyGiCIKOQ+KGxIT15cTGHdh8FRdwKrD7di/bhXrx 18hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="iu/OAsGX"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si4486266pgi.12.2018.09.13.08.22.20; Thu, 13 Sep 2018 08:22:51 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="iu/OAsGX"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728325AbeIMUcI (ORCPT + 99 others); Thu, 13 Sep 2018 16:32:08 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38784 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbeIMUcI (ORCPT ); Thu, 13 Sep 2018 16:32:08 -0400 Received: by mail-pg1-f194.google.com with SMTP id t84-v6so2908152pgb.5 for ; Thu, 13 Sep 2018 08:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jL23avSdA6tKIdPG6xoqxEoyLoaSgmpxu2m+v+RAclA=; b=iu/OAsGXq7oYXbLdTKYVoRtqdw8OM59Ngqh4h+UhBSUUO9y75dkwTEFeEI6KK9RA1/ 7WQ79DfSVVwSC+GMBtK/5rHPhJ8NOJI5hP3nnNJwqQ11aCwZj1z6XSNancgE6n0VM3w1 Ke8X/F2OoVp30Q8rzwV1KeTbb2AclaLiHQ2Wgrwby7eqXukyAdDvsBOYMHmKem1PlWSb fRYJtfI6MT2pK5fbPQdfSFmft7OPHKzQCx0FQBJuEqkqlWdZye/gNfjbA21xIcN3wqOw GEf/p4WxIAp9gVu4XIiSrlLzGIXppo1v+YdM3ivpiD990Hl948c3KY2eXqwJt3AqOQjV PsAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jL23avSdA6tKIdPG6xoqxEoyLoaSgmpxu2m+v+RAclA=; b=CFrfOPC71ilFps1HqCy5qS7lR7RCAE8ewPZ8QoRomWTjDxZ/b0cavT6sT4Hr0JL+h+ KY2BvvugqRz4Zwvl1OFJ9gxBdfWK440m4mQuLXCBi959wlMjw4xBJvkAOe2R+PEaDaQP pdfH25KKrOoetFMGRPRwOQSP2FD+156FK4hzwZqV7IW+AzuMZ6JpOcKffM8a02ybm3XQ l/Y0Fa2xrOu9CfD0/6S+2ixYnK7Q/8yb0IsmjxqRXbWRY8cZQJskTknaQ5SSMspb85BP G+44V+qiGe0Yq9j56aCh7DmDU2WI/KkF1eyXKUnfiLp2086O3KLChkex+gvZheyvUaNx 8qkQ== X-Gm-Message-State: APzg51AcbpFcbvtjBiIjm3E7C1E2MIZSFapuGvhjYq0+mUH7U4Xul2ze M1TM4FKn4qKCkmVP/HBiwpsJnw== X-Received: by 2002:a62:63c2:: with SMTP id x185-v6mr7923735pfb.13.1536852129329; Thu, 13 Sep 2018 08:22:09 -0700 (PDT) Received: from ?IPv6:2601:646:c200:7429:fd17:5d5e:81e2:8081? ([2601:646:c200:7429:fd17:5d5e:81e2:8081]) by smtp.gmail.com with ESMTPSA id e26-v6sm5373587pfi.70.2018.09.13.08.22.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 08:22:08 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v3] x86/vdso: Handle clock_gettime(CLOCK_TAI) in vDSO From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: <0120ea99-fcac-839a-ef8f-1daa74c17bec@redhat.com> Date: Thu, 13 Sep 2018 08:22:07 -0700 Cc: Thomas Gleixner , Andy Lutomirski , Matt Rickard , Stephen Boyd , John Stultz , X86 ML , LKML Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180901015935.CCF0B18E20A9@virtux64.softrans.com.au> <59403142-1073-3926-65dd-ac55ead357b9@redhat.com> <0120ea99-fcac-839a-ef8f-1daa74c17bec@redhat.com> To: Florian Weimer Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 13, 2018, at 1:07 AM, Florian Weimer wrote: >=20 > On 09/12/2018 07:11 PM, Andy Lutomirski wrote: >>> The multiplexer interfaces need much more surgery and talking about fute= x, >>> we'd need to sit down with quite some people and identify the things the= y >>> actually care about before just splitting it up and keeping the existing= >>> overloaded trainwreck the same. >>>=20 >> There=E2=80=99s 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 n= s is a bigger deal. >=20 > My concern is that the userspace system call wrappers currently do not kno= w how many arguments the individual operations take and what types the argum= ents have (hence the =E2=80=9Ctype-polymorphic=E2=80=9D 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 b= y having enough cruft on the stack), and for architectures which pass pointe= rs and integers in different registers (like some m68k ABIs do for the retur= n value). >=20 >=20 Isn=E2=80=99t clock_gettime already special because of the vDSO entry point,= though?=