From: Steven Rostedt <rostedt@goodmis.org>
To: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Vasily Averin <vvs@openvz.org>,
Shakeel Butt <shakeelb@google.com>,
Ingo Molnar <mingo@redhat.com>,
kernel@openvz.org, linux-kernel@vger.kernel.org,
Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>,
cgroups@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>,
Christoph Lameter <cl@linux.com>,
linux-mm@kvack.org,
"linux-trace-users@vger.kernel.org"
<linux-trace-users@vger.kernel.org>
Subject: Re: [PATCH v2] percpu: improve percpu_alloc_percpu event trace
Date: Sun, 15 May 2022 18:06:40 -0400 [thread overview]
Message-ID: <20220515180640.0ae2ead5@gandalf.local.home> (raw)
In-Reply-To: <YnsgbXKiNNSF+1ZO@carbon>
On Tue, 10 May 2022 19:33:17 -0700
Roman Gushchin <roman.gushchin@linux.dev> wrote:
> --- a/include/trace/events/percpu.h
> > +++ b/include/trace/events/percpu.h
> > @@ -6,15 +6,20 @@
> > #define _TRACE_PERCPU_H
> >
> > #include <linux/tracepoint.h>
> > +#include <trace/events/mmflags.h>
> >
> > TRACE_EVENT(percpu_alloc_percpu,
> >
> > - TP_PROTO(bool reserved, bool is_atomic, size_t size,
> > - size_t align, void *base_addr, int off, void __percpu *ptr),
> > + TP_PROTO(unsigned long call_site,
> > + bool reserved, bool is_atomic, size_t size,
> > + size_t align, void *base_addr, int off,
> > + void __percpu *ptr, size_t bytes_alloc, gfp_t gfp_flags),
>
> Don't we want to preserve the order and add the call_site at the end?
> Trace events are not ABI, but if we don't have a strong reason to break it,
> I'd preserve the old order.
Ideally everyone should be using libtraceevent which will parse the format
file for the needed entries.
Nothing (important) should be parsing the raw ascii from the trace files.
It's slow and unreliable. The raw format (trace_pipe_raw) files, along with
libtraceevent will handle fining the fields you are looking for, even if
the fields move around (internally or externally).
Then there's trace-cruncher (a python script that uses libtracefs and
libtraceevent) that will work too.
https://github.com/vmware/trace-cruncher
-- Steve
prev parent reply other threads:[~2022-05-15 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2b388d09-940e-990f-1f8a-2fdaa9210fa0@openvz.org>
[not found] ` <a07be858-c8a3-7851-9086-e3262cbcf707@openvz.org>
2022-05-11 2:33 ` Roman Gushchin
[not found] ` <30a47b4e-7c4b-cd2d-998d-cfaf8d12d342@openvz.org>
2022-05-11 17:30 ` Roman Gushchin
2022-05-15 22:06 ` Steven Rostedt [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=20220515180640.0ae2ead5@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=cl@linux.com \
--cc=dennis@kernel.org \
--cc=kernel@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-trace-users@vger.kernel.org \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=roman.gushchin@linux.dev \
--cc=shakeelb@google.com \
--cc=tj@kernel.org \
--cc=vbabka@suse.cz \
--cc=vvs@openvz.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