Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1343451
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tools lib traceevent: Split pevent_print_event() into specific functionality functions |
| Date | 2016-02-25 21:20 +0100 |
| Message-ID | <r6aye-Dg-7@gated-at.bofh.it> (permalink) |
| References | <r67TI-74I-19@gated-at.bofh.it> <r6ayd-Dg-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 25 Feb 2016 17:14:13 -0300 Arnaldo Carvalho de Melo <acme@kernel.org> 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 <rostedt@goodmis.org> > > --- > > 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] tools lib traceevent: Split pevent_print_event() into specific functionality functions Steven Rostedt <rostedt@goodmis.org> - 2016-02-25 18:30 +0100
Re: [PATCH] tools lib traceevent: Split pevent_print_event() into specific functionality functions Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-02-25 21:20 +0100
Re: [PATCH] tools lib traceevent: Split pevent_print_event() into specific functionality functions Steven Rostedt <rostedt@goodmis.org> - 2016-02-25 21:20 +0100
csiph-web