From owner-svn-src-head@freebsd.org Tue Sep 5 02:09:05 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B65FBE0CE01 for ; Tue, 5 Sep 2017 02:09:05 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66DF46C0D1 for ; Tue, 5 Sep 2017 02:09:05 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-vk0-x22a.google.com with SMTP id x85so4343145vkx.5 for ; Mon, 04 Sep 2017 19:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PZlbbSXyg5FXFyMjDVbgcafz0NebEsQDtHiptOcWxEI=; b=I7EO6XT6HNpp3fkkJ84DikGANJyI0KPrNgxc685zZpa+uOICUf59m1Cr9Nt+P9SSb7 PKp6FS2igDNvvFoR+2t/t+ON56S+vHI7MH4N7YOaPVt6iqk+TmrSwo4pTVPo+vfhuDOI dhwO7gFZ0nA9XOMT7GMnCUcY4IUljzMiyAQwjK5+L2qJidA00abI0NWYFk598aYjwh9T hWuFHphETwu8J70Bq/tqQ3zf+rwP2B67C2nruQ65Cs3ewgVdHL4U37xxKhznZi8dgjpI aLyGhOWR6bRF5CwP+c+fW+x3v8A3Lna2O+aa65wpv1KU5v0eCAife9G8TCPOrVnTbxWD Cwnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PZlbbSXyg5FXFyMjDVbgcafz0NebEsQDtHiptOcWxEI=; b=AitDreS5ys1BUDaNAfjkL/Hly4HuZAFOyHLKj6mrZtJD8yNCZc/erhuBhRBCgNJNQe EpzrZRJRPtXYQ2A9SjrjW5Ssy8wlJLJ4UQiwOtW8317rnDeGDw5GD88+CkgOIKNxYXB2 F7k8p7zMpg2LrGW/JFJAF/+jez+poCnvbvY8ur3Y5l86HMfpwW3g4HoCLHw4s3fTaG8l j07eFHZGcpYRJAIIfO3ig2UklpGxu/B5L8ng5WUdgrLOdFLStEhLbCYrk1bp1civ4nZE mHvDbLLPzFz5HONo1JRB/eK1XlDlzVOePeYlNQUWauWJJXJy/7jlLyWFPdWAaFaZGx2o YH7Q== X-Gm-Message-State: AHPjjUjjNkHPVVs1cfcpE5oDKx5z0GlRD2ct1aYuNyCjixf4GStodUVG cbAPVczItdMz2k0IUkw2snEBQ4sGxoV4 X-Google-Smtp-Source: ADKCNb4fr0AlitIyFGgkuoHzcO+1JEpW9u69KdOKquLIQT66PWO3L0cqA6lDzGzBOcCy5E4oBXPq4cK4t14nYobxA6A= X-Received: by 10.31.178.78 with SMTP id b75mr1395107vkf.30.1504577344264; Mon, 04 Sep 2017 19:09:04 -0700 (PDT) MIME-Version: 1.0 Sender: sobomax@sippysoft.com Received: by 10.176.6.137 with HTTP; Mon, 4 Sep 2017 19:09:03 -0700 (PDT) In-Reply-To: References: <201701161746.v0GHkcPX071529@repo.freebsd.org> From: Maxim Sobolev Date: Mon, 4 Sep 2017 19:09:03 -0700 X-Google-Sender-Auth: DJPcAdL4BWXF8PJiAzKGtUxOAOw Message-ID: Subject: Re: svn commit: r312296 - in head: lib/libc/sys sys/kern sys/netinet sys/netinet6 sys/sys tools/regression/sockets/udp_pingpong tools/regression/sockets/unix_cmsg To: Alan Somers Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 02:09:05 -0000 Sure, I'll check that out. Thanks for heads up. -Max On Sun, Sep 3, 2017 at 8:18 PM, Alan Somers wrote: > On Mon, Jan 16, 2017 at 10:46 AM, Maxim Sobolev > wrote: > > Author: sobomax > > Date: Mon Jan 16 17:46:38 2017 > > New Revision: 312296 > > URL: https://svnweb.freebsd.org/changeset/base/312296 > > > > Log: > > Add a new socket option SO_TS_CLOCK to pick from several different > clock > > sources to return timestamps when SO_TIMESTAMP is enabled. Two > additional > > clock sources are: > > > > o nanosecond resolution realtime clock (equivalent of CLOCK_REALTIME); > > o nanosecond resolution monotonic clock (equivalent of > CLOCK_MONOTONIC). > > > > In addition to this, this option provides unified interface to get > bintime > > (equivalent of using SO_BINTIME), except it also supported with IPv6 > where > > SO_BINTIME has never been supported. The long term plan is to > depreciate > > SO_BINTIME and move everything to using SO_TS_CLOCK. > > > > Idea for this enhancement has been briefly discussed on the Net session > > during dev summit in Ottawa last June and the general input was > positive. > > > > This change is believed to benefit network benchmarks/profiling as well > > as other scenarios where precise time of arrival measurement is > necessary. > > > > There are two regression test cases as part of this commit: one > extends unix > > domain test code (unix_cmsg) to test new SCM_XXX types and another one > > implementis totally new test case which exchanges UDP packets between > two > > processes using both conventional methods (i.e. calling > clock_gettime(2) > > before recv(2) and after send(2)), as well as using > setsockopt()+recv() in > > receive path. The resulting delays are checked for sanity for all > supported > > clock types. > > > > Reviewed by: adrian, gnn > > Differential Revision: https://reviews.freebsd.org/D9171 > > While the new SCM_TIMESTAMP code works fine on both amd64 and i386, it > doesn't work on amd64 under 32-bit emulation. That is, programs that > use SCM_TIMESTAMP built for i386 will fail when run on an amd64 > machine. I don't know whether this commit introduced that bug; on > stable-10 SCM_TIMESTAMP doesn't appear to work at all on i386. But > sobomax, since you're obviously familiar with this code, would you > mind taking a look? > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222039 > > -Alan > >