From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D609845B50; Wed, 16 Oct 2024 10:49:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99D0240144; Wed, 16 Oct 2024 10:49:41 +0200 (CEST) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 091DC400D6 for ; Wed, 16 Oct 2024 10:49:40 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4XT4Nt4vh5z6J6vv; Wed, 16 Oct 2024 16:47:58 +0800 (CST) Received: from frapeml500007.china.huawei.com (unknown [7.182.85.172]) by mail.maildlp.com (Postfix) with ESMTPS id DD4DC140A71; Wed, 16 Oct 2024 16:49:38 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml500007.china.huawei.com (7.182.85.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 16 Oct 2024 10:49:38 +0200 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.039; Wed, 16 Oct 2024 10:49:38 +0200 From: Konstantin Ananyev To: Tomasz Duszynski , Thomas Monjalon CC: "Ruifeng.Wang@arm.com" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" , "dev@dpdk.org" , Jerin Jacob , "konstantin.v.ananyev@yandex.ru" , "mattias.ronnblom@ericsson.com" , "mb@smartsharesystems.com" , "roretzla@linux.microsoft.com" , "zhoumin@loongson.cn" , "stephen@networkplumber.org" Subject: RE: [PATCH v14 1/4] lib: add generic support for reading PMU events Thread-Topic: [PATCH v14 1/4] lib: add generic support for reading PMU events Thread-Index: AQHbG8L+LupSgwrGO0yTBV3TByrxGbKBUHkggAYZ/ACAAaI6oA== Date: Wed, 16 Oct 2024 08:49:38 +0000 Message-ID: <083a1f7e27e94868b1917e92377b75a9@huawei.com> References: <20241009112308.2973903-1-tduszynski@marvell.com> <20241011094944.3586051-1-tduszynski@marvell.com> <20241011094944.3586051-2-tduszynski@marvell.com> <660c6a2a24fd4cd785333881208fb659@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.195.35.60] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org DQoNCj4gPj4gK2ludA0KPiA+PiArX19ydGVfcG11X2VuYWJsZV9ncm91cCh2b2lkKQ0KPiA+PiAr ew0KPiA+PiArCXN0cnVjdCBydGVfcG11X2V2ZW50X2dyb3VwICpncm91cCA9ICZSVEVfUEVSX0xD T1JFKF9ldmVudF9ncm91cCk7DQo+ID4+ICsJaW50IHJldDsNCj4gPj4gKw0KPiA+PiArCWlmIChy dGVfcG11Lm51bV9ncm91cF9ldmVudHMgPT0gMCkNCj4gPj4gKwkJcmV0dXJuIC1FTk9ERVY7DQo+ ID4+ICsNCj4gPj4gKwlyZXQgPSBvcGVuX2V2ZW50cyhncm91cCk7DQo+ID4+ICsJaWYgKHJldCkN Cj4gPj4gKwkJZ290byBvdXQ7DQo+ID4+ICsNCj4gPj4gKwlyZXQgPSBtbWFwX2V2ZW50cyhncm91 cCk7DQo+ID4+ICsJaWYgKHJldCkNCj4gPj4gKwkJZ290byBvdXQ7DQo+ID4+ICsNCj4gPj4gKwlp ZiAoaW9jdGwoZ3JvdXAtPmZkc1swXSwgUEVSRl9FVkVOVF9JT0NfUkVTRVQsIFBFUkZfSU9DX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