ftrace: Allow for function tracing instance to filter functions
[firefly-linux-kernel-4.4.55.git] / include / linux / ftrace.h
index ef1607ed704439ead78575e0d87378792c8cefc7..e6141be2fad576ccb261d270a7d6bdace5d7a239 100644 (file)
@@ -92,6 +92,7 @@ typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip,
  * STUB   - The ftrace_ops is just a place holder.
  * INITIALIZED - The ftrace_ops has already been initialized (first use time
  *            register_ftrace_function() is called, it will initialized the ops)
+ * DELETED - The ops are being deleted, do not let them be registered again.
  */
 enum {
        FTRACE_OPS_FL_ENABLED                   = 1 << 0,
@@ -103,6 +104,7 @@ enum {
        FTRACE_OPS_FL_RECURSION_SAFE            = 1 << 6,
        FTRACE_OPS_FL_STUB                      = 1 << 7,
        FTRACE_OPS_FL_INITIALIZED               = 1 << 8,
+       FTRACE_OPS_FL_DELETED                   = 1 << 9,
 };
 
 /*