Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8989386rwl; Tue, 10 Jan 2023 23:20:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9u9Ey8F0oXC6VP2i/iUcQtk7Psg9xveSIsX3FUTkrpbPKVL1atIoZdKhtUjpM4+4PU4Jw X-Received: by 2002:a05:6a20:3d17:b0:a4:efdd:a9b9 with SMTP id y23-20020a056a203d1700b000a4efdda9b9mr101358930pzi.44.1673421600014; Tue, 10 Jan 2023 23:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673421599; cv=none; d=google.com; s=arc-20160816; b=RB2O7Q+JxQOQONx+2nhAUriXZPWYTP0mSyK9X+ZOP4P9/k3dPmlYQTlQJcDzBT5ztI qPBmOHT256dSAbJeOKs2F1tvayK16SE/UUsVNmzNAGahE/d7otBJ75KhDsxoUEVAl/Gh h/M4pk3FUMOB3mS0emkyUsXKDkgou2GN+1AP8iS2s+dKEGYSBju3W5T6YOIVT6QIiyW1 VdBytHU63YhOWIp8c4ZCu/+h1t/2BVObfh9AcTLWtkwEOc1kqxbafItL8wK3SFxMorJr P+S3aVXwNYDP62BIzzAy/FDMDgwXkvBh/zpV8UIfyJOQkJjG6iWoWhOYE566nbRxqDBI iG9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rUnn9u4bkLvVkwreiBqcLx6E7Ku+211w0tdYqx3rBYw=; b=vZrHGrp5AZp2L+gRvAEG+b5LHvu92YeAfLMZcRMSiMgu7oFEDcUpkS9F0MyZek3rZ6 uPuFfSUR4wm5qmOaucmnyDB1foqQBb2QtVAccDQjwK9JQjeJOuXwGNyXDrc4ZiXoU0s6 HhiPA85CsMfoUTXTbeUwoHQeuPbBfguKXg3wECy/zQfGXc3U9OOTsPumvJ4rLnnS3Tmc v6SkAFH1qfxdc3P47+NHoNlJWBjwnyQf6Q9wN4ZrH6S+YNKqiBkbQ1EbGa2o/fwEEM+Y FUAprL5AHOw0ajjK6FUeo1wxIAoUh/cCDudwX/bWzVyepgG5e3+gxWcsWZdtwVwfzfO8 SfEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s37-20020a63ff65000000b00478d30cde9csi12801275pgk.832.2023.01.10.23.19.53; Tue, 10 Jan 2023 23:19:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232017AbjAKGvw (ORCPT + 53 others); Wed, 11 Jan 2023 01:51:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjAKGvq (ORCPT ); Wed, 11 Jan 2023 01:51:46 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 666EBC3 for ; Tue, 10 Jan 2023 22:51:45 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 30B6paCc012241; Wed, 11 Jan 2023 07:51:36 +0100 Date: Wed, 11 Jan 2023 07:51:36 +0100 From: Willy Tarreau To: Sven Schnelle Cc: "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] nolibc: add support for the s390 platform Message-ID: <20230111065136.GA12019@1wt.eu> References: <20230109080910.26594-1-w@1wt.eu> <20230109191534.GU4028633@paulmck-ThinkPad-P17-Gen-1> <20230110073242.GB3229@1wt.eu> <20230110092517.GA4626@1wt.eu> <20230110145334.GL4028633@paulmck-ThinkPad-P17-Gen-1> <20230110161249.GB4649@1wt.eu> <20230110163210.GP4028633@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 Wed, Jan 11, 2023 at 07:45:05AM +0100, Sven Schnelle wrote: > "Paul E. McKenney" writes: > > > On Tue, Jan 10, 2023 at 05:12:49PM +0100, Willy Tarreau wrote: > >> On Tue, Jan 10, 2023 at 06:53:34AM -0800, Paul E. McKenney wrote: > >> > Here is one of them, based on both the fixes and Sven's s390 support. > >> > Please let me know if you need any other combination. > >> > >> Thanks, here's the problem: > >> > >> > 0 getpid = 1 [OK] > >> > 1 getppid = 0 [OK] > >> > 3 gettid = 1 [OK] > >> > 5 getpgid_self = 0 [OK] > >> > 6 getpgid_bad = -1 ESRCH [OK] > >> > 7 kill_0[ 1.940442] tsc: Refined TSC clocksource calibration: 2399.981 MHz > >> > [ 1.942334] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x229825a5278, max_idle_ns: 440795306804 ns > >> > = 0 [OK] > >> > 8 kill_CONT = 0 [ 1.944987] clocksource: Switched to clocksource tsc > >> > [OK] > >> > 9 kill_BADPID = -1 ESRCH [OK] > >> (...) > >> > >> It's clear that "grep -c ^[0-9].*OK" will not count all of them (2 are > >> indeed missing). > >> > >> We could probably start with "quiet" but that would be against the > >> principle of using this to troubleshoot issues. I think we just stick > >> to the current search of "FAIL" and that as long as a success is > >> reported and the number of successes is within the expected range > >> that could be OK. At least I guess :-/ > > > > Huh. Would it make sense to delay the start of the nolibc testing by a > > few seconds in order to avoid this sort of thing? Or would that cause > > other problems? > > Or define a second serial port (or something similar) in qemu and run the > kernel console on ttyS0, and the init process writes to /dev/ttyS1? So the > output of the test program could be redirected to a file on the host? That could be an option I haven't thought about, but it could also make the collect a bit less convenient. Also, init executes on the main console by default and I'm not sure how we can redirect it to a different one before the initial execve() (so that we're certain not to miss anything). I've seen situations where I was happy to have the two together, when a call you perform causes an oops, it's much easier when the oops immediately follows the test name. I'm still inclined to think that it's probably just the tsc that might be an annoyance at the moment as it's reported after the startup. If that continues like this we could also imagine reconfiguring the console to start logging at level 4 minimum and not have it there anymore for example. thanks, Willy