From nobody Thu Nov 13 14:57:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581075685516126.04477788933218; Fri, 7 Feb 2020 03:41:25 -0800 (PST) Received: from localhost ([::1]:54658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j020i-0004o9-FP for importer@patchew.org; Fri, 07 Feb 2020 06:41:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36113) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01z6-0002qD-Is for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01z5-0005eZ-K7 for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:44 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:42593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01z5-0005d8-Ed for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:43 -0500 Received: by mail-wr1-x443.google.com with SMTP id k11so2262977wrd.9 for ; Fri, 07 Feb 2020 03:39:43 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l15sm3022744wrv.39.2020.02.07.03.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 03:39:40 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 809701FF8C; Fri, 7 Feb 2020 11:39:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aRRamzMzvjTZar30SD38wYqoFHYtaZyfi67Aj7iN5oE=; b=QJN+mxNEcUSB83RE+yAvX7LEl9RsUWKvT1vpTFEusgMzrjk53vglkMJNkVtfCeVW5k 7/lUyUE+Lry2nFiPvs+ZyM57fl+5w+bNjyLj0QXeix6kcYrtx4dT3kbOKcGyqX/u2+QL RBL0XdQH4fCUfzJBV4/dhqHqbTPNZRRM3H/W48R15WAe8CphkdwVlWzJ9OJws+3g1loQ qTABgAlTLRvWYsElQ5FCcl+SmVC0L/vb4bnvbO2b3txcT+qpCCr7x9eAY1kwZ8jIglBY D/BTltBEr68bV5r9PJuE9VXAJ2Xj8hgM/6lmZ6FfqYbuLDWe5bN0/WaMZruVe2tIAaLn Hi6w== 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=aRRamzMzvjTZar30SD38wYqoFHYtaZyfi67Aj7iN5oE=; b=ciGuOf0kt4tSeT8itIuYtX7mL6oKhKDa/ceSskMQVff3wrbDo5NcBuByREqOQFdr5x rSIrqE5L5/w0/J+sttQ8LSJUlmy0VTAMlE5DjXJ6EARL2XNpdvNZev/B6S+g/ljjDYjU bmtScvgYXpH8dG7lKloaVLxNwTJ0PIb0OToLxmJ7w2vKcqLQTkBoVyZ9UEsWGEVLRBRz Ad9bd6oYD8JCASWuGgx/PBrqLcG+e4AbM2c1c/X58URkpaG35H4mj4P4xvlwoWSJy1Qm CGT4QeKcWiAHGDSpRSonFeTjpev0ktYV0uY26x5kZ6atJoJ/tENoDr5IJYRfYD1s5oLj QIlw== X-Gm-Message-State: APjAAAW+41w13T8lWsnBWc3gq5y6rXWmaE1k+pdzK/0x+PVX62xfdG4H 0RxO0l+ii+mOzmgbmzhGXdmTng== X-Google-Smtp-Source: APXvYqysKk6DcuOOosFohG0nj1UwoakYcdkRJxQfl76zAda1tP4pU1CZ2Q5StxRLbGC/vvIX0LAgDQ== X-Received: by 2002:adf:f847:: with SMTP id d7mr4211389wrq.35.1581075582351; Fri, 07 Feb 2020 03:39:42 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 1/5] tests/tcg: include a skip runner for pauth3 with plugins Date: Fri, 7 Feb 2020 11:39:35 +0000 Message-Id: <20200207113939.9247-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207113939.9247-1-alex.bennee@linaro.org> References: <20200207113939.9247-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Peter Maydell , berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, "open list:ARM TCG CPUs" , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) If we have plugins enabled we still need to have built the test to be able to run it. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/aarch64/Makefile.softmmu-target | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/= Makefile.softmmu-target index d2299b98b76..71f72cfbe34 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -70,4 +70,6 @@ pauth-3: $(call skip-test, "BUILD of $@", "missing compiler support") run-pauth-3: $(call skip-test, "RUN of pauth-3", "not built") +run-plugin-pauth-3-with-%: + $(call skip-test, "RUN of pauth-3 ($*)", "not built") endif --=20 2.20.1 From nobody Thu Nov 13 14:57:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581075749670499.3066538717709; Fri, 7 Feb 2020 03:42:29 -0800 (PST) Received: from localhost ([::1]:54688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j021k-0006s1-E0 for importer@patchew.org; Fri, 07 Feb 2020 06:42:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36133) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01z7-0002qW-O6 for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01z6-0005gX-Pk for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:45 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:43704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01z6-0005f0-Ik for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:44 -0500 Received: by mail-wr1-x444.google.com with SMTP id z9so2257184wrs.10 for ; Fri, 07 Feb 2020 03:39:44 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 25sm2957049wmi.32.2020.02.07.03.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 03:39:41 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9D4CB1FF8F; Fri, 7 Feb 2020 11:39:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LzvIeCvpZEKsmxLMGQeNvccjyd2G+1aRycbt9INNqtg=; b=QkUxzlo3KnDGlDcI7bmDbx4zP1J+9D5tXvdpAwQPShJcUBtLBBDjBmfH5fk1Wn6aDd YCmCofrPp83CtjA6AqPK2xCGNE8VKCXRdpp4R34qb6GwVf6Vfd7MJLapU+VzV5omoea7 qErwKSfk6TbOjdeXTBqzCymY9DdBPmWZX25T6YLxqFkyNQpHaGDk/m6jjsF7aNOPawdk FF3e4EWNjnrqBFTEo2LkIH46b09dZd5TY2SsweYLBtOV9OI19pN/Sg+nfr74jsdgaELI 66EDosIXqzUbI5pKyKXJEOlYdXhE4zWMFDSJqVYonnQJDIxUmUjh2s6khPFlwkH5m1+b NXqQ== 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=LzvIeCvpZEKsmxLMGQeNvccjyd2G+1aRycbt9INNqtg=; b=bK8qp0bm8Bcdzs3xEtmDdtc0wRsPs6XARv2Yf+Aq5eyMRZI6pdpBxDRl+0kU4v7KR1 zlxgAISvJVApUyVcaX0e5KDZ4sBjV6QKk59zmuQ4HAdgM14ZxJ5WRRI5z67OwVj/DJEl cofRxkGmxr+m7/rODdsojKAUELDkXPeU/iAd1IzccPn5jchWtHfSqHllj557R5T012BG vg6sP1PAVjQMepcCj50RnAP8bxH8OR2khX3jkSKFanxaCElPGYpDArXoeH7mUeP4ho4D QdaHQM8zuWFyl+NnpGljA0SCVObScKyCzmpRf8z1nPzwcIUvbr+scfTPfXi9xQqBb8U4 iy2A== X-Gm-Message-State: APjAAAX0LPG00U0DOWhSLioocBE29eYm/EbjwhKOgLN2KWFeQNQebjKY Ztcbiu+lMpHRj+XATP/8blbDUA== X-Google-Smtp-Source: APXvYqykYVKt2TskCy/Myu8ELcadctHorXAXtlrCSGjts+ZtDPkTZGnPPOGPW2su4XDlsCs4AODMVg== X-Received: by 2002:adf:f103:: with SMTP id r3mr4250317wro.295.1581075583589; Fri, 07 Feb 2020 03:39:43 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 2/5] tests/rcutorture: update usage hint Date: Fri, 7 Feb 2020 11:39:36 +0000 Message-Id: <20200207113939.9247-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207113939.9247-1-alex.bennee@linaro.org> References: <20200207113939.9247-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Although documented in the comments we don't display all the various invocations we can in the usage. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/rcutorture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rcutorture.c b/tests/rcutorture.c index 49311c82ea4..e8b2169e7dd 100644 --- a/tests/rcutorture.c +++ b/tests/rcutorture.c @@ -413,7 +413,8 @@ static void gtest_stress_10_5(void) =20 static void usage(int argc, char *argv[]) { - fprintf(stderr, "Usage: %s [nreaders [ perf | stress ] ]\n", argv[0]); + fprintf(stderr, "Usage: %s [nreaders [ [r|u]perf | stress [duration]]\= n", + argv[0]); exit(-1); } =20 --=20 2.20.1 From nobody Thu Nov 13 14:57:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581075681288117.82904707202465; Fri, 7 Feb 2020 03:41:21 -0800 (PST) Received: from localhost ([::1]:54654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j020e-0004bO-7S for importer@patchew.org; Fri, 07 Feb 2020 06:41:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36150) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01z9-0002sx-52 for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01z8-0005iy-2g for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:47 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:50504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01z7-0005hS-SC for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:46 -0500 Received: by mail-wm1-x341.google.com with SMTP id a5so2265090wmb.0 for ; Fri, 07 Feb 2020 03:39:45 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x14sm2954784wmj.42.2020.02.07.03.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 03:39:42 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B27191FF90; Fri, 7 Feb 2020 11:39:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y4d6Sguo40PEMFEa1p9tKAqrtcGlKPa27ISKFx3kAqI=; b=xxaxL3XOk3IDVbga8LKTZmCLe/MHkX23MmNEtqohD2umfyItiXSveJjh5a4SjHwFFe 8I93g7ZLOJhRZ62nIMc5t50jAGhJOrwCpSQeinSI41ALjlOJPcjDSP3csld8r/Yixyt8 QvlKFABopqjjHkK2O8d7aYAzufhN16g1Otc60AtZ4PAhurwk09t53VqZbYDG89ZYKJkz eGdj8Klcj9fWhJlZ5pI7He86f0OClxvng2C5FbeSc8nAmSPM0rKQ3LyUdwL3Y9A/VglJ e3LLfJXhxBPCgphF8YGesQqCWSq/8mqcQqqAveUkxYh6Btqp7AAE1coc6TjB07HU6BjJ YaMQ== 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=y4d6Sguo40PEMFEa1p9tKAqrtcGlKPa27ISKFx3kAqI=; b=AdcIZiq1ZNcFv2U88BhOU8yQaJ1PzgVYRpYFjBczmbd+oGGyt9FuVTHIRjq/sb67sP pZvhtTHBrRrqr9XrjIL/EfIjQB4dU1eXeMBplbcfhzh+wdL4ADLponJq7ueJ1Q83hJS7 2Xi0vjhI6YWtCZIxpNw3qm0MKHw3u/caOtP1EgrdDbkWu7IL7AQ3Uw5X9NQcui/ztfv4 Xpt8xVfxegl9ESEABd5/pHg2xgbzVVGYvWw9Arq4MrhDnYiWVOj2VGM7v7/qOCbeagVb TP6YyYN5MnvRGq37vRMArq6b1rpuDyhsQGd/lgNuvnAgFf42BIG/nzXXFaM+Ola/nlBH Aazw== X-Gm-Message-State: APjAAAXNyQPsvgmyDkDPz5srbpVYUjxcR3QnvUQ1dX9i9clSe9CfZv0O yoHW7SfaXzZtJNZ6Z2vQBoVDcQ== X-Google-Smtp-Source: APXvYqwQsuBWOql+9b9V/MTI2aE8Bq8cOBX55jN/KLkZR0+KNn4wL0NwpjNiRyA1gQq/pOT9P45Q4Q== X-Received: by 2002:a05:600c:242:: with SMTP id 2mr3908121wmj.2.1581075584796; Fri, 07 Feb 2020 03:39:44 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 3/5] tests/rcutorture: better document locking of stats Date: Fri, 7 Feb 2020 11:39:37 +0000 Message-Id: <20200207113939.9247-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207113939.9247-1-alex.bennee@linaro.org> References: <20200207113939.9247-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This is pure code motion with no functional effect. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/rcutorture.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/rcutorture.c b/tests/rcutorture.c index e8b2169e7dd..256d24ed5ba 100644 --- a/tests/rcutorture.c +++ b/tests/rcutorture.c @@ -65,8 +65,6 @@ #include "qemu/rcu.h" #include "qemu/thread.h" =20 -long long n_reads =3D 0LL; -long n_updates =3D 0L; int nthreadsrunning; =20 #define GOFLAG_INIT 0 @@ -78,11 +76,20 @@ static volatile int goflag =3D GOFLAG_INIT; #define RCU_READ_RUN 1000 =20 #define NR_THREADS 100 -static QemuMutex counts_mutex; static QemuThread threads[NR_THREADS]; static struct rcu_reader_data *data[NR_THREADS]; static int n_threads; =20 +/* + * Statistical counts + * + * These are the sum of local counters at the end of a run. + * Updates are protected by a mutex. + */ +static QemuMutex counts_mutex; +long long n_reads =3D 0LL; +long n_updates =3D 0L; + static void create_thread(void *(*func)(void *)) { if (n_threads >=3D NR_THREADS) { @@ -230,8 +237,9 @@ struct rcu_stress { struct rcu_stress rcu_stress_array[RCU_STRESS_PIPE_LEN] =3D { { 0 } }; struct rcu_stress *rcu_stress_current; int rcu_stress_idx; - int n_mberror; + +/* Updates protected by counts_mutex */ long long rcu_stress_count[RCU_STRESS_PIPE_LEN + 1]; =20 =20 --=20 2.20.1 From nobody Thu Nov 13 14:57:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581075756797580.6119316372262; Fri, 7 Feb 2020 03:42:36 -0800 (PST) Received: from localhost ([::1]:54696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j021r-00074d-Jj for importer@patchew.org; Fri, 07 Feb 2020 06:42:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36168) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01zA-0002vP-D5 for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01z9-0005nY-8U for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:48 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:37491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01z9-0005kY-1f for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:47 -0500 Received: by mail-wr1-x443.google.com with SMTP id w15so2300332wru.4 for ; Fri, 07 Feb 2020 03:39:46 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s19sm3039338wmj.33.2020.02.07.03.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 03:39:42 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C6D021FF91; Fri, 7 Feb 2020 11:39:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dX/a2gresk53+psqLbyuBofhTGzw6h0OJ4TRN4KF5Rs=; b=sPbXCAXk5cCzYRP0ufajfHkLOm40bdnTZL4Hre7sKhylpHb0uDyPJdHsQu6PgUx93X csd5PCRxJ3lh7sUzaRJEsHU+YRJ0Ogb+N5HU6xrJWcjWc13VG3EAZvMxRJV6YZg0jL8V 7gpx6O83rLxeeQEY2iCm9e4mvv4CnFVfKfHq9nc0SIX+1Z+gtHQhLfm5vxRBUIlIXwam fDLYPbWPYNVrOHHkoSaucX22rztsdme8bZ3+ZJ5dmyQc6Mcam8W3O/C1BB3fKybU68Bs L/28HUdo9l9ESuaI8Tu4ymu3hajTREp6XL+bNvRPyyRkU0terIiWc7CarVsd7AIhJgkU /KZQ== 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=dX/a2gresk53+psqLbyuBofhTGzw6h0OJ4TRN4KF5Rs=; b=RFyFcarYmMVmGx+jRqoK7sHFemEflQq7J5/5LOTfFLv5IaLS8KpkUUh9+KhLkeqyzw jm5IAWm7H1mF/7P+32baVfBqw8Zs3ori1SmQ+Gy2Aiwb/QluWrzv1HxXoOTT69FnJXql 9b9pguyNTdgfR/IX7OePIQssXK1ZrMqWz6OyZO9LEZQERrVQDRn0lia6OMUses8lrQ4H qMDGFL6MeQOXHF7BlxjoX/AWmgIhrunQtQdFjD/sB59c+Y2pIDR0KfXXs0aCeQfJzUDh 7dmXL+bSacU9cyJwgyZ9a8x0nJXVH7utA4hpIgxnUl9OsyaRsHifU96UM1u6Ig933Xuc Dtvg== X-Gm-Message-State: APjAAAUcvvpqTSfLKLISyI71vyEw8h7rCd+ievbB1PNaUg8AiO602V5C 0bPPlLY5TAD0NGtdrupLpz3Lcw== X-Google-Smtp-Source: APXvYqwBc5GdkCbXOFLbzeAleQ6dHS6EoRhNNtXh3B64bZblbUWXLkmY1o/gyfTkZVlWw2WZtVK+qQ== X-Received: by 2002:a5d:4b03:: with SMTP id v3mr4500676wrq.178.1581075586034; Fri, 07 Feb 2020 03:39:46 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 4/5] tests/rcutorture: mild documenting refactor of update thread Date: Fri, 7 Feb 2020 11:39:38 +0000 Message-Id: <20200207113939.9247-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207113939.9247-1-alex.bennee@linaro.org> References: <20200207113939.9247-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This is mainly to help with reasoning what the test is trying to do. We can move rcu_stress_idx to a local variable as there is only ever one updater thread. I've also added an assert to catch the case where we end up updating the current structure to itself which is the only way I can see the mberror cases we are seeing on Travis. We shall see if the rcutorture test failures go away now. Signed-off-by: Alex Benn=C3=A9e --- tests/rcutorture.c | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/tests/rcutorture.c b/tests/rcutorture.c index 256d24ed5ba..9559f13cd1f 100644 --- a/tests/rcutorture.c +++ b/tests/rcutorture.c @@ -236,7 +236,6 @@ struct rcu_stress { =20 struct rcu_stress rcu_stress_array[RCU_STRESS_PIPE_LEN] =3D { { 0 } }; struct rcu_stress *rcu_stress_current; -int rcu_stress_idx; int n_mberror; =20 /* Updates protected by counts_mutex */ @@ -288,29 +287,48 @@ static void *rcu_read_stress_test(void *arg) return NULL; } =20 +/* + * Stress Test Updater + * + * The updater cycles around updating rcu_stress_current to point at + * one of the rcu_stress_array_entries and resets it's pipe_count. It + * then increments pipe_count of all the other entries. The pipe_count + * will be read under an rcu_read_lock() and distribution of values + * calculated. The final result gives an indication of how many + * previously current rcu_stress entries are in flight until the RCU + * cycle complete. + */ static void *rcu_update_stress_test(void *arg) { - int i; - struct rcu_stress *p; + int i, rcu_stress_idx =3D 0; + struct rcu_stress *cp =3D atomic_read(&rcu_stress_current); =20 rcu_register_thread(); - *(struct rcu_reader_data **)arg =3D &rcu_reader; + while (goflag =3D=3D GOFLAG_INIT) { g_usleep(1000); } + while (goflag =3D=3D GOFLAG_RUN) { - i =3D rcu_stress_idx + 1; - if (i >=3D RCU_STRESS_PIPE_LEN) { - i =3D 0; + struct rcu_stress *p; + rcu_stress_idx++; + if (rcu_stress_idx >=3D RCU_STRESS_PIPE_LEN) { + rcu_stress_idx =3D 0; } - p =3D &rcu_stress_array[i]; + p =3D &rcu_stress_array[rcu_stress_idx]; + /* catching up with ourselves would be a bug */ + assert(p !=3D cp); p->mbtest =3D 0; smp_mb(); p->pipe_count =3D 0; p->mbtest =3D 1; atomic_rcu_set(&rcu_stress_current, p); - rcu_stress_idx =3D i; + cp =3D p; + /* + * New RCU structure is now live, update pipe counts on old + * ones. + */ for (i =3D 0; i < RCU_STRESS_PIPE_LEN; i++) { if (i !=3D rcu_stress_idx) { rcu_stress_array[i].pipe_count++; --=20 2.20.1 From nobody Thu Nov 13 14:57:00 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581075819551522.9414642682847; Fri, 7 Feb 2020 03:43:39 -0800 (PST) Received: from localhost ([::1]:54716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j022s-0008VB-F5 for importer@patchew.org; Fri, 07 Feb 2020 06:43:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36201) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j01zF-0002yI-MC for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j01zE-0005vO-MX for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:53 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:51661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j01zA-0005pb-Eq for qemu-devel@nongnu.org; Fri, 07 Feb 2020 06:39:52 -0500 Received: by mail-wm1-x343.google.com with SMTP id t23so2260877wmi.1 for ; Fri, 07 Feb 2020 03:39:48 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i3sm3324844wrc.6.2020.02.07.03.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 03:39:43 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E23A41FF92; Fri, 7 Feb 2020 11:39:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rsiIdEhaM/iOPfLlY60O9vdPZWnumy7Z7gwdeT+Wfgk=; b=LM12FLcakXBj21+F86V88TYgdgdLMhmMT0g3hJjTXZmkDlVpp+CWMNG/ZLqjdjh8+s Je0YHdGI5ERim8K63/bpq8EVbq73+l+hS4Q0XiKyMubmaou/CPYsH9sHp+ff497o1Gjt 7NnkXTUF2ROO4jG5j6MiU3AKyEeOQdM1pqxpfiZ3KeVeGp1optXWBQg+U6TOjUdcrTGV ywiFbmjuTtpAD6ZkDO0XbVZB+6cr2qBYGJk6rst5dLieVQ4aencSbOhltO3mTbCD7vZv ajksgQC4fbKuINO5ZiMGGKajC6+vMMkQPTpkcdJMakldWMQUl4WhX/MQYN8cSPPGqNxf 4/5w== 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=rsiIdEhaM/iOPfLlY60O9vdPZWnumy7Z7gwdeT+Wfgk=; b=IEl+fVyaYgQr3MyM3S/9Mf5HZaz3Ose/Mt7xogzhQeiW/7qasK/5t4Bg87KNiFvxN/ 0HDgYrH1E395uyK02yOfQPOMDpP2ULgXP2w/gzVw9zeR50FAIr1b5rVW9GGev2LcnCMd fWTPe0JEabH9KC9aPnNrQzpdLFGmaB7QRqSS21diijInXnAk8kAbUQ4MIg7sonCnCmwd hZX2enRiDU+DekA7Gu4ss1haOlv7AigTRKNABZcvX3uetonN4XZyz8B1mNMDRO5yqN+1 wv/9lxLfgZ4eGdRu13NZyvJpXzHcl52wyRbTSc4fftp9PVPqojLKn0FXm+dqjZfgBAD3 GM4A== X-Gm-Message-State: APjAAAUGNkSR1u4TU4b23Kmf+auNwgTsdR6WPzrVpBEiB3zAmRVh8YHN sSn6wAwOEPxRA3B6gfd0qXwNgQ== X-Google-Smtp-Source: APXvYqzKkAJORZ8KfxVtIdVEWGJJ0KcxcI+zXysFD+nK7Z7Tr4rte7O8WYrNQ40qdWeWUoKR6NMG3A== X-Received: by 2002:a7b:c774:: with SMTP id x20mr3936555wmk.67.1581075587350; Fri, 07 Feb 2020 03:39:47 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 5/5] travis.yml: Test the s390-ccw build, too Date: Fri, 7 Feb 2020 11:39:39 +0000 Message-Id: <20200207113939.9247-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200207113939.9247-1-alex.bennee@linaro.org> References: <20200207113939.9247-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cornelia Huck , richard.henderson@linaro.org, f4bug@amsat.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "open list:S390 general arch..." , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Thomas Huth Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests. Signed-off-by: Thomas Huth Signed-off-by: Alex Benn=C3=A9e Message-Id: <20200206202543.7085-1-thuth@redhat.com> Acked-by: Cornelia Huck Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6c0ec6cf69f..c0eeff9caa9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -508,6 +508,16 @@ matrix: env: - TEST_CMD=3D"make check check-tcg V=3D1" - CONFIG=3D"--disable-containers --target-list=3D${MAIN_SOFTMMU_TA= RGETS},s390x-linux-user" + script: + - ( cd ${SRC_DIR} ; git submodule update --init roms/SLOF ) + - BUILD_RC=3D0 && make -j${JOBS} || BUILD_RC=3D$? + - | + if [ "$BUILD_RC" -eq 0 ] ; then + mv pc-bios/s390-ccw/*.img pc-bios/ ; + ${TEST_CMD} ; + else + $(exit $BUILD_RC); + fi =20 # Release builds # The make-release script expect a QEMU version, so our tag must start= with a 'v'. --=20 2.20.1