On Fri, Jul 3, 2020 at 3:57 AM Steven Rostedt <[email protected]> wrote: > > From: "Tzvetomir Stoyanov (VMware)" <[email protected]> > > Each time the pretty_print() function is called to print an event, > the event's format string is parsed. As this format string does not > change, this parsing can be done only once - when the event struct > is initialized. > > Link: > https://lore.kernel.org/linux-trace-devel/[email protected] > Link: > http://lore.kernel.org/linux-trace-devel/[email protected] > > Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]> > Signed-off-by: Steven Rostedt (VMware) <[email protected]> > --- > tools/lib/traceevent/event-parse-local.h | 17 + > tools/lib/traceevent/event-parse.c | 672 ++++++++++++++++------- > tools/lib/traceevent/event-parse.h | 3 + > 3 files changed, 495 insertions(+), 197 deletions(-) > > diff --git a/tools/lib/traceevent/event-parse-local.h > b/tools/lib/traceevent/event-parse-local.h > index 96a0b0ca0675..e71296a62236 100644 > --- a/tools/lib/traceevent/event-parse-local.h > +++ b/tools/lib/traceevent/event-parse-local.h > @@ -85,6 +85,23 @@ struct tep_handle { > struct tep_plugins_dir *plugins_dir; > }; > > +enum tep_print_parse_type { > + PRINT_FMT_STING,
STRING ? > + PRINT_FMT_ARG_DIGIT, > + PRINT_FMT_ARG_POINTER, > + PRINT_FMT_ARG_STRING, > +};

