Lines Matching refs:nr_probes
97 int nr_probes = 0; in func_add() local
107 for (nr_probes = 0; old[nr_probes].func; nr_probes++) in func_add()
108 if (old[nr_probes].func == tp_func->func && in func_add()
109 old[nr_probes].data == tp_func->data) in func_add()
113 new = allocate_probes(nr_probes + 2); in func_add()
117 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in func_add()
118 new[nr_probes] = *tp_func; in func_add()
119 new[nr_probes + 1].func = NULL; in func_add()
128 int nr_probes = 0, nr_del = 0, i; in func_remove() local
139 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_remove()
140 if (old[nr_probes].func == tp_func->func && in func_remove()
141 old[nr_probes].data == tp_func->data) in func_remove()
150 if (nr_probes - nr_del == 0) { in func_remove()
159 new = allocate_probes(nr_probes - nr_del + 1); in func_remove()
166 new[nr_probes - nr_del].func = NULL; in func_remove()