Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5531897imm; Wed, 12 Sep 2018 07:22:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhMHCKxSeD6BumNtRluaSY6OdPDjZMRGNd/MclKj6TXyVDAsohC9he0M7z5rcKb9XdK03u X-Received: by 2002:a17:902:788a:: with SMTP id q10-v6mr2604402pll.104.1536762134277; Wed, 12 Sep 2018 07:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536762134; cv=none; d=google.com; s=arc-20160816; b=yBGRhp8VtUx6Qm2AntXurG5mrnEd++x3jguTstFaXvmcSnGaGfh7XtKf+UevkFXLsv 4Hqowf2eBasVv+oje85GVjnhCKNXIj8kDleoRfwtI+M/E6HNC5B33Cm9/u122Fkv+Kpa +S7QlPIeUQiyDGsT8C30uM9djN+hX11r8woyVVZcLfQWzxQ2W97MtAfqA2K+hirmmnHf peYZ5s6K7DVwr8D0ZA/PATay2o/3B5bn9DUBovHvXvesBV62E85HHSnmOYn0kFMA952y Oiu3N5ftZFbFPNcqD569jvk2I91VnDG+f3mKvJOx/akpRf83mlHZbaDXxOM+sGKuuY/x AsrA== 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=aZ03/ukYK84mmGeNjLInAULSsJJWc9z1skSbJMQ7K9c=; b=g7IbvoIKsgTkjoUsW6m4u6YQ+ffTfjCKHsth9ezmj8IGrR9PM70pa/GPklP340gt5b Qe2WbBB+tmhxZ0zNorBA4qGyWSmSXWnQypydMrWFpjeqOL0H45D2kGA9LkvSOkE0M6VX jP8g15+ul0WkoWI1nCPQZNZlFoUvHvM/AuYa5BACTsyepY2EaDe045I8CqGlLfxTFus9 niiw9bgo4Lkj2hW0Dgpn6zZML35qh3IqEwBB8RIkVakKy+iJ60eZAZotLEtveKDvo1Lt IcmEaGlciF3fmx2sibOCbkasTTVke5mX61mp/5KPs5J3Eqzk3/4PUc5mJwteaHfvjF3d VHZw== 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 u7-v6si1096929plr.46.2018.09.12.07.21.58; Wed, 12 Sep 2018 07:22:14 -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 S1727534AbeILTZE (ORCPT + 99 others); Wed, 12 Sep 2018 15:25:04 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48754 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726677AbeILTZD (ORCPT ); Wed, 12 Sep 2018 15:25:03 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5498287AA9; Wed, 12 Sep 2018 14:20:20 +0000 (UTC) Received: from oldenburg.str.redhat.com (dhcp-192-212.str.redhat.com [10.33.192.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81E99FA981; Wed, 12 Sep 2018 14:20:16 +0000 (UTC) Subject: Re: [PATCH v3] x86/vdso: Handle clock_gettime(CLOCK_TAI) in vDSO To: Thomas Gleixner Cc: Andy Lutomirski , Matt Rickard , Stephen Boyd , John Stultz , X86 ML , LKML References: <20180901015935.CCF0B18E20A9@virtux64.softrans.com.au> From: Florian Weimer Message-ID: <59403142-1073-3926-65dd-ac55ead357b9@redhat.com> Date: Wed, 12 Sep 2018 16:20:15 +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: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 12 Sep 2018 14:20:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 12 Sep 2018 14:20:20 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'fweimer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/12/2018 04:17 PM, Thomas Gleixner wrote: > On Wed, 12 Sep 2018, Florian Weimer wrote: >> On 09/09/2018 10:05 PM, Thomas Gleixner wrote: >>> See the patch below. It's integrating TAI without slowing down everything >>> and it definitely does not result in indirect calls. >>> >>> On a HSW it slows down clock_gettime() by ~0.5ns. On a SKL I get a speedup >>> by ~0.5ns. On a AMD Epyc server it's 1.2ns speedup. So it somehow depends >>> on the uarch and I also observed compiler version dependend variations. >> >> Does this mean glibc can keep using a single vDSO entrypoint, the one we >> have today? > > We have no intention to change that. Okay, I was wondering because Andy seemed to have proposed just that. > But we surely could provide separate entry points as an extra to avoid a > bunch of conditionals. We could adjust to that, but the benefit would be long-term because it's an ABI change for glibc, and they tend to take a long time to propagate. But I must say that clock_gettime is an odd place to start. I would have expected any of the type-polymorphic multiplexer interfaces (fcntl, ioctl, ptrace, futex) to be a more natural starting point. 8-) Thanks, Florian