lkml.org 
[lkml]   [2018]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 07/14] fgraph: Add new fgraph_ops structure to enable function graph hooks
On Mon, 26 Nov 2018 20:30:49 +0900
Masami Hiramatsu <mhiramat@kernel.org> wrote:

> > diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
> > index f98063e273e5..477ff9412d26 100644
> > --- a/include/linux/ftrace.h
> > +++ b/include/linux/ftrace.h
> > @@ -749,6 +749,18 @@ typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */
> >
> > #ifdef CONFIG_FUNCTION_GRAPH_TRACER
> >
> > +struct fgraph_ops {
> > + trace_func_graph_ent_t entryfunc;
> > + trace_func_graph_ret_t retfunc;
>
> > + struct fgraph_ops __rcu *next;
> > + unsigned long flags;
> > + void *private;
> > +#ifdef CONFIG_DYNAMIC_FTRACE
> > + struct ftrace_ops_hash local_hash;
> > + struct ftrace_ops_hash *func_hash;
> > +#endif
>
> Hmm, can we introduce these fields when we actually use it?

Sure.

>
> BTW, would you have any idea for using private field?

I believe I answered this in another email.

-- Steve

\
 
 \ /
  Last update: 2018-11-26 22:07    [W:0.211 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site