From nobody Tue Sep 28 19:08:09 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2498F17CB7BA; Tue, 28 Sep 2021 19:08:13 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HJptj00jjz4gnP; Tue, 28 Sep 2021 19:08:13 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1632856093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wZLg+E6l+h1wpdB41WKf0iR2T/NaX5cnRq0KZ2MnNl4=; b=ISFbTzGw383wDbXwQ0IkBbXhz5py5xiQpnj6Bn9D0JCodG6OpPc95YjhFXbLirG2pLnZ8l fr0P50lo8Ys4nhB1YAs6xU/KeyR1HWCGqKeUAvbcHA6gnf2i5EIpH0/BVrQ5Dp/XK6ljfA Pft54cKm3SM71hrgth2c4R0iyFL7LYcJU+wcJjeWAx+VwjfjPJqG8IehB81MRR8e7gwJ4q /0Ra72+MKQdD6Rzc1MsMDq7TSoZ0tlW4sZTv661Ay63ey8jIOE/lsvC+0h7mE1d9X73+Jh 7eHht6mN9xPaxrxBenbkw125Kc9q8hWgWHYaJMkR97Z2jHTmj2xoaVJ3glu5QQ== Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id B5575E718; Tue, 28 Sep 2021 19:08:12 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id C629AF9A; Tue, 28 Sep 2021 12:08:11 -0700 (PDT) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 65SQQPzdXWq8; Tue, 28 Sep 2021 12:08:09 -0700 (PDT) To: Mark Millard , Ian Lepore DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com F2184F89 Cc: freebsd-ports@freebsd.org, freebsd-current , Free BSD References: <187B69AF-9465-41DE-BFD0-A4AA0F7F9068@yahoo.com> <0FE65CAD-EDFF-4CE8-8750-BD4F6971CAA0@yahoo.com> From: Bryan Drewery Organization: FreeBSD Subject: Re: I get odd time reports from poudriere on armv7 system, under a (non-debug) main [so: 14] FreeBSD. Message-ID: <5fe9294c-aabb-57ff-73e0-d9ad2d8efcf5@FreeBSD.org> Date: Tue, 28 Sep 2021 12:08:09 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 In-Reply-To: <0FE65CAD-EDFF-4CE8-8750-BD4F6971CAA0@yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4PUY2Owcn9dc6SBJCFPer7297t2JnOLNg" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1632856093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wZLg+E6l+h1wpdB41WKf0iR2T/NaX5cnRq0KZ2MnNl4=; b=ZaAog1V3dq6omVLasewmf5iWGG0gSOd/i7KOg9jD9+APzEfHe7Bd0EhsKVqzly63AAecXk 6xT+PL+8YzL9stbxBlELIGfp3mdki93cuSa4a6yDVXSy91szR1ZvjuORtpma9nBBfz+2C7 2X1lS/CR/oxQrmsmRz6OaR23LG8LtHpp6zeku8t5D/ZApo9V3CuNxFvEMJdCVVwezFlZ3J 6m+oG5CvUBUcc3FcAtJ0l2LlbbWuyXjSmKZ3b0Yyty5U+TdNV7waMiZAx6Bt2KLMpw71IT zDnruaOftlnzH5mdexeQd+RYvA/szqfaW560kJSNYz+2RylLKm2TlWPCpDPRBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1632856093; a=rsa-sha256; cv=none; b=jtl0yIsghlmwDetHR2NYIYdgB5Y55m0iJ21HW0+qqXxc4zmwa34qoVYocifitNUbl4qOBA WrIzavU4SR9kOpA79GvHxD5JosJ+43mNrP+Z0kZoFV9ArpeRYGRTZcIn3glmKc2yXf6PkR Zfd8ax5IoXfxKxLd6yO7v6bdd8kf3qcZQdLW6cG9lFvzpPpv+w6M5OfstJglZk5qPw0w1D 7M/22ERoi8z8jXEuqS15psNVOnwyeQgiKEIj8cd8tmOqeM7A2ZX1BEjDiJG0dpGkIboRxq RndZQxZVLNQngkW9MZ65ILh9V4/EgQ9hKuyNlgSeM2BjFwk8Rk/BLWjs9SEnNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4PUY2Owcn9dc6SBJCFPer7297t2JnOLNg Content-Type: multipart/mixed; boundary="s2lqJLBhwxirULgNtF0GmsE6sRTJO2DTm"; protected-headers="v1" From: Bryan Drewery To: Mark Millard , Ian Lepore Cc: freebsd-ports@freebsd.org, freebsd-current , Free BSD Message-ID: <5fe9294c-aabb-57ff-73e0-d9ad2d8efcf5@FreeBSD.org> Subject: Re: I get odd time reports from poudriere on armv7 system, under a (non-debug) main [so: 14] FreeBSD. References: <187B69AF-9465-41DE-BFD0-A4AA0F7F9068@yahoo.com> <0FE65CAD-EDFF-4CE8-8750-BD4F6971CAA0@yahoo.com> In-Reply-To: <0FE65CAD-EDFF-4CE8-8750-BD4F6971CAA0@yahoo.com> --s2lqJLBhwxirULgNtF0GmsE6sRTJO2DTm Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 9/26/2021 11:05 PM, Mark Millard wrote: > On 2021-Sep-26, at 10:02, Ian Lepore wrote: >=20 >> On Sun, 2021-09-26 at 02:27 -0700, Mark Millard via freebsd-current >> wrote: >>> On 2021-Sep-25, at 23:25, Mark Millard wrote: >>> >>> >>> [...] >>> if (argc =3D=3D 3 && strcmp(argv[2], "-nsec") =3D=3D 0) >>> printf("%ld.%ld\n", ts.tv_sec, ts.tv_nsec); >> >> There are two problems with this, both the seconds and nanos are >> printed incorrectly. The correct incantation would be >> >> printf("%jd.%09ld\n", (intmax_t)ts.tv_sec, ts.tv_nsec); >> >=20 > Thanks Ian for looking into more than I did last night. >=20 > Based on the following (up to possible e-mail white space issues), > poudriere-devel seems t be working for reporting times: >=20 > # more /usr/ports/ports-mgmt/poudriere-devel/files/patch-clock=20 > --- src/libexec/poudriere/clock/clock.c.orig 2021-09-26 22:24:54.735= 485000 -0700 > +++ src/libexec/poudriere/clock/clock.c 2021-09-26 11:46:12.076362000 -= 0700 > @@ -24,6 +24,7 @@ > * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > */ > =20 > +#include > #include > #include > #include > @@ -71,8 +72,8 @@ > } else > usage(); > if (argc =3D=3D 3 && strcmp(argv[2], "-nsec") =3D=3D 0) > - printf("%ld.%ld\n", ts.tv_sec, ts.tv_nsec); > + printf("%jd.%09ld\n", (intmax_t)ts.tv_sec, ts.tv_nsec);= > else > - printf("%ld\n", ts.tv_sec); > + printf("%jd\n", (intmax_t)ts.tv_sec); > return (EXIT_SUCCESS); > } Thanks, I've committed it in my local git. Will push out later. --=20 Bryan Drewery --s2lqJLBhwxirULgNtF0GmsE6sRTJO2DTm-- --4PUY2Owcn9dc6SBJCFPer7297t2JnOLNg Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEE+Rc8ssOq6npcih8JNddxu25Gl88FAmFTaBkFAwAAAAAACgkQNddxu25Gl8/W SwgAjhDhlXXll8wRF30GUWY7TZYYW8Gg079tNVnPksEVKk+XxI0FfzQSpYH+vA2igpFVLEiP2tvN DJHzJwiwZiKC32IsmkHledL79uU45jL/6jlGRbM061p+w0aRpKcYRBTmSNjZJXrGoVAdZBWOqyH1 bNPVtA2Yn0Zs3VhTBof0SJHsAEh/OqtVj3b5dMc6aB7RYvbYlcImacg3oktUp4zKgWl1MSw7/ZBF MU87AKZqtPJFVo6d9wVFI6gdbod0ODmorepZxABn2NRss1NLBVY1pRoj8OLi89FuSc36qHQwmprK wtmroOyJSXD5WsQxsjuwt+4bLL1sNjNeChh8R3qsvQ== =VXtP -----END PGP SIGNATURE----- --4PUY2Owcn9dc6SBJCFPer7297t2JnOLNg--