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 CDD4D45DDF; Sat, 30 Nov 2024 14:26:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F30F40267; Sat, 30 Nov 2024 14:26:03 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 9C95D40150 for ; Sat, 30 Nov 2024 14:26:01 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AUDQ0Nl027317; Sat, 30 Nov 2024 05:26:00 -0800 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 4380xp859e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 30 Nov 2024 05:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=awL66AM4c40TrXtvdvIXdYAUEstXxEGNkpz2HASnLmTSNEWhMOQi1OZQw1qAVrCRB4LpazH8YAVb37Zz5Z3soTLAgu7M++RotxGPKPRDctYE+p3GkMwU7FhwM0l07za1NtSuHWmI7Psb1VlMd2X7SWj4YhxyH39uqELo7kZXDlBYP/A67kO7zrR+kzERkml6KNdo0usXj31BSLEV+n+GYt0hwmdZFfHpBNvFrivCMe5ejPGXB/ewqnXeNHfvNPtfh6pfbXU8tO+xW7O2zlzXUTDA/lhSRAPEo1lJJRGaqRUjihkHXOwazVV/J7gbPGSyxWMvTD/WxXtBdsjIU/YfnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iqcbE8w84eoCJp3monugtTZP2ZuXOeyq6WADDMGyYfQ=; b=DiNRGWcm4/RX9VmeBC+9D1ZucavlX+AYYKx6WoEzsr4mx30E6OikzsUSTleGgJMfD30U3rPrlzi11wHwE3Q2WLRlW/KblqeUsFultTpEEB3juPeC5zMkviMTGdkCynz1l1i3G5C9YQHrUp0IYUCUx4vUdXg+I8uUSm4/qiINMiGUexCu4+Q+YMIn11aTkHl9YxeeHcE5U7zUS/FRMbmP5ERh/E4EYoGOc8IySGmrf2Lx0mqC98hd+bboKzMJUfHEqpBDkL6jST1y3XuKb3dbjO/tFDrr8lqRp0yeAz+FEt+fETlGSAbMUeyrGb9cWgyiifKcarkIY1cufsUjv0YfCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iqcbE8w84eoCJp3monugtTZP2ZuXOeyq6WADDMGyYfQ=; b=cCssEaBQuZwMcqn/y5OLpkjhJFsdD0hO+zGsFHdq0ruH+4dakaVAz1e/qw3astpcvZXvj56Es4AwGYzOyqSA35SAQtVVvSQDimOlmDWvYO3TqXxeTRJ2ZVwyzsnWNhCEU0EJ4nVnQI28FCzE958F3QW/dr7lMWJl0Gl4uyTbrnU= Received: from BY3PR18MB4785.namprd18.prod.outlook.com (2603:10b6:a03:3cc::18) by SN7PR18MB5293.namprd18.prod.outlook.com (2603:10b6:806:2e5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.16; Sat, 30 Nov 2024 13:25:56 +0000 Received: from BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::4f9f:e101:dad7:c576]) by BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::4f9f:e101:dad7:c576%4]) with mapi id 15.20.8207.014; Sat, 30 Nov 2024 13:25:55 +0000 From: Jerin Jacob To: Adel Belkhiri , Thomas Monjalon CC: "dev@dpdk.org" , Sunil Kumar Kori Subject: RE: [EXTERNAL] Re: When the trace buffers are saved to disk? Thread-Topic: [EXTERNAL] Re: When the trace buffers are saved to disk? Thread-Index: AQHbQlQgDCSFvkTS/Eeabrt5lo4G9bLOuOsAgAAMSQCAAABPAIABC+VA Date: Sat, 30 Nov 2024 13:25:55 +0000 Message-ID: References: <9370936.CDJkKcVGEf@thomas> <1953300.taCxCBeP46@thomas> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4785:EE_|SN7PR18MB5293:EE_ x-ms-office365-filtering-correlation-id: 364d2316-e67c-491a-4e26-08dd1142853a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?Ty9KMDQvaWliR05VQ1FsZS9GWDVBdXZFd2k4cW1wU0JDTUloYWFEWnlRS2Q3?= =?utf-8?B?bXE5K1o4TzFRTmc2NFJzU0VSYXZaWklsY2RocDV0LzRLWUM1VHBHNjdVOHBO?= =?utf-8?B?NVpKTGhLMzUwK0FJNi9PS0ZkZ2gzSnVZc1hYb3Rsd3FmRGtaTitIdExEeHpu?= =?utf-8?B?bzFpaHYwRkhDZ0t1NWpPQ2RwSlZ0WGsvL1l0SWN5U1pOKzRXODd4U0xqYWdz?= =?utf-8?B?alRuSlRMV1RCZ2R4UVdzR21HVXNIcnFxTzNWUjRq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(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?SElKNU9WZGEvRmpnRUZWNUMwdlp1NDgvbVEycjZvQUF6UkZWVEg4dDlCVGVV?= =?utf-8?B?NTRIWjd2VTJiSEtQOVRoNTVMcjV1SW9uR1RKV2p0VGh5b1p2d3p2bmNFMG9h?= =?utf-8?B?VHhESHNlYThSVGd2cCtSc2dlOEJmRTRkUnNCR1p4RmVDSkY4Q1E2Ui9pWUZl?= =?utf-8?B?NnhhemFvTHNLQXBzR2JLWHVJNmFSQWhIZ3JJdFNmV1ZsTjgyR29sVGIzQ0xO?= =?utf-8?B?ZGdpbVdlbDMyZXVDZEtsdE50L1QrcG9HQ08vbWZtbGgvLysvRFFFeEFrRE8z?= =?utf-8?B?WmNkQzVWQXFIZGFqMlVqM2h4dGg3TzhibVp5N3A3Z1lIMG1qNkxUc0Z0VWRF?= =?utf-8?B?Q0V0NjlrVHJKWWorRkFPeXVmYldjTDk2emRidXB2cXNlaS9IaThTTENxblR2?= =?utf-8?B?ZFMvaG91eCs1dURnVjFOTm5RZlRrVWJ5QjlpeExhM2pSVkttcEtvL0FZMWF1?= =?utf-8?B?TFFOOHpqRlNEZmxJMVpBZkQ5RG1nL2lHc0pIbEVqUS9IWGc3RTFkMm5kY0xm?= =?utf-8?B?L050VitrK1pXVEw5RW5vYkY5VkZqeldMQ2FINThwT2d4Mk9McnA4b29kampS?= =?utf-8?B?SFpWdnQxK2JQUVR1a0lLcWd4OXBGTVc3WDhZUG54b1lMRmhnRXdmdXpCWjJX?= =?utf-8?B?Rndpb3JRSGk3T3RDNG5zR0RLMm5iMmJOa3kwdk5Hc2tlU1BPWC9sNDRrY2lJ?= =?utf-8?B?VVBTODExT2k2SGQrMWhpRStZTkJlY3kzWXZhYVArRm1qRVhhVjRhalEyaGV6?= =?utf-8?B?WldiQzl6aFNuKzhuYUlHck9hbDFXcHo1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FpJQTl0ZjVZQkd2aVB2bTRKdDZTOUZreXJSTzdrWmRLdmt6T1RkQzdi?= =?utf-8?B?bWZSUFFxRy96a3RoUGhxSjBJZjFqY3RqM2Q2TjB3TnQ4RmJQaFhrWHowb3pi?= =?utf-8?B?cnVybURDdExFNWoxaThaR2x4WCtDU2ZlQjVHcytETTNjYmUyYWpLVnlrSTh4?= =?utf-8?B?czlmdDFwc1BOcFJ6QWUyNTlVRWZQU1ltKzJrS01UbkcrRjZ0ditJbWk3VjJa?= =?utf-8?B?cFcwMVVSU3QzaWJSeCtZaC90ekROTWh3NmZ0UVVkK2paWFk1MjhzR0FTVE9x?= =?utf-8?B?RWo5MkpkbHJ2YnhlWTNFVWVvVm51Qk9HdUtobFJsUnZhQWFCbGpxVHEzVzZG?= =?utf-8?B?Rk5SVWtYdzMyYmsxa09XWUFqN1h4YkpmWXNTOG5pcU5vUlY2RituREVmd2Rp?= =?utf-8?Q?jcqY=3D?= MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4785.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 364d2316-e67c-491a-4e26-08dd1142853a X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2024 13:25:55.6746 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NJkC9QLe5tiH8snIVrJ7qTbdG3ZDKBcVUGP+I+WvW/MSGjCRlDh6+IhSV0VZ3+0al5OtHy8HP/IPLJH991UmOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR18MB5293 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: g0RwVPqLy5QOt4x4V7iBngQ1meojtBLS X-Proofpoint-ORIG-GUID: g0RwVPqLy5QOt4x4V7iBngQ1meojtBLS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 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 > -----Original Message----- > From: Adel Belkhiri > Sent: Saturday, November 30, 2024 2:55 AM > To: Thomas Monjalon > Cc: dev@dpdk.org; Jerin Jacob ; Sunil Kumar Kori > > Subject: [EXTERNAL] Re: When the trace buffers are saved to disk? >=20 > Thank you for your answer. On Fri, Nov 29, 2024 at 4:=E2=80=8A23 PM Thoma= s Monjalon > wrote: 29/11/2024 21:=E2=80=8A39,= Adel Belkhiri: > Thank you > for the clarification, Thomas. Indeed, the documentation for the > trace = library >=20 > Thank you for your answer. >=20 > On Fri, Nov 29, 2024 at 4:23=E2=80=AFPM Thomas Monjalon > wrote: >=20 >=20 > 29/11/2024 21:39, Adel Belkhiri: > > Thank you for the clarification, Thomas. Indeed, the documentation > for the > > trace library is kind of limited. If you don't mind, I have another > > question: Would it be useful to have an API to register a callback (to > save > > trace data) when the buffer is full? >=20 > I suppose yes, the problem being which thread is running file writing. Each thread has separate channels i.e separate memory. it is OK. Main problem will be it can stall trace emission (e.s.p in fastpath) as the= se medium (storage or network) will be slow to transfer. >=20 > I leave it to the maintainers of the trace library. >=20 >=20 > > On Fri, Nov 29, 2024 at 6:44=E2=80=AFAM Thomas Monjalon > > wrote: > > > 28/11/2024 20:17, Adel Belkhiri: > > > > Hi all, > > > > > > > > Recently, while tracing applications from the apps and examples > > > > directories, I became confused about when the trace buffer is > written to > > > > disk. Is the trace data saved only when rte_save_trace() is called, > or > > > does > > > > > > It is rte_trace_save() > > > > > > > it also automatically save when the buffer becomes full? > > > > > > No, DPDK is not doing such thing without user agreement. > > > > > > > From my understanding, rte_save_trace() is invoked when the > application > > > > executes rte_eal_cleanup(). Does this mean the target application > needs > > > to > > > > explicitly support tracing by calling rte_save_trace()=E2=80=94per= haps at > regular > > > > intervals=E2=80=94to dump the trace buffer to disk? Otherwise, wil= l we > only get a > > > > fragment of the trace saved during rte_eal_cleanup() execution? > > > > > > Yes you get it right. > > > > > > > Thank you for clarifying this point. > > > > > > Thanks for asking. > > > > > > If you think the doc below is not clear enough, > > > do not hesitate to submit a patch to make the doc better: > > > > > > https://doc.dpdk.org/guides/prog_guide/trace_lib.html > 3A__doc.dpdk.org_guides_prog-5Fguide_trace- > 5Flib.html&d=3DDwMFaQ&c=3DnKjWec2b6R0mOyPaz7xtfQ&r=3D1DGob4H4rxz6H8uIT > ozGOCa0s5f4wCNtTa4UUKvcsvI&m=3DPK0ws3Dbdr_mMLx2eKS2mDDFfgTq6zBtfr > VM5C6twScLE3HMylemVgzhtcl_YzoO&s=3DE7gtIuTFNmRwZ_mZBpAI9PjOKZYpvW > Mytuj_TdSkLvE&e=3D> >=20 >=20 >=20 >=20