Lines Matching defs:func

101 /* Called in removal of a func but failed to allocate a new tp_funcs */
175 for (i = 0; funcs[i].func; i++)
176 printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func);
188 if (WARN_ON(!tp_func->func))
195 for (iter_probes = 0; old[iter_probes].func; iter_probes++) {
196 if (old[iter_probes].func == tp_stub_func)
198 if (old[iter_probes].func == tp_func->func &&
204 /* + 2 : one for new probe, one for NULL func */
210 for (iter_probes = 0; old[iter_probes].func; iter_probes++) {
211 if (old[iter_probes].func == tp_stub_func)
226 new[nr_probes].func = NULL;
245 if (tp_func->func) {
246 for (nr_probes = 0; old[nr_probes].func; nr_probes++) {
247 if ((old[nr_probes].func == tp_func->func &&
249 old[nr_probes].func == tp_stub_func)
269 for (i = 0; old[i].func; i++) {
270 if ((old[i].func != tp_func->func ||
272 old[i].func != tp_stub_func)
275 new[nr_probes - nr_del].func = NULL;
282 for (i = 0; old[i].func; i++) {
283 if (old[i].func == tp_func->func &&
285 WRITE_ONCE(old[i].func, tp_stub_func);
301 if (!tp_funcs[1].func)
303 if (!tp_funcs[2].func)
310 void *func = tp->iterator;
316 func = tp_funcs[0].func;
317 __static_call_update(tp->static_call_key, tp->static_call_tramp, func);
324 struct tracepoint_func *func, int prio,
338 old = func_add(&tp_funcs, func, prio);
353 * Make sure new static func never uses old data after a
375 * Make sure static func never uses incorrect data after a
397 struct tracepoint_func *func)
403 old = func_remove(&tp_funcs, func);
408 /* Failed allocating new tp_funcs, replaced func with stub */
423 * Make sure new static func never uses old data after a
431 * Make sure static func never uses incorrect data after a
448 * Make sure static func never uses incorrect data after a
479 tp_func.func = probe;
508 tp_func.func = probe;
549 tp_func.func = probe;