From nobody Sat May 4 05:56:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.37 as permitted sender) client-ip=209.132.183.37; envelope-from=libvir-list-bounces@redhat.com; helo=mx5-phx2.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.37 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by mx.zohomail.com with SMTPS id 148948204056346.66899540363647; Tue, 14 Mar 2017 02:00:40 -0700 (PDT) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v2E8tg7I005274; Tue, 14 Mar 2017 04:55:43 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2E8tfNA003662 for ; Tue, 14 Mar 2017 04:55:41 -0400 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v2E8tfDq004311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 14 Mar 2017 04:55:41 -0400 Received: from mo4-p04-ob.smtp.rzone.de (mo4-p04-ob.smtp.rzone.de [81.169.146.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4EF4880F7B for ; Tue, 14 Mar 2017 08:55:39 +0000 (UTC) Received: from probook (aftr-62-216-207-80.dynamic.mnet-online.de [62.216.207.80]) by smtp.strato.de (RZmta 40.1 SBL|AUTH) with ESMTPSA id h0a53dt2E8ta9wp (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 14 Mar 2017 09:55:36 +0100 (CET) Received: by probook (Postfix, from userid 1000) id BC4E450BA5; Tue, 14 Mar 2017 09:55:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1489481736; l=870; s=domk; d=aepfle.de; h=Date:Subject:Cc:To:From; bh=a48f+Wpsbta5ftxWhKdjEF0U3iJtRlJCxoKzzrs2+Tc=; b=MkP6NH3grZ7T5zDNYh0NoDGnNc9Sa+RX3Vhi4CvgfrmmJMETxpu17IEC/mNcdle2oc j2Kn1qgDA0Hw3pPuZZBGRX7oSXJKhdZGw73JylSVkEtwuhp2GXwO95dVjels3CQifyHP fpPCSatzvvMjqtIhBe6cNlPgttX1A222qTsVI= X-RZG-CLASS-ID: mo04 X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWz/R9V/pQ+ca145P2Qe From: Olaf Hering To: libvir-list@redhat.com Date: Tue, 14 Mar 2017 08:55:30 +0000 Message-Id: <20170314085530.15877-1-olaf@aepfle.de> X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 203 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 14 Mar 2017 08:55:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 14 Mar 2017 08:55:40 +0000 (UTC) for IP:'81.169.146.177' DOMAIN:'mo4-p04-ob.smtp.rzone.de' HELO:'mo4-p04-ob.smtp.rzone.de' FROM:'olaf@aepfle.de' RCPT:'' X-RedHat-Spam-Score: -0.02 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL) 81.169.146.177 mo4-p04-ob.smtp.rzone.de 81.169.146.177 mo4-p04-ob.smtp.rzone.de X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-loop: libvir-list@redhat.com Cc: Olaf Hering Subject: [libvirt] [PATCH] virtperf: Revert PERF_COUNT_HW_REF_CPU_CYCLES conditional X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" All PERF_* names are enmus. Enums are ordinary code for CPP. An ifdef does not trigger. Fixes 1d29c889a ("Make use of PERF_COUNT_HW_REF_CPU_CYCLES conditional") Signed-off-by: Olaf Hering --- src/util/virperf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/util/virperf.c b/src/util/virperf.c index e39cebbe0..33039544a 100644 --- a/src/util/virperf.c +++ b/src/util/virperf.c @@ -108,13 +108,8 @@ static struct virPerfEventAttr attrs[] =3D { .attrType =3D PERF_TYPE_HARDWARE, .attrConfig =3D PERF_COUNT_HW_STALLED_CYCLES_BACKEND}, {.type =3D VIR_PERF_EVENT_REF_CPU_CYCLES, -# ifdef PERF_COUNT_HW_REF_CPU_CYCLES .attrType =3D PERF_TYPE_HARDWARE, .attrConfig =3D PERF_COUNT_HW_REF_CPU_CYCLES -# else - .attrType =3D 0, - .attrConfig =3D 0, -# endif }, {.type =3D VIR_PERF_EVENT_CPU_CLOCK, .attrType =3D PERF_TYPE_SOFTWARE, -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list