Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1297160pxb; Fri, 21 Jan 2022 14:41:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBWsUoSsxZIzK+Gt3AODhcc1yF6BG/LG4TuOHyk7hDZf1uD3xRAGF1I4rfzlHGxlkRUUbK X-Received: by 2002:a17:90b:3510:: with SMTP id ls16mr2666402pjb.229.1642804871693; Fri, 21 Jan 2022 14:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642804871; cv=none; d=google.com; s=arc-20160816; b=IgdSzJmNK3wickpAH0MX1IGVONTvgYcxIW5SqQh0R6idYGdBZQvgv29vh7jxAvZJ1R 9vc5mJuT710lScrRxqE96fXmZRsE2n/LkCMzTy7RGj9Gu0nUm39W7m7OAEBQZEigmOZ3 gWaSMF1+to/ozukn66viYokFrryL+01+fOD5X/9NaKudlGAlIDeQdZW9AnqzogFvO5kL q7bHIAaPTFD9jARPe/JRdsFnVn5ZN6g+ovoUjVWHbOa7RifeeUtHqGQ1nhmKKgKjjxku 8fZ63OYJNlYvHoHsD0vJ2mBnogXuiLUPC7hOBAanLN1YZyMmtR52RkuSHbCMqi+j9rq2 8dow== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=11Qd8c13PCnRFveclBVqZdhdiW0edpRytHmU5j3lYOk=; b=rqP4aq16/oaDNuqTD3WdCeH4c0E+tejUz1Rgo4bdqqWUGk6lnak5T2zG5bJcpMBn8A V9ScVssY5wIRIvfAJA0KQSPSY5rQUYmaaktQ306Blo0yAwzTFIUNGcwOMOxZasN+oooA XfayW4o01FQpOmEGQgO8SwMRezd+ESWJdZjrXJ2KBbli59JiHb41+69owDcs5NN8GPdR X+YUH8I1AOjafGzmrWtTJO1uownM9K4XWW2TSqa8ZSIQI4U8puLTZdMAEwICHL3yExD3 avMGRzv/naIW9IyWbaO/YDwA9aVc1ttraEQGgrZeAFYXE+uYux8liED1eVaVDAEA4J7Y 0Fvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=npEotK2U; 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 f17si7241473pgv.733.2022.01.21.14.40.59; Fri, 21 Jan 2022 14:41:11 -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=@kernel.org header.s=k20201202 header.b=npEotK2U; 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 S1377750AbiATVGm (ORCPT + 99 others); Thu, 20 Jan 2022 16:06:42 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:50282 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347149AbiATVGj (ORCPT ); Thu, 20 Jan 2022 16:06:39 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 4CD6FB81E59; Thu, 20 Jan 2022 21:06:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1258DC340E0; Thu, 20 Jan 2022 21:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642712797; bh=S9QnDhcgdyuPZyPA8X/jn7u7JAnGBTg9Yxm2/sK9Nlg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=npEotK2Uq41vIQFgwRUxSIun0qx3U8zC+2bXqFKmLY0iZ0VQFe68BPvD3YXXHt9kK SaXq1lfPxdLNVIEcs5D1LBxpCTYHIgDofF6bmOduZ2p0etVtrA6XjXY0oP7ANDTN8F YQy/YfOoSfd0VtgFPSNuJm25XUWcGZ/eI4pya+3VCUHNGEcm7yICYpokPQbmd+3MAC Yseo2cfGmJ5cz1XjpTYMUIRfsgj0fZ945Okr/wNR5wUBl5fIPEKoZ4HEF4jbMjuFoS uu9PKQn0DZikp2p/p+qMaGmehpnzvjQPbUH+DiSZTWgyTRaxe+nmsQmXKCoZjICYf8 FF/U3gIJs3KQA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C68835C0367; Thu, 20 Jan 2022 13:06:36 -0800 (PST) Date: Thu, 20 Jan 2022 13:06:36 -0800 From: "Paul E. McKenney" To: Zhouyi Zhou Cc: Paul Menzel , Josh Triplett , rcu , linux-kselftest@vger.kernel.org, LKML Subject: Re: Problems with rcutorture on ppc64le: allmodconfig(2) and other failures Message-ID: <20220120210636.GR947480@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <36bd91e4-8eda-5677-7fde-40295932a640@molgen.mpg.de> <20220118172904.GG947480@paulmck-ThinkPad-P17-Gen-1> <20220118234656.GA3120763@paulmck-ThinkPad-P17-Gen-1> <20220119044649.GL947480@paulmck-ThinkPad-P17-Gen-1> <20220119182143.GA2183703@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 03:30:54AM +0800, Zhouyi Zhou wrote: > On Thu, Jan 20, 2022 at 2:21 AM Paul E. McKenney wrote: > > > > On Tue, Jan 18, 2022 at 08:46:49PM -0800, Paul E. McKenney wrote: > > > On Wed, Jan 19, 2022 at 10:07:42AM +0800, Zhouyi Zhou wrote: > > > > 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.out.txt > > > > > > > [2]: https://owww.molgen.mpg.de/~pmenzel/rcutorture/rcutorture-log.txt > > > > > > > > > > > > > > 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=kvm -cpu kvm64 -serial > > > > file:/tmp/linux-next/tools/testing/selftests/rcutorture/res/2022.01.19-09.14.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=-1 selinux=0 initcall_debug debug > > > > console=ttyS0 rcupdate.rcu_cpu_stall_suppress_at_boot=1 > > > > torture.disable_onoff_at_boot rcupdate.rcu_task_stall_timeout=30000 > > > > rcutorture.onoff_interval=200 rcutorture.onoff_holdoff=30 > > > > rcutree.gp_preinit_delay=12 rcutree.gp_init_delay=3 > > > > rcutree.gp_cleanup_delay=3 rcutree.kthread_prio=2 threadirqs > > > > tree.use_softirq=0 rcutorture.n_barrier_cbs=4 > > > > rcutorture.stat_interval=15 rcutorture.shutdown_secs=420 > > > > rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 > > > > zzy 755865 0.0 0.0 17676 2876 pts/2 S+ 09:59 0:00 > > > > grep --color=auto qemu-system > > > > $ ls -l vmlinux > > > > -rwxrwxr-x 1 zzy zzy 69349872 1月 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/usr/include/headers_check.pl) > > > > is used to check the validity of head files in ./usr/include > > > > > > I am currently bisecting, but once that finishes I will give this a > > > try, thank you! > > > > And the bisection converged badly due to there being more than one build > > failure. > Sorry to hear the bisection is not successful. > > > > So I ran the command above and then the build succeeded. > I'm very happy that the command works. > > > > Though it would be good if the build worked from "make distclean"... > I would be very honored if I could join the efforts to make the -next better. One approach would be to download the -next kernels as they appear and run tests on them. Reporting bugs is good, and of course fixing them even better. You can clone -next from here: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Individual -next releases are tagged, for example, "next-20220118". Me, I run torture.sh on them from time to time, depending on how much other testing I am doing. So maybe once or twice a week. ;-) Thanx, Paul > Many thanks > Zhouyi > > > > Thanx, Paul > > > > > > > > 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-40295932a640@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=${EDITOR-vi} > > > > > files= > > > > > for i in ${rundir}/*/Make.out > > > > > do > > > > > + scenariodir="`dirname $i`" > > > > > if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i > > > > > then > > > > > egrep "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags > > > > > files="$files $i.diags $i" > > > > > + elif ! test -f ${scenariodir}/vmlinux > > > > > + then > > > > > + echo No ${scenariodir}/vmlinux file > $i.diags > > > > > + files="$files $i.diags $i" > > > > > fi > > > > > done > > > > > if test -n "$files" > > > > Thanks > > > > Zhouyi