From nobody Sun May 19 05:50:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1675158172; cv=none; d=zohomail.com; s=zohoarc; b=T5btcTNfF5xXdTecDmeyIwifa/4QeRSRqCuVYyUy/AT4UAmcY7LJRK73QjPq1CofmqEnFQN/PQhlDtgBAIK71vFplIyTcY2Zw5zdUrmhZiMqv+E1JzS1Fr/z07ZMAZ5RZ95zRiLUjWpc/LrGvbCvHKCNy+h9J8BZ4Oidda8Jw3k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675158172; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=OLR+bI0/lJP2K0uDO1O4tQXfXXXstBm7WjMh3wgoSZY=; b=FUmbtGdsPzTqfkH+UE4baWvoTBhQdFPInPzsQpkgxCpLng0j6o6gfln33mWUPRReYawvnI1ji+XNEcg2gD9Sw78FOPGOXnLC+PQK/jLxhYJE/7j1Mu/OyRLfCFQ8vXGlTxOoVe3IFqorD6oxlGDaDaakIrBQeRZBsA60Sp5UVCQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1675158172196682.603879966219; Tue, 31 Jan 2023 01:42:52 -0800 (PST) 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-614-t4civ3MFNPOl9CoJ-OThdQ-1; Tue, 31 Jan 2023 04:42:47 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 34446855304; Tue, 31 Jan 2023 09:42:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 389D214171B6; Tue, 31 Jan 2023 09:42:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B35741946589; Tue, 31 Jan 2023 09:42:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E5AB01946587 for ; Tue, 31 Jan 2023 09:42:40 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B533A40C141B; Tue, 31 Jan 2023 09:42:40 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ACDE840C1255 for ; Tue, 31 Jan 2023 09:42:40 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8F3BD3C0F220 for ; Tue, 31 Jan 2023 09:42:40 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-564--4RVogKXNcecrvY_4UOIfw-1; Tue, 31 Jan 2023 04:42:39 -0500 Received: by mail-wm1-f45.google.com with SMTP id l8so9880519wms.3 for ; Tue, 31 Jan 2023 01:42:38 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id 3-20020a05600c248300b003db0ad636d1sm8311909wms.28.2023.01.31.01.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 01:42:37 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CC1E51FFB7; Tue, 31 Jan 2023 09:42:36 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675158171; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OLR+bI0/lJP2K0uDO1O4tQXfXXXstBm7WjMh3wgoSZY=; b=iu7W/VqzTYpjcrk77BNNStqNP6SaTAV4JncaS5osiZ5L5y1NSjphNxvRnbD/Es8Tl53mNy r1LeWAkkvn6Dp0U7cEPsR0rkQNJw+XVItRilEnutMetud5RMMAprAHndHQvXSqUVQHAOyq NApQWEnr2qy7pku9KonKNaTNRuIsLko= X-MC-Unique: t4civ3MFNPOl9CoJ-OThdQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: -4RVogKXNcecrvY_4UOIfw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OLR+bI0/lJP2K0uDO1O4tQXfXXXstBm7WjMh3wgoSZY=; b=MaLPmkHAOVmkglkdCHf9yHgrvkGFedWIi2VDItBxqFK9nyPDtnq+rOdgfE5v26s7Uh Uc+GP/ECmb+y1+kGotGIxDIZNtlyAy9WSMgocEbNOEUx3tDbKIwYOfNeZCaLzyclawa3 us5W3RKAeWa6Rh4yMypblAXvFDimvHPZdH+p4UVZk3BfM3Ywjl0x4yt5sowD1WKaluL4 xPNTSKcjj/qvZkv1fqH2bWPQyMKBvHJNBKB/oAyH8V+OH/WiBBswIp2xu4cY1FY+/0G8 3d0BoQp67CmVToxOME5rzcFBuEileNBcNxM1XJ7ElCRjw6rARFJKck+xyXsP/ZhM/zLR kamg== X-Gm-Message-State: AO0yUKUTJo/c8K4eUKxsoFsdh0WfvjQhY/eYdeQH/T5W0hR67cREjWlM kD7K++4UHprRCN0DKOQRWBsIzQ== X-Google-Smtp-Source: AK7set8RlKM8vG38WVoqQtrsm1meNE9iY+5lSaA89e3qKeyvjjnHkWG/HEKknlEoxSqCm3+oXM4Weg== X-Received: by 2002:a05:600c:3d18:b0:3dc:2c58:e6f2 with SMTP id bh24-20020a05600c3d1800b003dc2c58e6f2mr18525551wmb.4.1675158157740; Tue, 31 Jan 2023 01:42:37 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH] build: deprecate --enable-gprof builds and remove from CI Date: Tue, 31 Jan 2023 09:42:23 +0000 Message-Id: <20230131094224.861621-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Beraldo Leal , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "reviewer:Incompatible changes" , Wainer dos Santos Moschetta , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1675158176128100001 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. Signed-off-by: Alex Benn=C3=A9e Cc: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-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 9f1bbc495d..87b4511535 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. =20 +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 -------------------------------------- =20 diff --git a/meson.build b/meson.build index 56320ae717..ecf44ea534 100644 --- a/meson.build +++ b/meson.build @@ -3791,7 +3791,12 @@ summary_info +=3D {'mutex debugging': get_option('= debug_mutex')} summary_info +=3D {'memory allocator': get_option('malloc')} summary_info +=3D {'avx2 optimization': config_host_data.get('CONFIG_AVX2_= OPT')} summary_info +=3D {'avx512f optimization': config_host_data.get('CONFIG_AV= X512F_OPT')} -summary_info +=3D {'gprof enabled': get_option('gprof')} +if get_option('gprof') + gprof_info =3D 'YES (deprecated)' +else + gprof_info =3D get_option('gprof') +endif +summary_info +=3D {'gprof': gprof_info} summary_info +=3D {'gcov': get_option('b_coverage')} summary_info +=3D {'thread sanitizer': config_host.has_key('CONFIG_TSAN')} summary_info +=3D {'CFI support': get_option('cfi')} diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 9a6ba1fe3b..dc8fa0a498 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -468,27 +468,16 @@ tsan-build: TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user MAKE_CHECK_ARGS: bench V=3D1 =20 -# 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 559a571b6b..53459c15fc 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -316,7 +316,8 @@ option('debug_stack_usage', type: 'boolean', value: fal= se, 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', --=20 2.34.1