Lines Matching refs:tp
193 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func() argument
198 if (tp->regfunc && !static_key_enabled(&tp->key)) in tracepoint_add_func()
199 tp->regfunc(); in tracepoint_add_func()
201 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_add_func()
216 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func()
217 if (!static_key_enabled(&tp->key)) in tracepoint_add_func()
218 static_key_slow_inc(&tp->key); in tracepoint_add_func()
229 static int tracepoint_remove_func(struct tracepoint *tp, in tracepoint_remove_func() argument
234 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_remove_func()
244 if (tp->unregfunc && static_key_enabled(&tp->key)) in tracepoint_remove_func()
245 tp->unregfunc(); in tracepoint_remove_func()
247 if (static_key_enabled(&tp->key)) in tracepoint_remove_func()
248 static_key_slow_dec(&tp->key); in tracepoint_remove_func()
250 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_remove_func()
268 int tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, in tracepoint_probe_register_prio() argument
278 ret = tracepoint_add_func(tp, &tp_func, prio); in tracepoint_probe_register_prio()
297 int tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_register() argument
299 return tracepoint_probe_register_prio(tp, probe, data, TRACEPOINT_DEFAULT_PRIO); in tracepoint_probe_register()
311 int tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data) in tracepoint_probe_unregister() argument
319 ret = tracepoint_remove_func(tp, &tp_func); in tracepoint_probe_unregister()
503 void (*fct)(struct tracepoint *tp, void *priv), in for_each_tracepoint_range() argument
519 void for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv), in for_each_kernel_tracepoint() argument