Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1714933pxb; Thu, 14 Apr 2022 12:15:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMOOkSLyHc5myHxrtBAFJuVi+knt9GVho8KRlLlrpEJV8199vMDP11lwPzFkSgAb/2VKal X-Received: by 2002:a17:907:7ea1:b0:6e8:9325:c9ce with SMTP id qb33-20020a1709077ea100b006e89325c9cemr3646230ejc.368.1649963745664; Thu, 14 Apr 2022 12:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649963745; cv=none; d=google.com; s=arc-20160816; b=ivD7rbPMhZX4njHGUKOja5SbIvTfLo80iYBcOFPzoKJsteGV7YyHIejn8G6bwBGNZz UyTjISQrwLRUe9IKiLiLTnXvEcr0dY13GaBPImcjFi8ZCub6i1cfAUtKbH1iwvpjfFBh J1jvUzQABnQ6sQ7OZ07mO1G37Pb+su+OJkasXNqyWVN+Bc1v0EROpy2bTR2upqsBtJq4 AcwqpzIdMrRg5NwtRAo/+OB0jQjD+Mb4iBNRsALShaa9NGAT1PjFW6QUC2edzKhnZ1cY ZfQO/vdH+JQRadblWcDX/0qJgwwUqM14UV+Jbh5aWqyJCH+zsJ5HTDTv1BpDwujXonYL rcEw== 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=JTQnWYwm+K2w1D6fUdhMktdLQPW/KE/r7H0OMhsE7DM=; b=CcYflkeW44Wh9+Oi5PTNG2Uzgs6r1w5Vm037aoYII27AhToPPOXLypegIaJiL3e81G aKqtYC6RGf/QH6gYBxr4FFz2R9JlVXtBT9Raf0Py22+A1IFqEO2tocO4XQDtumPo3l9L GDdqTGHdF8iI3yQVQI2E8PUYYCcDSAZggh/5xxnizREehT9u4fISWYOJ9Xmup7pxUZOG Z53qazOPTEc10sFwhCdDEpZC36I/tJYS/bZOQTmDchEZJdZ1bcJvWYmjjX1ePNq1Sx3H SLDzuYEH/d7znlCbdrcTwk58Lw7MV+MGiFanWEdOTQKMn5usA7Dbbg3vkQWEil5N3UM4 yLXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lF4jg8if; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b38-20020a509f29000000b0041cdc45f8c0si4304610edf.483.2022.04.14.12.15.06; Thu, 14 Apr 2022 12:15:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=lF4jg8if; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbiDNQK0 (ORCPT + 99 others); Thu, 14 Apr 2022 12:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359250AbiDNPmv (ORCPT ); Thu, 14 Apr 2022 11:42:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3170C38DBA; Thu, 14 Apr 2022 08:29:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE5A561795; Thu, 14 Apr 2022 15:29:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 259D1C385A1; Thu, 14 Apr 2022 15:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649950190; bh=WVPVOL2y6eFxbWQfAEW3ZH2FbE5I3pqQ3L871DtCH+U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lF4jg8if+tUve0km0+OAhXP7snpbuQprjDVc3UvBJ41Uz9x6xz2t1PwJVvAuk+EIY VrNOgnOaK4JmlMPTjrwg6KxHpXfe4LgaNGyJDkNfWlp0hEhhz+yduD3+dQRELxDuCO jmuBHixmDaUo8Mqw+yxzvk5uWzN1Fhjy+YsRRWUIa+YadNNeyx44XKiXt9Co4TIdmd 9FzjXO6qJfKHE6Wzy+8/F0XMQBbbp84GUTvur1JN8xs5KAwGbZF1QkWYEgkQUNcaOK Bb6JWe5HsHiGhHxn8UAaX4pDQX9vWeC3D6BszYRPt2JqF2PWbWqitWPul62PG+v1wS Z88+CPAKM1KxA== Date: Thu, 14 Apr 2022 08:29:49 -0700 From: "Darrick J. Wong" To: Eric Whitney Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH] common/filter: extend _filter_xfs_io to match -nan Message-ID: <20220414152949.GA17014@magnolia> References: <20220414142258.761835-1-enwlinux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220414142258.761835-1-enwlinux@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On Thu, Apr 14, 2022 at 10:22:58AM -0400, Eric Whitney wrote: > When run on ext4 with sufficiently fast x86_64 hardware, generic/130 > sometimes fails because xfs_io can report rate values as -nan: > 0.000000 bytes, 0 ops; 0.0000 sec (-nan bytes/sec and -nan ops/sec) > > _filter_xfs_io matches the strings 'inf' or 'nan', but not '-nan'. In > that case it fails to convert the actual output to a normalized form > matching generic/130's golden output. Extend the regular expression > used to match xfs_io's output to fix this. > > Signed-off-by: Eric Whitney > --- > common/filter | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/common/filter b/common/filter > index 5fe86756..5b20e848 100644 > --- a/common/filter > +++ b/common/filter > @@ -168,9 +168,9 @@ common_line_filter() > > _filter_xfs_io() > { > - # Apart from standard numeric values, we also filter out 'inf' and 'nan' > - # which can result from division in some cases > - sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; [0-9/:. sec]* ([infa0-9/.]* [EPGMKiBbytes]*\/sec and [infa0-9/.]* ops\/sec)/XXX Bytes, X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/" > + # Apart from standard numeric values, we also filter out 'inf', 'nan', and > + # '-nan' which can result from division in some cases > + sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; [0-9/:. sec]* ([infa0-9/.-]* [EPGMKiBbytes]*\/sec and [infa0-9/.-]* ops\/sec)/XXX Bytes, X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/" /me squints at this regular expression and /thinks/ its ok. Took me a while to figure out "infa" tho. :P Reviewed-by: Darrick J. Wong --D > } > > # Also filter out the offset part of xfs_io output > -- > 2.30.2 >