Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp785142pxf; Thu, 1 Apr 2021 13:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX4uSvRLWJlQvKplLqrOr36A7qlSbDd16hjiORSxSuz9Ps5yeeQNIZk24YaoH5CCVJvPfu X-Received: by 2002:a05:6e02:60c:: with SMTP id t12mr9040156ils.304.1617309131215; Thu, 01 Apr 2021 13:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617309131; cv=none; d=google.com; s=arc-20160816; b=muERdYG62o72DwJ6x8YCg4WrPZ796Dt5uh+AS0Ag3GoThgyOq0ycY5JKDxjlQ/cBNe ZcH44Z4ZUKkL5Ka3iOArb5kmDih/k/g+mqZug7cbP/oCe/mIN3G3WQxbWiuxyimCBUvk QYRAX568dwkP+B+s2SRpMia3PAaed2Gbxueupktw5lQ2cZ2iWFEW0ghoydiz7ReILbFM Xc6SBc6sNGMefiyhfKuqWg0yJvloW0Zl8+nBROqLnehByVWiIx1o+epRf39xJ6yluctq uq5zXskuxXpjZugwoITObP/2XTXi81KBHhw+K/wWwrIGPLVal5AScjw0vQgupUSqpIcM qFUA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fVvjHadGBFDCgnVew3g1oqdvdkQnyEIZa2G/+GSSotU=; b=qxW1l0B2dQPdZXN2ay7qreTMLm8dEx3+Hnfg3EB7gb7asdAyDvCWUmrHi8f5li1BUv oEKJW4cN4nAH73xAwFzceuMbSkXLcdgRhBP+J+zgiemaLxodJjht88gknfyspYzR49ww yBj3yCT+gi9iNao9/7kTY0Oa2IkYnXF2QzvxfMylw3fAEmQqobrqyqAzyOQNLN0nB4Et p/lqIR/5UOVM9mDoUBlr0zWxttUH37QAhCAINeH3xMvhPLXhkdDSRsyc4QW9+zBYJpL1 6NBKobnijIWPmKk27rTx/AcO+OG7E1Qcrthbndsa4WMcWzx8bwRMXD5SxaotF5QPn8/J XTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TrGqF8xC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si5696216jaq.60.2021.04.01.13.31.56; Thu, 01 Apr 2021 13:32:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TrGqF8xC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234874AbhDAUbP (ORCPT + 99 others); Thu, 1 Apr 2021 16:31:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:59520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234407AbhDAUbP (ORCPT ); Thu, 1 Apr 2021 16:31:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4B05610D0; Thu, 1 Apr 2021 20:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617309075; bh=hesAkTNQJud2zSBji7Xla+24h8mR3EHcOqfAeZrr1B0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TrGqF8xCn5JXauHa1Ww3ZJv8dcABJr6+qQTnvSQu27UOMk/E70Jl3/xtAPhOAoj8e GB8WLDztAnLLGPhMBvAoLUyHG3Q9Uma27Z6ihQou1oMHt1IBcuZTAYDdiR4dX0mdJx yba0gB6oLR1vIFbqD0S+ayt8FAaYe46YfhqdOMMF95lSeE+GxH5okZCoyskdozCXP+ KP9MVkh1s9hFnOYFa1tIoHqYi04lnJbYJRduZwBg/bCaP35Dv5/A7NTMH0NiGLkGTD xcLSmNopvPKs/XYu1hYotEZJkq1PgBQPKZ/EsjeLwVPDNU9rG4J8IqBMePD+eACS2P DQmU50u1b+g+g== Date: Thu, 1 Apr 2021 22:31:12 +0200 From: Frederic Weisbecker To: "Paul E. McKenney" Cc: LKML Subject: Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language Message-ID: <20210401203112.GA116405@lothringen> References: <20210401132602.116352-1-frederic@kernel.org> <20210401185116.GH2696@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210401185116.GH2696@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > Grepping for "CPU" on lscpu output isn't always successful, depending > > on the local language setting. As a result, the build can be aborted > > early with: > > > > "make: the '-j' option requires a positive integer argument" > > > > Prefer a more generic solution. > > > > Signed-off-by: Frederic Weisbecker > > Good catch, applied, thank you! > > There is a similar construct in kvm-remote.sh, so I added a similar > fix to your patch. > > But what about this in functions.sh? > > nt="`lscpu | grep '^NUMA node0' | sed -e 's/^[^,]*,\([0-9]*\),.*$/\1/'`" > > I am guessing that "node0" is human-language-independent, but is "NUMA"? I thought they wouldn't bother translating that, but they did... NUMA node0 CPU(s): 0-7 becomes: Nœud NUMA 0 de processeur(s) : 0-7 Not sure about the best way to fix it. Thanks.