Lines Matching refs:funcs
168 static void debug_print_probes(struct tracepoint_func *funcs) in debug_print_probes() argument
172 if (!tracepoint_debug || !funcs) in debug_print_probes()
175 for (i = 0; funcs[i].func; i++) in debug_print_probes()
176 printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func); in debug_print_probes()
180 func_add(struct tracepoint_func **funcs, struct tracepoint_func *tp_func, in func_add() argument
191 debug_print_probes(*funcs); in func_add()
192 old = *funcs; in func_add()
227 *funcs = new; in func_add()
228 debug_print_probes(*funcs); in func_add()
232 static void *func_remove(struct tracepoint_func **funcs, in func_remove() argument
238 old = *funcs; in func_remove()
243 debug_print_probes(*funcs); in func_remove()
260 *funcs = NULL; in func_remove()
261 debug_print_probes(*funcs); in func_remove()
276 *funcs = new; in func_remove()
287 *funcs = old; in func_remove()
290 debug_print_probes(*funcs); in func_remove()
336 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_add_func()
360 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func()
373 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func()
401 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_remove_func()
421 rcu_assign_pointer(tp->funcs, NULL); in tracepoint_remove_func()
429 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_remove_func()
446 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_remove_func()
637 WARN_ON_ONCE(tp->funcs); in tp_module_going_check_quiescent()
803 tp->funcs = rvh_zalloc_funcs(ANDROID_RVH_NR_PROBES_MAX + 1); in rvh_func_add()
804 if (!tp->funcs) in rvh_func_add()
809 if (!tp->funcs[i].func) { in rvh_func_add()
811 tp->funcs[i].data = func->data; in rvh_func_add()
812 WRITE_ONCE(tp->funcs[i].func, func->func); in rvh_func_add()
834 tracepoint_update_call(tp, tp->funcs); in android_rvh_add_func()