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 3F2B245DC2; Thu, 28 Nov 2024 20:17:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB7DA4066D; Thu, 28 Nov 2024 20:17:39 +0100 (CET) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mails.dpdk.org (Postfix) with ESMTP id 6B31C40663 for ; Thu, 28 Nov 2024 20:17:38 +0100 (CET) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-aa5325af6a0so148918066b.2 for ; Thu, 28 Nov 2024 11:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732821457; x=1733426257; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1qXgJuGZMiufsG7R2FsWkUpoxEEMvnQhXfloyfPEtzM=; b=m1dUxBoIF7Y1VUcpgiLduRwX6/++8WrdvTkbrxy9o2vqPFYtjxIPfc68LTpvZXOkeC ryW5g50yIyZ2UXWy9C7+KxN52s42QVDoFGwERLeZugC9h3r1VdwVs+64ej13XzTBu4+B XNfAwwfk3zrAHLvx5WFzE2acUHs94+lzDXXJx3lzQ8M0WMSwEM4yZu78xJ6OpF+68N0Q /VYa1N9fICcApjr5flOOs9sAGTKbqSv003PKH8Ufjw6OG2cW9SRGdqa1zmuAfth0bM49 uOA6UIkqbsgzF92vCK7PyPoL9RSlJo8l5+IykJI8QpP8E6i2b4UpG1Y6OLlEfXOZbaQ2 hSRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732821457; x=1733426257; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1qXgJuGZMiufsG7R2FsWkUpoxEEMvnQhXfloyfPEtzM=; b=Wep+uwD+heCzN+Lb3BjPGUsZgHsu2GKiK7MaeIwiUXy15q6wOI3ocjiPHycXpJ1J5U KDncqQwoAHC0CfglBUo/rPPuTqPbgNmYSn1+szW2skkpGyI1uc9mSUDPtW/Hz0Z0/jr6 tLbJ3Mpo8q/F3UMFEAnvC6BYI+XG1z5RcPaJWha7b0Dacy2BwQTMDdjZLsc90CZF2d4w BoIOAL7w8KdS1NWax6tMPSNayelF8Ol2BwZTr+ZnLqS77a3NSas7Xwe1XHZEvtqvMhLx TlLfrPuHC0cFLbtxE+IVU5RU5g9yeBacyil8aygdvipY2v//hAo/AU2dfjfBsdYCSE/d /UjA== X-Gm-Message-State: AOJu0Yy7wfLqnUIhrlJjOUDeuSALRzCaiBb0wQAC2Jb1rXLAMofWpDmK yNScRCSAOdePpgIhgvvSMm1SR0M/I9JLdU9vkmN0bysaPiu4EEru8ufg4F0fw2+5XgpL7+wPZkn dL+5QhfTCpF8PWmmXPz75kxFHjAU/74SoKts= X-Gm-Gg: ASbGnctBUdsnRgYxQ5Ig/n7SXOR1iFp42gPItIolQ526gzUdavi60QzSOGZb58xqflq HcQ6osQD8J0uidQ7yjKxsUOSbiR7auUwt X-Google-Smtp-Source: AGHT+IEhZL3oeaVE2SnIwpC/0Zwo4Fxsztxb3trIi34UCAKp+57UVhC8L94sQD/EbK3QypgOtGX88tvot1yYTjMyhtQ= X-Received: by 2002:a17:907:784d:b0:a9a:dc3:c86e with SMTP id a640c23a62f3a-aa580edf9femr590523766b.11.1732821457537; Thu, 28 Nov 2024 11:17:37 -0800 (PST) MIME-Version: 1.0 From: Adel Belkhiri Date: Thu, 28 Nov 2024 14:17:26 -0500 Message-ID: Subject: When the trace buffers are saved to disk? To: dev@dpdk.org Content-Type: multipart/alternative; boundary="0000000000006f96630627fdef73" 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 --0000000000006f96630627fdef73 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 also automatically save when the buffer becomes full? >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=94perhaps at r= egular intervals=E2=80=94to dump the trace buffer to disk? Otherwise, will we only= get a fragment of the trace saved during rte_eal_cleanup() execution? Thank you for clarifying this point. Best, Adel --0000000000006f96630627fdef73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Recently, while tracing applications from t= he apps and examples directories, I became confused about when the trace bu= ffer is written to disk. Is the trace data saved only when rte_save_trace()= is called, or does it also automatically save when the buffer becomes full= ?

From my understanding, rte_save_trace() is invoked when the applic= ation executes rte_eal_cleanup(). Does this mean the target application nee= ds to explicitly support tracing by calling rte_save_trace()=E2=80=94perhap= s at regular intervals=E2=80=94to dump the trace buffer to disk? Otherwise,= will we only get a fragment of the trace saved during rte_eal_cleanup() ex= ecution?

Thank you for clarifying this point.

Best,
Adel --0000000000006f96630627fdef73--