Lines Matching refs:nr_probes
133 int nr_probes = 0; in func_add() local
143 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_add()
145 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
146 pos = nr_probes; in func_add()
147 if (old[nr_probes].func == tp_func->func && in func_add()
148 old[nr_probes].data == tp_func->data) in func_add()
153 new = allocate_probes(nr_probes + 2); in func_add()
158 pos = nr_probes; in func_add()
159 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in func_add()
165 (nr_probes - pos) * sizeof(struct tracepoint_func)); in func_add()
170 new[nr_probes + 1].func = NULL; in func_add()
179 int nr_probes = 0, nr_del = 0, i; in func_remove() local
190 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_remove()
191 if (old[nr_probes].func == tp_func->func && in func_remove()
192 old[nr_probes].data == tp_func->data) in func_remove()
201 if (nr_probes - nr_del == 0) { in func_remove()
210 new = allocate_probes(nr_probes - nr_del + 1); in func_remove()
217 new[nr_probes - nr_del].func = NULL; in func_remove()