Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4753304rwl; Sun, 8 Jan 2023 02:35:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXssz3CwH73d1TxdSwurgpfHdh3NC6Q3h6S3WuBWqHUzIYydptxSiS/uRx9yayLtXK7X6Ouy X-Received: by 2002:a05:6a20:bfc3:b0:ad:94d0:ac97 with SMTP id gs3-20020a056a20bfc300b000ad94d0ac97mr70755602pzb.48.1673174133604; Sun, 08 Jan 2023 02:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673174133; cv=none; d=google.com; s=arc-20160816; b=XNDVRvptyJqZf9ghZdTOqEcWH+laHgzzLLX8VHiM4ZXoWk4ysdXiVbnw3p2ysw/BJl fzeo6oLAcR+HYqTskZozFWiKQu+TFbYfsI8KFR8aJ9Ek4RecJSA0DovJVLNssMKAJg/s euTSQU5EesYX0/Ldql9BDooCIbSeHx8AntbG4lZcgBUw5Eo7Vk0WOF90cuyuPv8+54dv ma4HkBOSYFoEL4/E63uQw2Y7O0izMblfzlluWIfLG2tlObcDAVMyenP2MMV/53Khljrq cHWp0w/P9AEd/6qB1B5x7eBqRZEfrMXBdvZ4Bh49Bms33HJ3ByFijoW4NC/6X0DDn14p s/4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=e2B9MnY4Z0fXaBruSpv14G2A2gTAMp4GjLVqp6oCb+0=; b=hPjXqS5prc7Bjj55ZaNMIY4JdXrI+rNuwC9Q4OVnlCcu7GKFRfRvAZUAEc410Bg2Dg hOTKCz8wXC2m7t+ldr+o8yGauxlvrFT3gY/xFm5Qikv/AAAKXvSI42b0OwQlc8Bghnob SS2093uUqUg3CCjsb3JCP0KwCFZuiqx5nx0XlGzzQtzQBP0Kr1WoFJgAaKEhklODNLQy UqIX9gZNCzM/NOVq9acGgG/JwiaVGRPwihqDtqKynXSR0i0K1biVH0hAX/8L3cbIS8H/ DjOPICA2zbNiqFS324dyegDMAujVBDsWOC6lRdKMaTXdiQ6RxEl5Z47yEiPVVhyIPPOp hSGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a63130e000000b0049f1702457bsi7239217pgl.685.2023.01.08.02.35.26; Sun, 08 Jan 2023 02:35:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232955AbjAHJ7L (ORCPT + 53 others); Sun, 8 Jan 2023 04:59:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjAHJ7I (ORCPT ); Sun, 8 Jan 2023 04:59:08 -0500 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D791B7DD for ; Sun, 8 Jan 2023 01:59:06 -0800 (PST) Received: by mail-qt1-f177.google.com with SMTP id c7so5657566qtw.8 for ; Sun, 08 Jan 2023 01:59:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e2B9MnY4Z0fXaBruSpv14G2A2gTAMp4GjLVqp6oCb+0=; b=8LCUQlGzPC+BIKx26XU+DS/Jj0jBiLs2/qZLCxqesAg9lB9tT/TSdd3OwfaykfrrDM a877J+lcVT402ZIwzX41TAtk3IyjzbhekC6XNvkwICJ+eQEoQl5xd/vrkjngOFkMRqGS QyAjR9hSgV25U++4SDku0XdLlEtFGy5r+e0wrkfuGx+dvayDBinEQWC1U/x5LQdr/ou9 U7tLM+HloajEOl0/h4KmO11lLEUb7H8aDam+CPR6N4JBQBdWyd8sDTPDKb0PZ+KQMSmT XjOsX9iPp5N0dOf+MtI0dI5c7wLisqP9fJzzO3NBiHVsP8YBKYg+RrG2qOnekpEMwBt/ UVrA== X-Gm-Message-State: AFqh2kr8cCtDy8akdAUzAkn3kbRZh40qldR5cbRLnrMkWsN37MItmOpC YuzDCDwd7JbVw35bVDAEIhNczWBjlGUMqw== X-Received: by 2002:ac8:4d1d:0:b0:3a7:e1aa:727c with SMTP id w29-20020ac84d1d000000b003a7e1aa727cmr77814951qtv.17.1673171945577; Sun, 08 Jan 2023 01:59:05 -0800 (PST) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id o5-20020a05620a2a0500b006fcc437c2e8sm3540006qkp.44.2023.01.08.01.59.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jan 2023 01:59:05 -0800 (PST) Received: by mail-yb1-f182.google.com with SMTP id o75so6078141yba.2 for ; Sun, 08 Jan 2023 01:59:04 -0800 (PST) X-Received: by 2002:a25:d243:0:b0:702:90b4:2e24 with SMTP id j64-20020a25d243000000b0070290b42e24mr4322992ybg.365.1673171944632; Sun, 08 Jan 2023 01:59:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Sun, 8 Jan 2023 10:58:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Dhrystone -- userland version To: Pavel Machek Cc: "Theodore Ts'o" , kernel list , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hi Pavel, On Sun, Jan 8, 2023 at 8:40 AM Pavel Machek wrote: > > > Distributions do not usually carry dhrystone, and I don't think anyone > > > 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 about > > 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 :-). So you want to add some glue code to tools/testing/, for building a userspace version? 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. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds