Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5255850rwl; Sun, 8 Jan 2023 11:25:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsngPm+VTS1dZ+cIRn+NPgxUgjZ9aMeqcwTOMFXmEWtAbS6+hJxBOS2pWG5ClqZXqaqgdNN X-Received: by 2002:aa7:d698:0:b0:498:2f9f:3442 with SMTP id d24-20020aa7d698000000b004982f9f3442mr4477942edr.2.1673205917308; Sun, 08 Jan 2023 11:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673205917; cv=none; d=google.com; s=arc-20160816; b=lI55S450dlYKxL+lp5wqWhH5mN5iFfU0+SET4gBPAQj9TPGvzuEaAif34dwwYzh6sz YjcqDFVBhmWbShJ6h94aPEpnYDxu/SEVot/8wHdtZ923eoUhB0NhBYX5OvRu6/851DJ1 TBKbUnQiomQGUXohQQd7Ti1IF7/8YHUf8AfVO91g+tI9Fy+qC++bUFA/WFFppNwqxSiB qCCOptAUbRGaLdygkkXh9VwnEBadnneent5LQkxW3ISVlQjPJVefN1voNTcXB9egcWSs tAcRLM8XT0vuuTuNMApXK/CqjbN9iIVzDU6vm28ePXNM7/9vDv/mstTlnvYTBlRPy5Rl 3VGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Fy35OIA7dD231ryZrod0YuOrENQ6nEhnCctLtmGOVsU=; b=fnt7VBLf9iYSuD4lTUwXCiWWApRSoqOe8XZ4bcXOnNx4blv47itbXsziahtNsdE5mm NshPkoEBSljIKHxzjMt0+MhAISvfeH/HM0T4+U1ixyKlAjy6ysRmbTa0fc1TSJYTm12z 2BK/U5gNczu2ncRJLdxHFaQP3KMus0FHhqjH8DjJfxWhxKh7ZUrGoQ+FXCwIcqnSz64m 2RtqX0+wvqlrTtKX4YaZAzgyAvrVGWYv0ZaPls3UU9fQS6+v+ZBagf3ssEW1U2S5Uo1C Ik0X0qJ6NPPlEIFNJQKw0T7E1Q9PCh0jYu1NBDiGJOMxg9LGVAxRUV524zc2ljQXkzSY 9yyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=UdEALVT1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f28-20020a50d55c000000b0048e927edec3si7600674edj.272.2023.01.08.11.25.05; Sun, 08 Jan 2023 11:25:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=UdEALVT1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233508AbjAHSrO (ORCPT + 51 others); Sun, 8 Jan 2023 13:47:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbjAHSrL (ORCPT ); Sun, 8 Jan 2023 13:47:11 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A36DEE1E for ; Sun, 8 Jan 2023 10:47:09 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1EE181C0A11; Sun, 8 Jan 2023 19:47:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1673203628; 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=Fy35OIA7dD231ryZrod0YuOrENQ6nEhnCctLtmGOVsU=; b=UdEALVT1yYonfMtThDGq8vHjlmpstL07wfnCTGTQdfXQjy8+/LWgpcFldhn/4JCaQ0mpwN fOPUFqqLyrCulRrKfKHs0RXrwosW6oqOEBy0kEW/SKD18zGf5dV4Jsbp4dxjTUqE8hyMjk pESMuNfN/oeR+aX9zwYXZViuNsVv/m0= Date: Sun, 8 Jan 2023 19:47:07 +0100 From: Pavel Machek To: Geert Uytterhoeven Cc: Theodore Ts'o , kernel list , Andrew Morton Subject: Re: Dhrystone -- userland version Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8dz6Xie3ejRSxA2" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --n8dz6Xie3ejRSxA2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > On Sun, Jan 8, 2023 at 8:40 AM Pavel Machek wrote: > > > > Distributions do not usually carry dhrystone, and I don't think any= one > > > > really maintains it. It is useful tool, and it seems we'll maintain > > > > it. > > > > > > > > I'd like to add enough glue so that it would be runnable from > > > > userspace, too? Userland version is what is actually useful to me, = and > > > > it should not be hard. > > > > > > I don't see whatever message you were replying to, and it doesn't seem > > > to be archived in lore[1], so I'm not sure about the context. But you > > > are talking about the Dhrystone benchmark[2], right? > > > > > > [1] https://lore.kernel.org/all/Y7nyd4hPeXsdiibH@duo.ucw.cz/T/#u > > > [2] https://wiki.cdot.senecacollege.ca/wiki/Dhrystone_howto > > > > > > If so, I'm confused what you mean by "add enough glue so that it would > > > be runnable from userspace" --- Dhrystone is a userspace benchmark, > > > dating from the 1980's, although what it benchmarks is often more abo= ut > > > the compiler than the CPU's performace. > > > > Yes, I'm talking about Dhrystone benchmark. We are carrying > > kernel-only version in lib/dhry_*.c, it is in -next now. > > > > commit cfbd4cc940275240e97f8b922c8f18a44fe15c07 > > Author: Geert Uytterhoeven > > Date: Thu Dec 8 15:31:28 2022 +0100 > > > > lib: add Dhrystone benchmark test > > > > I'd like userspace-too version, at the same place :-). >=20 > So you want to add some glue code to tools/testing/, for building a > userspace version? Yes, that would be the plan. > However, as this is not Linux-specific, how hard can it be to convince > your distro to include https://github.com/qris/dhrystone-deb.git? > Usually, when I have a full userspace available, I just clone the above, > and debuild it myself. Dunno. I'd not solve it if package was in Debian, but it is not. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --n8dz6Xie3ejRSxA2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY7sPqwAKCRAw5/Bqldv6 8hqIAJ4g6x0efgUqfwmdE75AMdaHlarmgQCeKfoVratXPGMtDBIpijeOU+gAgdI= =cVIi -----END PGP SIGNATURE----- --n8dz6Xie3ejRSxA2--