linux-trace-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] percpu: improve percpu_alloc_percpu event trace
       [not found]   ` <YnsgbXKiNNSF+1ZO@carbon>
@ 2022-05-15 22:06     ` Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2022-05-15 22:06 UTC (permalink / raw)
  To: Roman Gushchin
  Cc: Vasily Averin, Shakeel Butt, Ingo Molnar, kernel, linux-kernel,
	Vlastimil Babka, Michal Hocko, cgroups, Andrew Morton,
	Dennis Zhou, Tejun Heo, Christoph Lameter, linux-mm,
	linux-trace-users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-15 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <2b388d09-940e-990f-1f8a-2fdaa9210fa0@openvz.org>
     [not found] ` <a07be858-c8a3-7851-9086-e3262cbcf707@openvz.org>
     [not found]   ` <YnsgbXKiNNSF+1ZO@carbon>
2022-05-15 22:06     ` [PATCH v2] percpu: improve percpu_alloc_percpu event trace Steven Rostedt

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).