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 A59C341D9C; Tue, 28 Feb 2023 13:04:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41E3640EE4; Tue, 28 Feb 2023 13:04:57 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 32FA54021F for ; Tue, 28 Feb 2023 13:04:56 +0100 (CET) Received: from frapeml100006.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PQwwW54cJz6J9bP; Tue, 28 Feb 2023 20:02:35 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100006.china.huawei.com (7.182.85.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 28 Feb 2023 13:04:55 +0100 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.021; Tue, 28 Feb 2023 13:04:55 +0100 From: Konstantin Ananyev To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , "Tomasz Duszynski" , Konstantin Ananyev , "dev@dpdk.org" Subject: RE: [EXT] Re: [PATCH v11 1/4] lib: add generic support for reading PMU events Thread-Topic: [EXT] Re: [PATCH v11 1/4] lib: add generic support for reading PMU events Thread-Index: AQHZQi/0WtsdB195/EyIqAkaKgLk/K7YoA2AgAnj+wCAAMG3wIAAzl6AgAA/7PA= Date: Tue, 28 Feb 2023 12:04:55 +0000 Message-ID: <6bf789b7ba4e4a8e847431a130372a4b@huawei.com> References: <20230213113156.385482-1-tduszynski@marvell.com> <20230216175502.3164820-1-tduszynski@marvell.com> <20230216175502.3164820-2-tduszynski@marvell.com> <5dfb1803-ae7f-5361-6453-70f767041928@yandex.ru> <2be9393cdbb94b9dad5bb7340ab9bca0@huawei.com> <98CBD80474FA8B44BF855DF32C47DC35D87790@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D87790@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.138.42] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected 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 DQo+ID4gPiA+PiBBZGQgc3VwcG9ydCBmb3IgcHJvZ3JhbW1pbmcgUE1VIGNvdW50ZXJzIGFuZCBy ZWFkaW5nIHRoZWlyIHZhbHVlcyBpbg0KPiA+ID4gPj4gcnVudGltZSBieXBhc3Npbmcga2VybmVs IGNvbXBsZXRlbHkuDQo+ID4gPiA+Pg0KPiA+ID4gPj4gVGhpcyBpcyBlc3BlY2lhbGx5IHVzZWZ1 bCBpbiBjYXNlcyB3aGVyZSBDUFUgY29yZXMgYXJlIGlzb2xhdGVkIGkuZQ0KPiA+ID4gPj4gcnVu IGRlZGljYXRlZCB0YXNrcy4gSW4gc3VjaCBjYXNlcyBvbmUgY2Fubm90IHVzZSBzdGFuZGFyZCBw ZXJmDQo+ID4gPiA+PiB1dGlsaXR5IHdpdGhvdXQgc2FjcmlmaWNpbmcgbGF0ZW5jeSBhbmQgcGVy Zm9ybWFuY2UuDQo+ID4gPiA+Pg0KPiA+ID4gPj4gU2lnbmVkLW9mZi1ieTogVG9tYXN6IER1c3p5 bnNraSA8dGR1c3p5bnNraUBtYXJ2ZWxsLmNvbT4NCj4gPiA+ID4+IEFja2VkLWJ5OiBNb3J0ZW4g QnLDuHJ1cCA8bWJAc21hcnRza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