Re: [PATCH 01/20 v2] tracing: Add function based events

2018-02-08 Thread Steven Rostedt
On Thu, 8 Feb 2018 12:20:14 +0100 Jiri Olsa wrote: > On Wed, Feb 07, 2018 at 03:24:03PM -0500, Steven Rostedt wrote: > > SNIP > > > + > > +void create_function_event_file(struct dentry *d_tracer) > > +{ > > + struct dentry *d; > > + > > + d = trace_create_file("function_events", 0644, d_tra

Re: [PATCH 01/20 v2] tracing: Add function based events

2018-02-08 Thread Jiri Olsa
On Wed, Feb 07, 2018 at 03:24:03PM -0500, Steven Rostedt wrote: SNIP > + > +void create_function_event_file(struct dentry *d_tracer) > +{ > + struct dentry *d; > + > + d = trace_create_file("function_events", 0644, d_tracer, NULL, > + &func_event_fops); > + W

[PATCH 01/20 v2] tracing: Add function based events

2018-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add an interface that hooks to the ftrace function tracing to create events based on functions. A new file is created in the tracefs file system called function_events. Writing a function name followed by an empty set of parenthesis will create an event that uses f