Lines Matching refs:func
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()
188 if (WARN_ON(!tp_func->func)) in func_add()
195 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add()
196 if (old[iter_probes].func == tp_stub_func) in func_add()
198 if (old[iter_probes].func == tp_func->func && in func_add()
210 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add()
211 if (old[iter_probes].func == tp_stub_func) in func_add()
226 new[nr_probes].func = NULL; in func_add()
245 if (tp_func->func) { in func_remove()
246 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_remove()
247 if ((old[nr_probes].func == tp_func->func && in func_remove()
249 old[nr_probes].func == tp_stub_func) in func_remove()
269 for (i = 0; old[i].func; i++) { in func_remove()
270 if ((old[i].func != tp_func->func || in func_remove()
272 old[i].func != tp_stub_func) in func_remove()
275 new[nr_probes - nr_del].func = NULL; in func_remove()
282 for (i = 0; old[i].func; i++) { in func_remove()
283 if (old[i].func == tp_func->func && in func_remove()
285 WRITE_ONCE(old[i].func, tp_stub_func); in func_remove()
301 if (!tp_funcs[1].func) in nr_func_state()
303 if (!tp_funcs[2].func) in nr_func_state()
310 void *func = tp->iterator; in tracepoint_update_call() local
316 func = tp_funcs[0].func; in tracepoint_update_call()
317 __static_call_update(tp->static_call_key, tp->static_call_tramp, func); in tracepoint_update_call()
324 struct tracepoint_func *func, int prio, in tracepoint_add_func() argument
338 old = func_add(&tp_funcs, func, prio); in tracepoint_add_func()
397 struct tracepoint_func *func) in tracepoint_remove_func() argument
403 old = func_remove(&tp_funcs, func); in tracepoint_remove_func()
479 tp_func.func = probe; in tracepoint_probe_register_prio_may_exist()
508 tp_func.func = probe; in tracepoint_probe_register_prio()
549 tp_func.func = probe; in tracepoint_probe_unregister()
798 static int rvh_func_add(struct tracepoint *tp, struct tracepoint_func *func) in rvh_func_add() argument
810 if (!tp->funcs[i].func) { in rvh_func_add()
812 tp->funcs[i].data = func->data; in rvh_func_add()
813 WRITE_ONCE(tp->funcs[i].func, func->func); in rvh_func_add()
822 static int android_rvh_add_func(struct tracepoint *tp, struct tracepoint_func *func) in android_rvh_add_func() argument
832 ret = rvh_func_add(tp, func); in android_rvh_add_func()
859 tp_func.func = probe; in android_rvh_probe_register()