From: "Chautru, Nicolas" <nicolas.chautru@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
"maxime.coquelin@redhat.com" <maxime.coquelin@redhat.com>,
"hemant.agrawal@nxp.com" <hemant.agrawal@nxp.com>,
"Vargas, Hernan" <hernan.vargas@intel.com>
Subject: RE: [PATCH v2 3/3] baseband/acc: add internal logging
Date: Fri, 24 Jan 2025 21:21:56 +0000 [thread overview]
Message-ID: <SJ0PR11MB66942DFDBBC2B82F5A4BF8A6F8E32@SJ0PR11MB6694.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20250124100058.5b4de64f@hermes.local>
Hi Stephen,
> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: Friday, January 24, 2025 10:01 AM
> To: Chautru, Nicolas <nicolas.chautru@intel.com>
> Cc: dev@dpdk.org; maxime.coquelin@redhat.com;
> hemant.agrawal@nxp.com; Vargas, Hernan <hernan.vargas@intel.com>
> Subject: Re: [PATCH v2 3/3] baseband/acc: add internal logging
>
> On Fri, 24 Jan 2025 17:52:43 +0000
> "Chautru, Nicolas" <nicolas.chautru@intel.com> wrote:
>
> > Hi Stephen,
> >
> > The commit message may be misleading, the logging interface doesn't
> change here. Note also that I reuse existing trace point framework for some
> of the error logging when relevant (see previous commit).
> > Here the scope for that buffer is more limited, not a new logging method
> really (the commit message is misleading).
> > The queue_ops_dump() already provides api to dump device specific
> information related to queue into file (logging in real time is not an option)
> based on information already in PMD memory.
> > This new buffer is purely there to add storage for the string out of
> rte_bbdev_ops_param_string() for failed operation on that queue, so that
> extend that capture as this info is not stored by PMD.
> > The name of the buffer could be renamed probably, or I could store copy
> of the actual operation instead of the string in case that makes a difference
> for you.
> >
> > I guess it would possible to move this to trace point but I thought it would
> be quite convoluted. That information would fits nicely in the queue dump
> capture, and this would require adding trace point for each operation type (I
> don't believe it can manage arbitrary string) and would be a bit of an
> unconventional use of trace point.
> >
> > Any thought?
> >
> > Thanks
> > Nic
> >
> >
> > > -----Original Message-----
> > > From: Stephen Hemminger <stephen@networkplumber.org>
> > > Sent: Thursday, January 23, 2025 3:24 PM
> > > To: Chautru, Nicolas <nicolas.chautru@intel.com>
> > > Cc: dev@dpdk.org; maxime.coquelin@redhat.com;
> > > hemant.agrawal@nxp.com; Vargas, Hernan <hernan.vargas@intel.com>
> > > Subject: Re: [PATCH v2 3/3] baseband/acc: add internal logging
> > >
> > > On Thu, 23 Jan 2025 14:55:19 -0800
> > > Nicolas Chautru <nicolas.chautru@intel.com> wrote:
> > >
> > > > Adds internal buffer for more flexible logging.
> > > >
> > > > Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> > >
> > > Inventing another device specific error log seems like a short
> > > sighted concept.
> > > Why doesn't existing DPDK logging work well enough?
> >
>
> My feedback is that why can't you just use DEBUG logging for this.
In practice this logging cannot be enabled as this impact real time workload. This is disabled by default for deployment as too intrusive, ie. logging some warning causing application to miss the tight real time constraints.
Hence meaningful logging is being done in practice after the fact using trace point (ie. rte_trace_save()) and/or using the bbdev queue_ops_dump() which are both called outside of real time constraints when we can write to file system.
prev parent reply other threads:[~2025-01-24 21:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 22:55 [PATCH v2 0/3] bbdev: trace point and logging Nicolas Chautru
2025-01-23 22:55 ` [PATCH v2 1/3] bbdev: add trace point Nicolas Chautru
2025-01-23 22:55 ` [PATCH v2 2/3] baseband/acc: " Nicolas Chautru
2025-01-23 22:55 ` [PATCH v2 3/3] baseband/acc: add internal logging Nicolas Chautru
2025-01-23 23:24 ` Stephen Hemminger
2025-01-24 17:52 ` Chautru, Nicolas
2025-01-24 18:00 ` Stephen Hemminger
2025-01-24 21:21 ` Chautru, Nicolas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR11MB66942DFDBBC2B82F5A4BF8A6F8E32@SJ0PR11MB6694.namprd11.prod.outlook.com \
--to=nicolas.chautru@intel.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=hernan.vargas@intel.com \
--cc=maxime.coquelin@redhat.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).