On Thu, 25 Feb 2016 17:14:13 -0300
Arnaldo Carvalho de Melo <[email protected]> wrote:

> Em Thu, Feb 25, 2016 at 12:20:33PM -0500, Steven Rostedt escreveu:
> > Currently there's a single function that is used to display a record's
> > data in human readable format. That's pevent_print_event().
> > Unfortunately, this gives little room for adding other output within
> > the line without updating that function call.
> > 
> > I've decided to split that function into 3 parts.
> > 
> >  pevent_print_event_task() which prints the task comm, pid and the CPU
> >  pevent_print_event_time() which outputs the record's timestamp
> >  pevent_print_event_data() which outputs the rest of the event data.
> > 
> > pevent_print_event() now simply calls these three functions.
> > 
> > To save time from doing the search for event from the record's type, I
> > created a new helper function called pevent_find_event_by_record(),
> > which returns the record's event, and this event has to be passed to
> > the above functions.
> > 
> > Signed-off-by: Steven Rostedt <[email protected]>
> > ---
> > diff --git a/event-parse.c b/event-parse.c
> > index 18e93e430b8b..559d77381a60 100644
> > --- a/event-parse.c
> > +++ b/event-parse.c  
> 
> 
> Isn't this on tools/lib/traceevent?
> 

Oops, I did the change from trace-cmd. I'll repost.

Sorry ;-)

-- Steve

Reply via email to