Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp899697pxb; Fri, 21 Jan 2022 05:59:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGDnB/k7ah1vbVWCitGvmv6kZdiZbtg4IUmNXh+DR1bbT83gchei4Zn2Ffu/2BqA0aaNyU X-Received: by 2002:a17:90a:e541:: with SMTP id ei1mr871223pjb.91.1642773575717; Fri, 21 Jan 2022 05:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642773575; cv=none; d=google.com; s=arc-20160816; b=kxJcfHYaaY/5EKjagkOpkXkMvpzCuIhkbNkZZHJ/x/G3UY9F1i/rfltfaMy4aoEbs8 LhF2rY4hzIi5hut5nS8cGgrvNK9zJrau2jbBWEsINdN2rfk6EJ5hL8hRe4jumKscRPMB irbO8/HleA0GQ1tkAri70an2JQiActtKRpRMZseDYqE7JK9kq6yHSd8czJjDeMwl9hIZ /APWDHhWrOP7CZTrNfsd9dIuCcX5TRku9qfGAsPxYbPsNmr7WWXomdx31Bs4X3zdmRH2 0/jg3jUp49DTPXHr1vlNrDVNBQ5EYKKsEVLtUO/8b8B4HcuUnNccKXyOy5l9jEynxjlz xrcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=U5yybkRyy74+vUgcdmJvZM65Xa1rfncQiIH2cIlKdHE=; b=Esxvc2WAUqPKaMRefU8gEa0nYQ7ym/fO2alUcBBGy/F5OE1IIVacvcBXA9NYlMY/I7 M0WO2gz8W2+7xVRgl69f4VsK2MffHpnA1q8S/vXFIKhH8lfBO3gsV2V6bTPcn8ykDBLD 3VU00GkjKFNkPA2CYpgd5f31ZZkw5y2wX7RkyCmrhCEw6KvpX4B0l8zHaQglHVb42WNj GfLZpN/EZVoyEkOly9t0LRil9Q1Lfd4cBTsuddc8cVNMnKg77tQVNGSw7y7rBIMSs7Wy SyASaHGVDbvWqgZPP7toCXD3Den7849kDqoWt6z8gRjiYf9zffe4dhYMDK8YXUHvE9Y7 UdTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KTWes4lr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si7215522plh.547.2022.01.21.05.59.23; Fri, 21 Jan 2022 05:59:35 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=KTWes4lr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350869AbiASCH4 (ORCPT + 99 others); Tue, 18 Jan 2022 21:07:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350649AbiASCHz (ORCPT ); Tue, 18 Jan 2022 21:07:55 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32AE7C061574; Tue, 18 Jan 2022 18:07:55 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id p12so3858239edq.9; Tue, 18 Jan 2022 18:07:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=U5yybkRyy74+vUgcdmJvZM65Xa1rfncQiIH2cIlKdHE=; b=KTWes4lr7GZeDhVcRrU3n2cGz/V+jTCno+1aTbPMI8VYjB1V3Ytr1fL9FKReXX52c9 5aJMiw9Qrn+EvEvXb/dom7MnqWISD/zHADAYfRLJsBKiEY4o6iY9QbVlhNFr+NnMrrhh WGPyBWE5+VwS3nZe/QD/+8QZUtgEHfyyLLJ+AU3wlCdA1Iv4hdD3CFtrXwSS96Nd9Iks gVUK0/rgPOyl7XSL/T8jOLnK0GJYcxn6RgtklfWO7enutqzKpYsoQgh2GyyIXTyiWlzI eMENpyMKJ7NEJH/DgKL8tMPkglg3xR7hJb97sOyKyb3hzKvf1m5i4VLRSu8SyQRsm2cy XTHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=U5yybkRyy74+vUgcdmJvZM65Xa1rfncQiIH2cIlKdHE=; b=qEBP9+Dt3yu0mW/fvR+Zf0OjRcb6srF+qPMOlO/4qGgHTfE8QKGOn8dT1/Rnn2pbu4 DrCyW8taaAvKby8Ot54THr38/0iGEY9K79Sv0fp9IH2DSmkaSd4oL2Z7E79El7jrJfTQ WJC6tKPkeGIAJd9eQaTir8J+vzK2ICrFLLAQYA15rNSQ3U7b9oiAUs6U/JoCo+w4tdeM hkrIkBxFwe12DyUaUCXzehzImCv9bs4QL1EgZAO61pVUdCIO0b2llLs/M7lSRhcqUPFP lwjO1iMWW1tlX13Hf97a102u+O+lF+xy0fjjEdRsBiMg2m2kzWfCFD+W7/2TKpijrYeR eZJw== X-Gm-Message-State: AOAM531YFaXjYZ6DS8phz4ASbZ6+FAPMrWEgGbz8n0FNGPDuUkqBwGp1 V7w9X+J9r5Z5f1u1hQfi5avbkWsvvPveUtc4Exg= X-Received: by 2002:a05:6402:51c6:: with SMTP id r6mr28172784edd.129.1642558073780; Tue, 18 Jan 2022 18:07:53 -0800 (PST) MIME-Version: 1.0 References: <36bd91e4-8eda-5677-7fde-40295932a640@molgen.mpg.de> <20220118172904.GG947480@paulmck-ThinkPad-P17-Gen-1> <20220118234656.GA3120763@paulmck-ThinkPad-P17-Gen-1> In-Reply-To: <20220118234656.GA3120763@paulmck-ThinkPad-P17-Gen-1> From: Zhouyi Zhou Date: Wed, 19 Jan 2022 10:07:42 +0800 Message-ID: Subject: Re: Problems with rcutorture on ppc64le: allmodconfig(2) and other failures To: "Paul E. McKenney" Cc: Paul Menzel , Josh Triplett , rcu , linux-kselftest@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Paul for looking into this On Wed, Jan 19, 2022 at 7:46 AM Paul E. McKenney wrote= : > > On Tue, Jan 18, 2022 at 09:29:04AM -0800, Paul E. McKenney wrote: > > On Tue, Jan 18, 2022 at 08:56:24AM +0100, Paul Menzel wrote: > > > Dear Zhouyi, > > > > > > > > > Thank you for your quick response. > > > > > > > > > Am 18.01.22 um 08:34 schrieb Zhouyi Zhou: > > > > > > > I have studied the rcu torture test recently. I am also interested = in > > > > this topic. > > > > But I can't open > > > > [1]: https://owww.molgen.mpg.de/~pmenzel/allmodconf-Make.out.txt > > > > [2]: https://owww.molgen.mpg.de/~pmenzel/rcutorture-log.txt > > > > > > Sorry, about that. I should have checked those. I had put them into a > > > directory: > > > > > > [1]: https://owww.molgen.mpg.de/~pmenzel/rcutorture/allmodconf-Make.o= ut.txt > > > [2]: https://owww.molgen.mpg.de/~pmenzel/rcutorture/rcutorture-log.tx= t > > > > > > I am going to try to test your suggestions at the end of the day. > > > > On x86 rcutorture builds successfully. However, allmodconfig > > on semi-recent -next got me "Can't open perl script > > "./usr/include/headers_check.pl": No such file or directory". > > Which might well be a local problem or might well be fixed by now. > > Not fixed as of next-20220118. Chasing it down... ;-) I can do allmodconfig on -next, $git describe next-20220118 $tools/testing/selftests/rcutorture/bin/torture.sh --duration 10 --- tools/testing/selftests/rcutorture/bin/torture.sh --duration 10 --- Results directory: 2022.01.19-09.14.39-torture $ ps -aux|grep qemu-system zzy 470309 773 0.3 1876544 153936 pts/0 Sl+ 09:55 31:27 qemu-system-x86_64 -enable-kvm -nographic -smp 16 -net none -machine q35,accel=3Dkvm -cpu kvm64 -serial file:/tmp/linux-next/tools/testing/selftests/rcutorture/res/2022.01.19-09.1= 4.39-torture/results-rcutorture/TREE03/console.log -m 512 -kernel /tmp/linux-next/tools/testing/selftests/rcutorture/res/2022.= 01.19-09.14.39-torture/results-rcutorture/TREE03/bzImage -append debug_boot_weak_hash panic=3D-1 selinux=3D0 initcall_debug debug console=3DttyS0 rcupdate.rcu_cpu_stall_suppress_at_boot=3D1 torture.disable_onoff_at_boot rcupdate.rcu_task_stall_timeout=3D30000 rcutorture.onoff_interval=3D200 rcutorture.onoff_holdoff=3D30 rcutree.gp_preinit_delay=3D12 rcutree.gp_init_delay=3D3 rcutree.gp_cleanup_delay=3D3 rcutree.kthread_prio=3D2 threadirqs tree.use_softirq=3D0 rcutorture.n_barrier_cbs=3D4 rcutorture.stat_interval=3D15 rcutorture.shutdown_secs=3D420 rcutorture.test_no_idle_hz=3D1 rcutorture.verbose=3D1 zzy 755865 0.0 0.0 17676 2876 pts/2 S+ 09:59 0:00 grep --color=3Dauto qemu-system $ ls -l vmlinux -rwxrwxr-x 1 zzy zzy 69349872 1=E6=9C=88 19 09:55 vmlinux Could you please try the following command ? linux-next$ perl ./usr/include/headers_check.pl usr/include x86 usr/include/rdma/hfi/hfi1_user.h linux-next$ echo $? 0 The headers_check.pl in linux-next (https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/u= sr/include/headers_check.pl) is used to check the validity of head files in ./usr/include > > > Either way, it looks like I need to upgrade the torture.sh script's > > checks for failed builds. Thank you for reporting this! > > Does this make torture.sh more reliably report build failures? I studied this commit line by line several times and benefited a lot. Thank= you! > > Thanx, Paul > > ------------------------------------------------------------------------ > > commit 0d302830515307ceb58e89d5fb91e81b6d22e0bf > Author: Paul E. McKenney > Date: Tue Jan 18 15:40:49 2022 -0800 > > torture: Make kvm-find-errors.sh notice missing vmlinux file > > Currently, an obtuse compiler diagnostic can fool kvm-find-errors.sh > into believing that the build was successful. This commit therefore > adds a check for a missing vmlinux file. > > Link: https://lore.kernel.org/lkml/36bd91e4-8eda-5677-7fde-40295932a6= 40@molgen.mpg.de/ > Reported-by: Paul Menzel > Signed-off-by: Paul E. McKenney > > diff --git a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh b/= tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh > index 2e9e9e2eedb69..7d3e11a6b8290 100755 > --- a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh > +++ b/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh > @@ -30,10 +30,15 @@ editor=3D${EDITOR-vi} > files=3D > for i in ${rundir}/*/Make.out > do > + scenariodir=3D"`dirname $i`" > if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i > then > egrep "error:|warning:|^ld: .*undefined reference to" < $= i > $i.diags > files=3D"$files $i.diags $i" > + elif ! test -f ${scenariodir}/vmlinux > + then > + echo No ${scenariodir}/vmlinux file > $i.diags > + files=3D"$files $i.diags $i" > fi > done > if test -n "$files" Thanks Zhouyi