From owner-svn-src-all@freebsd.org Thu Dec 10 21:18:21 2015 Return-Path: Delivered-To: svn-src-all@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 9F5509D68FE for ; Thu, 10 Dec 2015 21:18:21 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 365441D2B for ; Thu, 10 Dec 2015 21:18:21 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-wm0-x22c.google.com with SMTP id u63so41079753wmu.0 for ; Thu, 10 Dec 2015 13:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xzGXRRTifm57X20kKa2frzGmMlxeMqfopAvtAt0WQXk=; b=va4heJ/lXhSEajKiV5H2MLIw0BgDw8ViHUlIvwsSrDsKnaHBUADf39SlrLuOe4QZTz dENi7px08Znp1unuWT3mtn96D5YftPqJbYjuoWqbNzTqKqU0wmmInM658HxQCBmpmycW IVERj36ehP45g94W0w3FQs7FK1WrEX+nfZLCpLH9LGhM6Nd+gnqErMhprL7+2r9SNNwk xqWflEbEpz+8eDrzpWN0VyUfg7qPTZv8Mk4CzhP7FhYuthQb1k72PF/29ZEMGsQ2a89z 8ma/FGfcRQVubUL4g1AWcl2xBIJ6q/StZpBvvYZfsK7vqFz9++/uScbxKM/ZdK6Ni2lV Fi8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xzGXRRTifm57X20kKa2frzGmMlxeMqfopAvtAt0WQXk=; b=FIqIVV6xVruTA/R8dBgN9p+WdpxPnYBhHtvzrQj7Cm1IIt9Ay6fYjvELGDS71/hmad PW+g8T/JwasWW7yCnzvqwgEgoG0M79HJPfhb0QoSMkpEiusId1axnzUGPrqgHmbH6pmU hJoICnPbx8W7XFtfME2gTc2RtsoXfjQ4yakxeXktSYbnKqGe7OqS+xQXAIzVauMp3w2N Wir5ag3DBCB0+EAVLMQerMewpBLXNEsJRF/G5rAnnzvgq0Gyt2l7/O8do4+AWIawbwLg GvDaIcvo2KzdG0BovE6HNk50OAFdSTF0DqlNovVJjb15jv+X4rfb7MDCJKTT5YXy3OK0 SZ5g== X-Gm-Message-State: ALoCoQlIEKgk9FevKWyWuKdwWE32QDO+OyvVDamghs+0dR8yI7/iBUuDBG8WLehOoalZ97SkVBRRjFgnobKrmi/kFrVhSAyyUYXCi8KnVEEQcfOanuodEHs= MIME-Version: 1.0 X-Received: by 10.194.223.39 with SMTP id qr7mr14832072wjc.63.1449782299658; Thu, 10 Dec 2015 13:18:19 -0800 (PST) Received: by 10.194.85.167 with HTTP; Thu, 10 Dec 2015 13:18:19 -0800 (PST) In-Reply-To: <201511230709.tAN79Z4L062228@repo.freebsd.org> References: <201511230709.tAN79Z4L062228@repo.freebsd.org> Date: Thu, 10 Dec 2015 22:18:19 +0100 Message-ID: Subject: Re: svn commit: r291171 - in head/sys: amd64/amd64 compat/ia32 i386/i386 kern sys From: Oliver Pinter To: Konstantin Belousov Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 21:18:21 -0000 On Mon, Nov 23, 2015 at 8:09 AM, Konstantin Belousov wrote: > Author: kib > Date: Mon Nov 23 07:09:35 2015 > New Revision: 291171 > URL: https://svnweb.freebsd.org/changeset/base/291171 > > Log: > Split kerne timekeep ABI structure vdso_sv_tk out of the struct > sysentvec. This allows the timekeep data to be shared between similar > ABIs which cannot share sysentvec. > > Make the timekeep_push_vdso() tick callback to the timekeep structures > instead of sysentvecs. If several sysentvec share the vdso_sv_tk > structure, we would update the userspace data several times on each > tick, without the change. > > Only allocate vdso_sv_tk in the exec_sysvec_init() sysinit when > sysentvec is marked with the new SV_TIMEKEEP flag. This saves > allocation and update of unneeded vdso_sv_tk for ABIs which do not > provide userspace gettimeofday yet, which are PowerPCs arches right > now. > > Make vdso_sv_tk allocator public, namely split out and export > alloc_sv_tk() and alloc_sv_tk_compat32(). ABIs which share timekeep > data now can allocate it manually and share as appropriate. > > Requested by: nwhitehorn > Tested by: nwhitehorn, pho > Sponsored by: The FreeBSD Foundation > MFC after: 2 weeks Hello Konstantin! Do you plan to MFC back this changes to 10-STABLE in these days? > > Modified: > head/sys/amd64/amd64/elf_machdep.c > head/sys/compat/ia32/ia32_sysvec.c > head/sys/i386/i386/elf_machdep.c > head/sys/kern/kern_sharedpage.c > head/sys/sys/sysent.h > head/sys/sys/vdso.h >