From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 488C6A0583; Thu, 19 Mar 2020 20:07:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B7DDF1C067; Thu, 19 Mar 2020 20:07:02 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40059.outbound.protection.outlook.com [40.107.4.59]) by dpdk.org (Postfix) with ESMTP id 763901C065 for ; Thu, 19 Mar 2020 20:07:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iyro99ZSr5VRl2c9vjaNnle4qEcJIt3SY69gJFxAWfYwCk+rY6ocmXnLw2q5cYnuv5ELLHr4wi8hofHE7XOFjSnRx6+qGxR4vBxrjiJTYaQ5CUTGldZaKbK5zqRDKUdhUu7JIf73aNndRXEc92wpCvh0xP/XPwHgmCtSlDLfYhEOXcwkEmq5BpIyO3TQLUDFVqFHh5WkpPz4NtS6AlqBTvRE7FpgJWspvEiKbw7k5hj8RzTshQycy5x+Uv4z9znmboO0Gv9Iz8OfBcWvxiRcsZhgyAKRInkKBV6amzhvJPfvTyDUnk9zCIzIWRFSZS92b1yDbSaf4cWmMpCW1P0Maw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FqhIb2kkFlkkwpcl9CA61bnpIU3EThqtX3WhKDa28SM=; b=JwFfJIhaYYYgRMO6G3p3sdMylTURyo9F1zylFiLneB4W5AYRpEjkzcWDEvUZwxrLeNng1D3xNMQnieXcqmMUFU8b3e2QUGNQCISB1ti8yjSQ2AZDITpL0aHRNGXiy7FH4zokRnRT9jsT5TwDXNfpeLksyML11YGOZ7v0bWdcYbd28HR+UekIVk6FwZUTRWH9GsGVqNTfZnRxMrY4PVlXy1+aRJJ0W7QUmgWJFyD6v7e/t9/HBCQiMvqDnTdZqocGb6TYYA0AuolvpKS67I8pQVsFFYd6rZl6MsDl6FbPZtU8+8agrYSNLlKHONBl5h6SawU4kxqZWzKB0MDFPP2pKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FqhIb2kkFlkkwpcl9CA61bnpIU3EThqtX3WhKDa28SM=; b=C/E+uKqRQw2hYiR+PA7rkWEMmOMlkSzRj6OuiOGMvgrzYwCTPxn6oSoQVGxEE4RndIZzCV1oWTdCgck/2XrCf5uEyRT0zcGdZ31OoSbVk6xwbzt6Ne6gnEofHa9S07c3Au4Uu9tN1n8bTK0VkZdnvULDeLU6Nj3LUaweYuRFWEo= Received: from AM6PR07MB4069.eurprd07.prod.outlook.com (52.134.116.150) by AM6PR07MB4712.eurprd07.prod.outlook.com (20.177.37.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.15; Thu, 19 Mar 2020 19:07:00 +0000 Received: from AM6PR07MB4069.eurprd07.prod.outlook.com ([fe80::3571:9cc1:f037:cd3c]) by AM6PR07MB4069.eurprd07.prod.outlook.com ([fe80::3571:9cc1:f037:cd3c%7]) with mapi id 15.20.2835.017; Thu, 19 Mar 2020 19:07:00 +0000 From: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= To: "jerinj@marvell.com" , Sunil Kumar Kori CC: "dev@dpdk.org" , "thomas@monjalon.net" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" Thread-Topic: [dpdk-dev] [PATCH v1 11/32] eal/trace: implement trace save Thread-Index: AQHV/VglCYZIwQYjQUCRDdtommrjEKhQSHCA Date: Thu, 19 Mar 2020 19:07:00 +0000 Message-ID: <940db31d-6901-1167-06cc-60c9f9e87705@ericsson.com> References: <20200318190241.3150971-1-jerinj@marvell.com> <20200318190241.3150971-12-jerinj@marvell.com> In-Reply-To: <20200318190241.3150971-12-jerinj@marvell.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=mattias.ronnblom@ericsson.com; x-originating-ip: [95.205.7.115] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7feb7008-3412-4f3a-4da2-08d7cc38b427 x-ms-traffictypediagnostic: AM6PR07MB4712: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:541; x-forefront-prvs: 0347410860 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(136003)(376002)(39860400002)(366004)(199004)(5660300002)(76116006)(110136005)(66946007)(81156014)(36756003)(26005)(86362001)(2616005)(81166006)(31686004)(66556008)(85202003)(53546011)(85182001)(186003)(91956017)(66446008)(64756008)(54906003)(8676002)(6506007)(66476007)(6512007)(8936002)(4326008)(71200400001)(6486002)(316002)(31696002)(478600001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR07MB4712; H:AM6PR07MB4069.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HExGckMlJfeE5vWogohFI/NEoqpHwDgdtFr+W2Up1LjPwVMoqTFBa52BdqDjCKMtq292iw+a6mE9Z3NduxH+7PhsHngU1Ky4Vgoy1TJSr2zZ6p+m6sI/95T1J2crffTjfmjNhLmSwM5VX3WhR8BcvASXk+3gt6WggqJRXdyNKDcyy2J4adzfdjNttqD0fGpj2NL9e5asq/aCD2akemfo+GcmXD3iKg6BzDmefRIJQeySp3gGTSQNp6cBulkafPOdqDdnkWyN5+kWXjwlmY9IeujuLlCpm7P4ViA7bgr2AL7msMDQq9WcXgb+6AynUBK3eGACFb5qENvJ5aibMIV8bw+m/kBnQaUFg9GUyCTzLMx3b4jVkPQy7+t7HgsH5fx94z3mOFlMED5TYrAz7wXoHGLsLUjSI2JdnotDIFF8pjMXNDR5A76EyLGuZ1QPV8RQ x-ms-exchange-antispam-messagedata: 8T4h3v8DDd1OLcTJDhXPCNuLbjA8wQbHxGO6rj7XPOeUCsDQcUZUVFv/5RvoRhq74h7I5YXCcwYwc/yE2Dyp/AmX8NqU0NHCZi3hkjnj0yclFQ6/c9MLC0xJ9gtuhTiTSWDjJMRqaVTw3MQthYaFEQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <74BBBEAF47D65A4E820B95EABCFD7DF3@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7feb7008-3412-4f3a-4da2-08d7cc38b427 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2020 19:07:00.7524 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dOWkra8fVCXZEtZOJqrQOFcAv6XRLOvpNItjkMO1jG6bSlV8R9AEsmnh2Rs4BaNWCXupuOYHf4XfRNkIDihliiFAvpg/7r67oA2nlFgypcs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR07MB4712 Subject: Re: [dpdk-dev] [PATCH v1 11/32] eal/trace: implement trace save X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" T24gMjAyMC0wMy0xOCAyMDowMiwgamVyaW5qQG1hcnZlbGwuY29tIHdyb3RlOg0KPiBGcm9tOiBK ZXJpbiBKYWNvYiA8amVyaW5qQG1hcnZlbGwuY29tPg0KPg0KPiBJbXBsZW1lbnQgcnRlX3RyYWNl X3NhdmUoKSwgd2hpY2ggd2lsbCBzYXZlIHRoZSBtZXRhZGF0YQ0KPiBmaWxlIGFuZCB0cmFjZSBt ZW1vcnkgc25hcHNob3QgdG8gdGhlIHRyYWNlIGRpcmVjdG9yeS4NCj4NCj4gU2lnbmVkLW9mZi1i eTogSmVyaW4gSmFjb2IgPGplcmluakBtYXJ2ZWxsLmNvbT4NCj4gLS0tDQo+ICAgLi4uL2NvbW1v bi9lYWxfY29tbW9uX3RyYWNlX3V0aWxzLmMgICAgICAgICAgIHwgNzUgKysrKysrKysrKysrKysr KysrKw0KPiAgIGxpYi9saWJydGVfZWFsL3J0ZV9lYWxfdmVyc2lvbi5tYXAgICAgICAgICAgICB8 ICAxICsNCj4gICAyIGZpbGVzIGNoYW5nZWQsIDc2IGluc2VydGlvbnMoKykNCj4NCj4gZGlmZiAt LWdpdCBhL2xpYi9saWJydGVfZWFsL2NvbW1vbi9lYWxfY29tbW9uX3RyYWNlX3V0aWxzLmMgYi9s aWIvbGlicnRlX2VhbC9jb21tb24vZWFsX2NvbW1vbl90cmFjZV91dGlscy5jDQo+IGluZGV4IGRi ZWIzNjY2OC4uMjMwZTRhYzk1IDEwMDY0NA0KPiAtLS0gYS9saWIvbGlicnRlX2VhbC9jb21tb24v ZWFsX2NvbW1vbl90cmFjZV91dGlscy5jDQo+ICsrKyBiL2xpYi9saWJydGVfZWFsL2NvbW1vbi9l YWxfY29tbW9uX3RyYWNlX3V0aWxzLmMNCj4gQEA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