Messages in this thread | | | Subject | Re: [PATCH 2/7] ftrace: Add enable/disable ftrace_ops control interface | From | Steven Rostedt <> | Date | Fri, 03 Feb 2012 08:40:34 -0500 |
| |
On Sat, 2012-01-28 at 19:43 +0100, Jiri Olsa wrote: > > +/* > + * FTRACE_OPS_FL_* bits denote the state of ftrace_ops struct and are > + * set in the flags member. > + * > + * ENABLED - set/unset when ftrace_ops is registered/unregistered > + * GLOBAL - set manualy by ftrace_ops user to denote the ftrace_ops > + * is part of the global tracers sharing the same filter > + * via set_ftrace_* debugfs files. > + * DYNAMIC - set when ftrace_ops is registered to denote dynamically > + * allocated ftrace_ops which need special care > + * CONTROL - set manualy by ftrace_ops user to denote the ftrace_ops > + * could be controled by following calls: > + * ftrace_function_enable, ftrace_function_disable > + */ > enum { > FTRACE_OPS_FL_ENABLED = 1 << 0, > FTRACE_OPS_FL_GLOBAL = 1 << 1, > FTRACE_OPS_FL_DYNAMIC = 1 << 2, > + FTRACE_OPS_FL_CONTROL = 1 << 3, > }; >
Nicely written :-)
-- Steve
| |