Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6074351rwb; Mon, 14 Nov 2022 13:59:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WiY6Gb7SddGDdjGQPM8ZdQ/cnFoyVyUACtm7YHUSbUi1/NSJ/+y0kqMCVH37o74/Q9i5J X-Received: by 2002:a17:902:6946:b0:186:ba54:f340 with SMTP id k6-20020a170902694600b00186ba54f340mr1075775plt.119.1668463151328; Mon, 14 Nov 2022 13:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668463151; cv=none; d=google.com; s=arc-20160816; b=05tWD3GFNoqr6zpf31MI2MYGTZxBOt4ayQRsRYI1HLcGYb/gMC6FJugPlv1sAjQZiF izsK1zGi7LzuiBKhIdROHzPd5RaeNiLfMShEW41sJUsnBi3z/nhFoZRdvQKdsiijati4 WxeiXNiSmjYNcc4k/es5jeLoubMo0UwXvj1B6dmEVX+wsImAr5pfzKxMbh8qp4lzjaC1 b9ser3n1Ile2DYTt4d5cWngzjml2uIBowUatug28NA45OC9rrlJSGfeE0Gf/qGxtlhsW 8D+pv2VRFlMBZRUDvh0bzOxn1L9s+f2Fs9AFVPDuD4FivdWS4RWkLbdXoSVx5nU0sCFA N5Tg== 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:sender:dkim-signature; bh=F3cNtXN2DB64Euf++r92xZMp5o5c66s1GZnHINfFu+k=; b=ZSGwj5EG5NhgKDo75Blugk/Ok8ru+euK9CPbAgio03UmnQnETpiQ5XkZSoQuzlq2l7 APnegpc6ibdFTTUVPnctVrbw8C49U3UWb/SGhEuOS6cUHey8pJ0SlcE2XrNr7OVRpOgM g0AjcfDCo6SmpAS8mSUFYdK7ZHFq69fCG4DnK3Tl1aFAR5JNIarvP/6emCaaSdwOccvt uhod9bkXsalh7AExJyoEntClUIFX19kRkxnPDLqIKoZvc/Ew3snO4/08GaUWwFo64dAX /qHipaMlTCDgT0jbSzqkP0Y0Q0YaHiz5OXK0mTECYRBR94428CGUaowKQLsOyDl1lGqj a0fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V8q7Aq1D; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170902ccca00b0017f580f64afsi10837160ple.184.2022.11.14.13.58.59; Mon, 14 Nov 2022 13:59:11 -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=@gmail.com header.s=20210112 header.b=V8q7Aq1D; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237054AbiKNVip (ORCPT + 88 others); Mon, 14 Nov 2022 16:38:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbiKNVin (ORCPT ); Mon, 14 Nov 2022 16:38:43 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F7B45F99; Mon, 14 Nov 2022 13:38:43 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id k7so11323097pll.6; Mon, 14 Nov 2022 13:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=F3cNtXN2DB64Euf++r92xZMp5o5c66s1GZnHINfFu+k=; b=V8q7Aq1Da67HmHyjjYKF4mvnaJAwQFZsxa8vqRh7Qu2wfSYg3MBtNjAAx4ue31AYuk bagcYPnIBo5rHRdjT4+VD3n7N1PvjZfwNCCxTJD3isLmrOSTNOcNXDG7ltjvL9JAIaiP afYsNemfGGnr/o6LwRDH+n8RLSnk8Wb/9nT+nldCNkmIRJ/NOHVK2IWZRzamVXVMMUaR OwdvtnTQapzzea4cb8U00v7/OPaEzL/9z8NfHIz3tbnPeUX04Hfk1mght+W+gUOwxaRl vkWZE6SfQviwLqH+urmpFTVI77sNvtVz1OxD0Gq7JvCQaUHc6c3frwCJFpDSBNLv8PTB qY1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F3cNtXN2DB64Euf++r92xZMp5o5c66s1GZnHINfFu+k=; b=CzLZRp2NITdzjvEb2vnPzyDLG/Z1YWgX/2G6RxS7QIGH85AQgE2Oo+cnbvmuoxxPUw ikRqfsVBrBMtT3vwZUSc5l3DF/og/Ifs1JNvG6N1ARH1kfkZ5JnjhKXUsoEqafKty0d4 klcHCNvAaKUERmB1c9rkX+PB64a7UwKSojp4x3WspDFBlL/EefWZWm1LSfFzdniRpPVa j2Ks8ZBLfLJzyQLIWXsofXb4QqR3mzOEEwJum2yJ9W/pvwDK4MiNxHzSR+mNNISe9UDp MKpNt/6huPVE2Ovn0751VjtECp36G7cqsd/PyfIuEnf6aF7cciryNsDdLTBO7Dm9s7xj fqTg== X-Gm-Message-State: ANoB5pktMS6P7rlFbB4C7GkzysNYTMJhMCDwP8hMwnjEyUq72tnty6e7 9a8aSSR0JEHFC9Xg4rsV+nU= X-Received: by 2002:a17:902:b716:b0:17f:8f89:3ee8 with SMTP id d22-20020a170902b71600b0017f8f893ee8mr1058347pls.122.1668461922248; Mon, 14 Nov 2022 13:38:42 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id h23-20020a632117000000b0046ffe3fea77sm6343129pgh.76.2022.11.14.13.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 13:38:41 -0800 (PST) Sender: Tejun Heo Date: Mon, 14 Nov 2022 11:38:40 -1000 From: Tejun Heo To: Breno Leitao Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, shuah@kernel.org, cgroups@vger.kernel.org, leit@meta.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftest/cgroup: Fix gathering number of CPUs Message-ID: References: <20221113114449.18693-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221113114449.18693-1-leitao@debian.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,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 On Sun, Nov 13, 2022 at 11:44:49AM +0000, Breno Leitao wrote: > test_cpuset_prs.sh is failing with the following error: > > test_cpuset_prs.sh: line 29: [[: 8 > 57%: syntax error in expression (error token is "57%") > > This is happening because `lscpu | grep "^CPU(s)"` returns two lines in > some systems (such as Debian unstable): > > # lscpu | grep "^CPU(s)" > CPU(s): 8 > CPU(s) scaling MHz: 55% > > This is a simple fix that discard the second line. > > Signed-off-by: Breno Leitao Applied to cgroup/for-6.1-fixes. Thanks. -- tejun