From owner-svn-src-head@freebsd.org Sat Mar 16 22:37:20 2019 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7409D15402F6 for ; Sat, 16 Mar 2019 22:37:20 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA61677A6C for ; Sat, 16 Mar 2019 22:37:19 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1552774867; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ipznES35NfkF5QH94CJjlMXVGX1GOj0bTOxPV6SrND5JIKwL0tk8LBV79Y5CZb9A9EUkYQj/BDoUx jFXBpuSUxiD8W7nOkLxAKVOTfW/Ar0UxT/Uaz7137csJMMLbVP26kbmq63PnRWsuxAkwg0gT7+wQtj uycnthLuiQCXvjy3FWJ3KejrMeBA/NH7Bhme/Hm8XoZJmUNm04pbMzAzMyhHd/KPxQZuiH9PA9HIvn ixhz3dtzwTlpyVYd1AH5KYt+defkHrrx1vIWOTaUpsYcjg+IxjRoyFflj50eF6WFWzf8ny7dKwVyOR V/GIKTJZV9leSc4iINkj8/YLynC+C6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=OIwK3QKD/S3LLspGD7jQTCr3dbbLwTVwnwlpF0Uh3r0=; b=Vagn28PSurYRhpigbRdw1y+J/BjFWcbg8kcidHo4EhmThS2smmIfpJsLRp0/jwUbfHKjwNW7xMjD6 gEeOg+a7ZdZbyGkbccqqJAHG0LC4MF1K43lKR0mvCJwQqzpPZGeMgAWySfkpes40mw6dGqW3nF3/So 8kCk6PHDsLjR9k1gxFUazjv+rXZQBng4XytleYDtYpLRFqMWXh37GnHXDxYUgp9pHABoYqcdzIkgFS 6Q8wE4q4xv5if0FSyEL9T6zDHNxqpHog1NUZQTJ0DdKXRKIkgJkq9nG6h9Pro7qxNUH7crVIWz3i60 X5a85G/M3zowpKAbdka+1zh5qa93lAA== ARC-Authentication-Results: i=1; outbound2.eu.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=OIwK3QKD/S3LLspGD7jQTCr3dbbLwTVwnwlpF0Uh3r0=; b=WtkYrHBWtXHjs2cNizuTz07+vlgo82iRzEYL2WYwcgPbCc9ntRI88Dx2OLBjlGseALiV+5g92Uf2p OMFV3jNPpcWD2V/GP8NQwtM8IYZ22YfSmC2By9v0KSb4jXdAai+0zS7GxXG4Uy3cSTPdM4EtYgmy7N ezHCW9ws6remJ3hTNz31hnZMkjLPBfzB1WBo/AUXoPjsJ+D/zM8tZNU8QNtfSDH/yb76qHBQgB5m4p uzHayf3cVgppYth7a+FaEkMLqWYw0AW0DUIiYx6oBTXNjTD9mfGRkzXiXn+s/6RaGNmOBXM+BqmUNi paHArB/K/5jAJQxvMOeTf3xVU7BA3AA== X-MHO-RoutePath: aGlwcGll X-MHO-User: c94ec85e-4839-11e9-803b-31925da7267c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id c94ec85e-4839-11e9-803b-31925da7267c; Sat, 16 Mar 2019 22:21:05 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x2GML3bQ057912; Sat, 16 Mar 2019 16:21:03 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <0ea3a53f64016afa9dbc6f1b2d2ee25f09df00b8.camel@freebsd.org> Subject: Re: svn commit: r345238 - head From: Ian Lepore To: Wolfram Schneider , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Date: Sat, 16 Mar 2019 16:21:03 -0600 In-Reply-To: <201903162002.x2GK2vmA013275@repo.freebsd.org> References: <201903162002.x2GK2vmA013275@repo.freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: DA61677A6C X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.993,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 16 Mar 2019 22:37:20 -0000 On Sat, 2019-03-16 at 20:02 +0000, Wolfram Schneider wrote: > Author: wosch > Date: Sat Mar 16 20:02:57 2019 > New Revision: 345238 > URL: https://svnweb.freebsd.org/changeset/base/345238 > > Log: > `make buildkernel' should display the build time in seconds > > PR: 224433 > Approved by: cem > Differential Revision: https://reviews.freebsd.org/D13910 > > Modified: > head/Makefile.inc1 > > Modified: head/Makefile.inc1 > ===================================================================== > ========= > --- head/Makefile.inc1 Sat Mar 16 17:55:22 2019 (r345237) > +++ head/Makefile.inc1 Sat Mar 16 20:02:57 2019 (r345238) > @@ -1584,6 +1584,11 @@ _cleankernobj_fast_depend_hack: .PHONY > > ${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} > ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY > > +# record kernel(s) build time in seconds > +.if make(buildkernel) > +_BUILDKERNEL_START!= date '+%s' > +.endif > + > # > # buildkernel > # > @@ -1640,7 +1645,12 @@ buildkernel: .MAKE .PHONY > @echo "------------------------------------------------------ > --------" > @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C > date`" > @echo "------------------------------------------------------ > --------" > + > .endfor > + @seconds=$$(($$(date '+%s') - ${_BUILDKERNEL_START})); \ > + echo -n ">>> Kernel(s) build for${BUILDKERNELS} in $$seconds > seconds, "; \ > + echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make > -j/}" > + @echo "------------------------------------------------------ > --------" > > NO_INSTALLEXTRAKERNELS?= yes > > Does this really report the buildkernel time, or the time from when make starts until when the kernel portion of the make finishes? Will the result be right when you do "make buildworld buildkernel"? -- Ian