From patchwork Tue Feb 14 11:21:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 653459 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp2971243wrr; Tue, 14 Feb 2023 03:22:48 -0800 (PST) X-Google-Smtp-Source: AK7set+Hxr/R91R3vyUHkoU82AP815BYCDVWA1kaZMz5vrLt8eCfzrf7Mf+DePaSNDlnBwNWdzc0 X-Received: by 2002:a05:622a:1741:b0:3b9:a754:30db with SMTP id l1-20020a05622a174100b003b9a75430dbmr3221237qtk.13.1676373768073; Tue, 14 Feb 2023 03:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676373768; cv=none; d=google.com; s=arc-20160816; b=eJYUvncRcDxHovm1jd8VwNytfQ+m9CRKwanlfaemkmDqlzpnQuxb307WcjqimAnn+9 +ZcIjX/6EwHic7rUWCp3zmwmgA+0M9fbaTKR8VJ3rNj7gO6vdkhbp8q4n52I9HEtvsst kzUH9pKKcP6+axBxVtRFL0/KUESjSPWo+4PCP9tG3M7TdAyjrbdQuTkJ5g5epAqFxPQi DCCyN8VaP9UFqlNz4qOYDLOF/Hnldow88+bcl/kEu0eJx92aNqRSZLj1ShQi3POK0kqg 91JtuqgvtneEBBnPPxETf9N+vsiI5s8aYwZ0dYvPTp3yU5FJcHC10OJALN1uwA2Y/EAi qC1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gXC9nOhmw431muOUO3PKW2gGl+LHnqMb3NoVo1sovCg=; b=ZWPCETfwt6xCSz8MjaVZq3CteueDdWKD+YpR7NbRoOSy8ErIZLJsivKbLlBBjXNvVn zcmJr8BzcduderQtjU8o7Xj24wpQ5ep1ul7eJ9b7oKv2J/inWqiHPwY7Yx2Eqy1TTbFv hQhG5Kn2pKF1V3Vq5PiUjp7hY/sV0JZFArtJKCtH1cjsXgtUHXsQIU5NIEmhyfDOt/y3 ekRsDtaAU7r6HijsCG7IxpNkBFO2ZdKkxYRJ+uFKfblNPl6rWfD7Umwik5IrID0st5sC uzGvT9wHP63NuW10hjOy7xYW9XFfClhYwor5ACa+eJ3ys4qdjUEf8jTDRt9heFxW9tVL KGuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BfVFj1fz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n6-20020a05620a294600b006fbeca246a0si12503425qkp.379.2023.02.14.03.22.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2023 03:22:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BfVFj1fz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRtNr-0007BA-Px; Tue, 14 Feb 2023 06:22:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtNq-0007AV-4h for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtNo-0002IA-C5 for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676373719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gXC9nOhmw431muOUO3PKW2gGl+LHnqMb3NoVo1sovCg=; b=BfVFj1fz4X2HqPuCUGa9iHBqibXw//Duxup1+vywh6Py9Dq/0J+J0yI9aYoNH5HF19NWWD s2ZwJjT5EJdkX846s4MPv0XVSR6mLXU4C1cY9qPLMxGVaLtu5ADPqhGF54+bgIJSjCiZri T7jI+PILQtgcXDzMRxzdYsYecmlpVLA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-195-H0325RPvOC2bdVZpOUgTFA-1; Tue, 14 Feb 2023 06:21:56 -0500 X-MC-Unique: H0325RPvOC2bdVZpOUgTFA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F25463C0F191; Tue, 14 Feb 2023 11:21:55 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12E994010E85; Tue, 14 Feb 2023 11:21:54 +0000 (UTC) From: Thomas Huth To: Peter Maydell , qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= Subject: [PULL 04/22] build: deprecate --enable-gprof builds and remove from CI Date: Tue, 14 Feb 2023 12:21:30 +0100 Message-Id: <20230214112148.646077-5-thuth@redhat.com> In-Reply-To: <20230214112148.646077-1-thuth@redhat.com> References: <20230214112148.646077-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Alex Bennée As gprof relies on instrumentation you rarely get useful data compared to a real optimised build. Lets deprecate the build option and simplify the CI configuration as a result. Buglink: https://gitlab.com/qemu-project/qemu/-/issues/1338 Signed-off-by: Alex Bennée Message-Id: <20230131094224.861621-1-alex.bennee@linaro.org> Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- docs/about/deprecated.rst | 14 ++++++++++++++ meson.build | 7 ++++++- .gitlab-ci.d/buildtest.yml | 19 ++++--------------- meson_options.txt | 3 ++- 4 files changed, 26 insertions(+), 17 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index da2e6fe63d..9317046177 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -20,6 +20,20 @@ they were first deprecated in the 2.10.0 release. What follows is a list of all features currently marked as deprecated. +Build options +------------- + +``gprof`` builds (since 8.0) +'''''''''''''''''''''''''''' + +The ``--enable-gprof`` configure setting relies on compiler +instrumentation to gather its data which can distort the generated +profile. As other non-instrumenting tools are available that give a +more holistic view of the system with non-instrumented binaries we are +deprecating the build option and no longer defend it in CI. The +``--enable-gcov`` build option remains for analysis test case +coverage. + System emulator command line arguments -------------------------------------- diff --git a/meson.build b/meson.build index 0026bba0ce..a76c855312 100644 --- a/meson.build +++ b/meson.build @@ -3805,7 +3805,12 @@ summary_info += {'memory allocator': get_option('malloc')} summary_info += {'avx2 optimization': config_host_data.get('CONFIG_AVX2_OPT')} summary_info += {'avx512bw optimization': config_host_data.get('CONFIG_AVX512BW_OPT')} summary_info += {'avx512f optimization': config_host_data.get('CONFIG_AVX512F_OPT')} -summary_info += {'gprof enabled': get_option('gprof')} +if get_option('gprof') + gprof_info = 'YES (deprecated)' +else + gprof_info = get_option('gprof') +endif +summary_info += {'gprof': gprof_info} summary_info += {'gcov': get_option('b_coverage')} summary_info += {'thread sanitizer': config_host.has_key('CONFIG_TSAN')} summary_info += {'CFI support': get_option('cfi')} diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 0aa149a352..8f332fc36f 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -467,27 +467,16 @@ tsan-build: TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user MAKE_CHECK_ARGS: bench V=1 -# gprof/gcov are GCC features -build-gprof-gcov: +# gcov is a GCC features +gcov: extends: .native_build_job_template needs: job: amd64-ubuntu2004-container + timeout: 80m variables: IMAGE: ubuntu2004 - CONFIGURE_ARGS: --enable-gprof --enable-gcov + CONFIGURE_ARGS: --enable-gcov TARGETS: aarch64-softmmu ppc64-softmmu s390x-softmmu x86_64-softmmu - artifacts: - expire_in: 1 days - paths: - - build - -check-gprof-gcov: - extends: .native_test_job_template - needs: - - job: build-gprof-gcov - artifacts: true - variables: - IMAGE: ubuntu2004 MAKE_CHECK_ARGS: check after_script: - cd build diff --git a/meson_options.txt b/meson_options.txt index 56415c5c23..7e5801db90 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -320,7 +320,8 @@ option('debug_stack_usage', type: 'boolean', value: false, option('qom_cast_debug', type: 'boolean', value: false, description: 'cast debugging support') option('gprof', type: 'boolean', value: false, - description: 'QEMU profiling with gprof') + description: 'QEMU profiling with gprof', + deprecated: true) option('profiler', type: 'boolean', value: false, description: 'profiler support') option('slirp_smbd', type : 'feature', value : 'auto', From patchwork Tue Feb 14 11:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 653458 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp2971156wrr; Tue, 14 Feb 2023 03:22:34 -0800 (PST) X-Google-Smtp-Source: AK7set8edSnzt9iE8QRK24bSG7NE8qE/G7Me62gqDcRQjEFGbjwjh5svFVOI0oF6nP1g4exxDHKh X-Received: by 2002:a05:6214:248c:b0:56b:c180:f31f with SMTP id gi12-20020a056214248c00b0056bc180f31fmr4561718qvb.38.1676373754017; Tue, 14 Feb 2023 03:22:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676373754; cv=none; d=google.com; s=arc-20160816; b=B2IHfpWxrs2yZFKXp18IlxuCkuI/0nv5g5xkQXwz939OAuQ4szKUsHX9I9HMdrq/Oh S418uXj8M46cserAfuevI8xeO2AWMHr9GfCBNaHNOs3apv6621R6+l650Asjr0ziK/Jf eavSObcwGLL4yMkJIG0q4J/sEal51k9xFRB1TCvwnQk8GDJQTKACr4xKpyUy4OpZcx6Q 7Ff8+tMOLUwzP12dd3onP81tK2u00/DiruSJ8jCSyOCC2lCZSBK1Rc7TggSvwJ8ACcIZ GviJyVgxFlVi63pACrM8VGDjv/v4IsRwFlG3E9x/jGEiHM7qmeihIYml+cYQOapC5Msp 29Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4C7pyi+DlPkSGUTqr0nFPYFMQcudM7W5j8DF0I+F7X4=; b=ygafKE4tIjdqA8XYub9dnTVabOES31voL1T3PY/J0kVdG9dJEVjo1CMcmMzIaIC5qJ w+7GgL216nIRHcALBTocONFEvv/IRP374zbWUlZZ7aR3PmaFGcVfvSMR2xOTGI/8V6Mo bcm7a9N2UWFeyymPNlBbw7JPU9/np5r3pIn3ckR+7n4XllKPSVHq/VP/xlbzHV8ZtG10 m5YHLdOcOMj5CGc5ISkVG8bizh9eZIH/4XFX9kbdGKTW0Ek9JVjkp28Ofs8+s1daVZP9 BO28K1tE4p/quw1adcwJMrlHQXtJ2UCeHqz6z+SrMc8VgM31JhvDGOoLAWSysT27t2fC MuWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DJp5Nfix; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t13-20020a0cb38d000000b005377c1ea433si11776734qve.364.2023.02.14.03.22.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2023 03:22:33 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DJp5Nfix; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRtNt-0007BY-84; Tue, 14 Feb 2023 06:22:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtNr-0007Ad-20 for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:03 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtNp-0002IS-H6 for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676373720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4C7pyi+DlPkSGUTqr0nFPYFMQcudM7W5j8DF0I+F7X4=; b=DJp5NfixbT1CrmXhbmV2bFWP+eIpWSy7NdL3ydNxzQnbjl0O8moh8wQSOiD8IYOpguNIVe qkATL2m+YY0ftJE2ikSrfTSgYMT9YKuXR8Ed5Grpc+P00ZCQ+torMu/hLaksk974LKYW22 aYVvBvw63IH9kiiyZgiEa9G3MN+Q1nE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-454-AFKWQ4M_NKu55gdg-dNXvw-1; Tue, 14 Feb 2023 06:21:57 -0500 X-MC-Unique: AFKWQ4M_NKu55gdg-dNXvw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 408F1181E3EF; Tue, 14 Feb 2023 11:21:57 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F8A4400D927; Tue, 14 Feb 2023 11:21:56 +0000 (UTC) From: Thomas Huth To: Peter Maydell , qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/22] tests/qtest/npcm7xx_pwm-test: Be less verbose unless V=2 Date: Tue, 14 Feb 2023 12:21:31 +0100 Message-Id: <20230214112148.646077-6-thuth@redhat.com> In-Reply-To: <20230214112148.646077-1-thuth@redhat.com> References: <20230214112148.646077-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Peter Maydell The npcm7xx_pwm-test produces a lot of output at V=1, which means that on our CI tests the log files exceed the gitlab 500KB limit. Suppress the messages about exactly what is being tested unless at V=2 and above. This follows the pattern we use with qom-test. Signed-off-by: Peter Maydell Message-Id: <20230209135047.1753081-1-peter.maydell@linaro.org> Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- tests/qtest/npcm7xx_pwm-test.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/tests/qtest/npcm7xx_pwm-test.c b/tests/qtest/npcm7xx_pwm-test.c index e320a625c4..ea4ca1d106 100644 --- a/tests/qtest/npcm7xx_pwm-test.c +++ b/tests/qtest/npcm7xx_pwm-test.c @@ -20,6 +20,8 @@ #include "qapi/qmp/qdict.h" #include "qapi/qmp/qnum.h" +static int verbosity_level; + #define REF_HZ 25000000 /* Register field definitions. */ @@ -221,7 +223,9 @@ static uint64_t pwm_qom_get(QTestState *qts, const char *path, const char *name) QDict *response; uint64_t val; - g_test_message("Getting properties %s from %s", name, path); + if (verbosity_level >= 2) { + g_test_message("Getting properties %s from %s", name, path); + } response = qtest_qmp(qts, "{ 'execute': 'qom-get'," " 'arguments': { 'path': %s, 'property': %s}}", path, name); @@ -260,8 +264,10 @@ static void mft_qom_set(QTestState *qts, int index, const char *name, QDict *response; char *path = g_strdup_printf("/machine/soc/mft[%d]", index); - g_test_message("Setting properties %s of mft[%d] with value %u", - name, index, value); + if (verbosity_level >= 2) { + g_test_message("Setting properties %s of mft[%d] with value %u", + name, index, value); + } response = qtest_qmp(qts, "{ 'execute': 'qom-set'," " 'arguments': { 'path': %s, " " 'property': %s, 'value': %u}}", @@ -506,9 +512,12 @@ static void mft_verify_rpm(QTestState *qts, const TestData *td, uint64_t duty) int32_t expected_cnt = mft_compute_cnt(rpm, clk); qtest_irq_intercept_in(qts, "/machine/soc/a9mpcore/gic"); - g_test_message( - "verifying rpm for mft[%d]: clk: %" PRIu64 ", duty: %" PRIu64 ", rpm: %u, cnt: %d", - index, clk, duty, rpm, expected_cnt); + if (verbosity_level >= 2) { + g_test_message( + "verifying rpm for mft[%d]: clk: %" PRIu64 ", duty: %" PRIu64 + ", rpm: %u, cnt: %d", + index, clk, duty, rpm, expected_cnt); + } /* Verify rpm for fan A */ /* Stop capture */ @@ -670,6 +679,12 @@ int main(int argc, char **argv) { TestData test_data_list[ARRAY_SIZE(pwm_module_list) * ARRAY_SIZE(pwm_list)]; + char *v_env = getenv("V"); + + if (v_env) { + verbosity_level = atoi(v_env); + } + g_test_init(&argc, &argv, NULL); for (int i = 0; i < ARRAY_SIZE(pwm_module_list); ++i) { From patchwork Tue Feb 14 11:21:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 653460 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp2971317wrr; Tue, 14 Feb 2023 03:23:01 -0800 (PST) X-Google-Smtp-Source: AK7set9cQt1/93G/AH7qshzkYwdwfxunRvkhNyHsaOS03eSkkPqCmgRoYpoTBMCj3WAIQsG2oOHz X-Received: by 2002:ad4:5f89:0:b0:56e:aa8b:90f1 with SMTP id jp9-20020ad45f89000000b0056eaa8b90f1mr4270584qvb.44.1676373780894; Tue, 14 Feb 2023 03:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676373780; cv=none; d=google.com; s=arc-20160816; b=gxGgKqKbTroDwCscXNgb62/w1Dx0TMUEQPeSSfFb85QTAzDHISfuk8aVYdXmO32des /OQwHqXAdcj0ogQgTCCtrCN7jyRyM4PB8jFE7JEfmo/6dFbm0VikTkJ/GxVLe/8kUVxn 8ryi7dCoX1RH74vpRw/i+YJpUU8s/Ng0VaXloDzgOIGLERrG/QyjRM3ecdXLHgVkcuAI YBEIvoy7eYOp4C9GeWyHwHlHI+2PBFKGXy2Je8KjZaKuKxOcSaERad0ERwMsUxW9QyFp VabU+qGHN3PDI7POxeM8yhitdZqRJO2HZC0fsABElH5Upaj0IrEO1UYe9yoJGo8XFoGh aj+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LeP6AKBb23eua5IT5SxgOXnFVX9GQV/mNo4lFMo21dQ=; b=Y+waEZLD3KaezF94X7pUxoONn5eSmIBAJ4vdvfRShvXKlEAytmRbFWxxgq+vP4/yCS btKzinKkoCtJiX+ydGhgu+IuhEynhaQ05GTMvEKtlhEH14kWK8jteV5j7cd3ojAwTk2x Bo3vVfgNfo3a6+IksrNvLQLRi1FYel5iY0VdBCOVad9h8UM4dl/XumE7HJsNS4c7Ge/F NSVo7HujofmKKf4HW0JX9/ZV1lxbVkgYbdhg/Q3ovrYSYS0q5LCk9tjwfQWpFHjCyU04 neHFCu+gExu/Z09crdixAFZVAyjRodzSQzf4l7F1/C0k4S0QhyTXQNI1iJ5JQizyjyGA WxnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b+JxMKVt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b67-20020a379946000000b00722103385casi10492122qke.761.2023.02.14.03.23.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2023 03:23:00 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b+JxMKVt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRtOH-0007Vk-7n; Tue, 14 Feb 2023 06:22:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtOG-0007T3-0w for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRtOE-0002OL-IE for qemu-devel@nongnu.org; Tue, 14 Feb 2023 06:22:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676373746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LeP6AKBb23eua5IT5SxgOXnFVX9GQV/mNo4lFMo21dQ=; b=b+JxMKVtEu6TO8o1puEsxujywc2c453et6MnzNdeOwLs/OhKtEPc32tEjRY2F3rXxPMZXD QVAsgrL+tZAZvIfoByI9lmaNpZ3yKHyeuXGNxdgp43EnKHP6N535MVpC6yHn5u2Db4M55M knj9wbKWYyitd4cznnCGR/V/CqtAeWg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-647-iFudX9RyNfipAgt7TULMJw-1; Tue, 14 Feb 2023 06:22:22 -0500 X-MC-Unique: iFudX9RyNfipAgt7TULMJw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1B78080006E; Tue, 14 Feb 2023 11:22:22 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3516240B40C9; Tue, 14 Feb 2023 11:22:21 +0000 (UTC) From: Thomas Huth To: Peter Maydell , qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Eric Farman Subject: [PULL 22/22] hw/s390x/event-facility: Replace DO_UPCAST(SCLPEvent) by SCLP_EVENT() Date: Tue, 14 Feb 2023 12:21:48 +0100 Message-Id: <20230214112148.646077-23-thuth@redhat.com> In-Reply-To: <20230214112148.646077-1-thuth@redhat.com> References: <20230214112148.646077-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé Use the SCLP_EVENT() QOM type-checking macro to avoid DO_UPCAST(). Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20230212225144.58660-16-philmd@linaro.org> Reviewed-by: Thomas Huth Reviewed-by: Eric Farman Signed-off-by: Thomas Huth --- hw/s390x/event-facility.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c index faa51aa4c7..6891e3cd73 100644 --- a/hw/s390x/event-facility.c +++ b/hw/s390x/event-facility.c @@ -64,8 +64,7 @@ static bool event_pending(SCLPEventFacility *ef) SCLPEventClass *event_class; QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) { - DeviceState *qdev = kid->child; - event = DO_UPCAST(SCLPEvent, qdev, qdev); + event = SCLP_EVENT(kid->child); event_class = SCLP_EVENT_GET_CLASS(event); if (event->event_pending && event_class->get_send_mask() & ef->receive_mask) {