From: Steven Rostedt <rostedt@goodmis.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Sean Anderson <sean.anderson@linux.dev>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Robin Murphy <robin.murphy@arm.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v3] dma: Trace API
Date: Tue, 3 Sep 2024 09:21:54 -0400 [thread overview]
Message-ID: <20240903092154.5f0bfafe@gandalf.local.home> (raw)
In-Reply-To: <20240903072512.GA1521@lst.de>
On Tue, 3 Sep 2024 09:25:12 +0200
Christoph Hellwig <hch@lst.de> wrote:
> On Thu, Aug 29, 2024 at 10:24:52AM -0400, Sean Anderson wrote:
> > >> When debugging drivers, it can often be useful to trace when memory gets
> > >> (un)mapped for DMA (and can be accessed by the device). Add some
> > >> tracepoints for this purpose.
> > >>
> > >> We use unsigned long long instead of phys_addr_t and dma_addr_t (and
> > >> similarly %llx instead of %pa) because libtraceevent can't handle
I think the issue is that libtraceevent doesn't handle "%pa", which I can
fix.
> > >> typedefs.
> > >
> > > and a __u64 would seem like the better type here.
> >
> > libtraceevent can't handle typedefs, including u64.
>
> Weird. The xfs trace events which were some of the first ever are full
> of typedefs and no one ever complained. And looking at other
> trace event definitions they are full of it.
>
> I've added the tracing maintainers to see if we can shed some light
> on this issue.
libtraceevent doesn't even really bother with the types. It gets its
information from the other fields.
For example:
events/x86_fpu/x86_fpu_after_restore/format: field:u64 xfeatures; offset:24; size:8; signed:0;
The "field:u64" is more for humans than the tools. And it can be used for
hints when the printfmt fails to parse. But the libtraceevent really looks
at the "offset", "size" and "signed" to know how to use that number.
-- Steve
next prev parent reply other threads:[~2024-09-03 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-26 20:32 Sean Anderson
2024-08-29 4:19 ` Christoph Hellwig
2024-08-29 14:24 ` Sean Anderson
2024-09-03 7:25 ` Christoph Hellwig
2024-09-03 13:21 ` Steven Rostedt [this message]
2024-09-03 14:36 ` Sean Anderson
2024-09-04 0:53 ` Steven Rostedt
2024-09-04 4:15 ` Christoph Hellwig
2024-09-05 17:00 ` Sean Anderson
2024-09-05 16:59 ` Sean Anderson
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=20240903092154.5f0bfafe@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=hch@lst.de \
--cc=iommu@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sean.anderson@linux.dev \
/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
all inboxes | Powered by JetHome®