From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4D04C43381 for ; Tue, 26 Mar 2019 19:24:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2CFE20823 for ; Tue, 26 Mar 2019 19:24:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="v/VOm10t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732622AbfCZTYj (ORCPT ); Tue, 26 Mar 2019 15:24:39 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40284 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732619AbfCZTYi (ORCPT ); Tue, 26 Mar 2019 15:24:38 -0400 Received: by mail-pl1-f196.google.com with SMTP id b11so2088268plr.7 for ; Tue, 26 Mar 2019 12:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9xe2cnKgj2u/5e350AhnUZqGhZDwjch2potbZGjEHUM=; b=v/VOm10tv19N25u4AXHbxwGBxHou9OBjaSYgwhqnd9yTlGqrc6cJ0pZyoTS1BIvrpJ r4fvbu/5qL9sC0M4MnERILS/2oPRyhlTlSjFPLbSOdYmZsmuF67L3ISWgQOtHavmn9SM H/DTQ/dbDqIiWwZd5Hi26iBq9B6ZYC65e3e2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9xe2cnKgj2u/5e350AhnUZqGhZDwjch2potbZGjEHUM=; b=V8RT8GgkVERmH6UyPC54NrqVJW4uN3MNaMGiIF0OtNQoSxK+326DD7ew6NodEuxWmT JACID5pveVNTccvXChk5eQ99lBOLqpSQQeyTjN6WytjEZN9AGyFj4JtWkFQjxWmFTehS tTGM0xeklrT+u26kls60eyggx6MpcqRBXCm/caEbgRzYUMF6pitR2vpXgtF8rGt/xeSt JyE+c9IgvjAEgzImBjIxEBrb9U9xxmFHPUgJOzO2ZI8VCPI4MsrTWoO1SJqrkeEU3+HH uRe4eHfRuaB4DitKskDkYDB7Npf26yjI7452GXlpPuWMuAWH4aGbn5D0PLVHY8LgaY99 goRg== X-Gm-Message-State: APjAAAX/vXgCV1t7TtHKGNQZoYjQAEck8vcXEyYEuW1KSA8gPaS4BUA8 7ags+st2RWOI94OpEydvSw8f4w== X-Google-Smtp-Source: APXvYqwMJ3hs4xED/sxyQLZzrjezrjuatGt1jM2/TtrZQmpPXSsOJnh8yMCjdjiUOwVv9nMh0rSFxQ== X-Received: by 2002:a17:902:2c01:: with SMTP id m1mr32840752plb.186.1553628278149; Tue, 26 Mar 2019 12:24:38 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id l12sm36761889pgn.83.2019.03.26.12.24.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 12:24:37 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , byungchul.park@lge.com, Ingo Molnar , Josh Triplett , kernel-team@android.com, Lai Jiangshan , linux-kselftest@vger.kernel.org, Mathieu Desnoyers , "Paul E. McKenney" , Peter Zijlstra , rcu@vger.kernel.org, Shuah Khan , Steven Rostedt , Will Deacon Subject: [PATCH v2 4/4] rcutorture: Add cpu0 to the set of CPUs to add jitter Date: Tue, 26 Mar 2019 15:24:11 -0400 Message-Id: <20190326192411.198070-4-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190326192411.198070-1-joel@joelfernandes.org> References: <20190326192411.198070-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: rcu-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org jitter.sh currently does not add CPU0 to the list of CPUs for adding of jitter. Let us add it to this list even when it is not hot-pluggable. Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/rcutorture/bin/jitter.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/jitter.sh b/tools/testing/selftests/rcutorture/bin/jitter.sh index 47bd9829dc55..26faf5824a1f 100755 --- a/tools/testing/selftests/rcutorture/bin/jitter.sh +++ b/tools/testing/selftests/rcutorture/bin/jitter.sh @@ -49,8 +49,12 @@ do # Set affinity to randomly selected online CPU cpus=`grep 1 /sys/devices/system/cpu/*/online | - sed -e 's,/[^/]*$,,' -e 's/^[^0-9]*//' | - grep -v '^0*$'` + sed -e 's,/[^/]*$,,' -e 's/^[^0-9]*//'` + + # Do not leave out poor old cpu0 which may not be hot-pluggable + if [ ! -f "/sys/devices/system/cpu/cpu0/online" ]; then + cpus="0 $cpus" + fi cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN { srand(n + me + systime()); -- 2.21.0.392.gf8f6787159e-goog