|
@@ -157,30 +157,6 @@ static inline void ftrace_ops_init(struct ftrace_ops *ops)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * ftrace_nr_registered_ops - return number of ops registered
|
|
|
- *
|
|
|
- * Returns the number of ftrace_ops registered and tracing functions
|
|
|
- */
|
|
|
-int ftrace_nr_registered_ops(void)
|
|
|
-{
|
|
|
- struct ftrace_ops *ops;
|
|
|
- int cnt = 0;
|
|
|
-
|
|
|
- mutex_lock(&ftrace_lock);
|
|
|
-
|
|
|
- for (ops = rcu_dereference_protected(ftrace_ops_list,
|
|
|
- lockdep_is_held(&ftrace_lock));
|
|
|
- ops != &ftrace_list_end;
|
|
|
- ops = rcu_dereference_protected(ops->next,
|
|
|
- lockdep_is_held(&ftrace_lock)))
|
|
|
- cnt++;
|
|
|
-
|
|
|
- mutex_unlock(&ftrace_lock);
|
|
|
-
|
|
|
- return cnt;
|
|
|
-}
|
|
|
-
|
|
|
static void ftrace_pid_func(unsigned long ip, unsigned long parent_ip,
|
|
|
struct ftrace_ops *op, struct pt_regs *regs)
|
|
|
{
|