Lines Matching refs:nr_probes
99 int nr_probes = 0; in func_add() local
109 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_add()
111 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
112 pos = nr_probes; in func_add()
113 if (old[nr_probes].func == tp_func->func && in func_add()
114 old[nr_probes].data == tp_func->data) in func_add()
119 new = allocate_probes(nr_probes + 2); in func_add()
124 pos = nr_probes; in func_add()
125 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in func_add()
131 (nr_probes - pos) * sizeof(struct tracepoint_func)); in func_add()
136 new[nr_probes + 1].func = NULL; in func_add()
145 int nr_probes = 0, nr_del = 0, i; in func_remove() local
156 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_remove()
157 if (old[nr_probes].func == tp_func->func && in func_remove()
158 old[nr_probes].data == tp_func->data) in func_remove()
167 if (nr_probes - nr_del == 0) { in func_remove()
176 new = allocate_probes(nr_probes - nr_del + 1); in func_remove()
183 new[nr_probes - nr_del].func = NULL; in func_remove()