Lines Matching refs:new
98 struct tracepoint_func *old, *new; in func_add() local
113 new = allocate_probes(nr_probes + 2); in func_add()
114 if (new == NULL) 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()
120 *funcs = new; in func_add()
129 struct tracepoint_func *old, *new; in func_remove() local
159 new = allocate_probes(nr_probes - nr_del + 1); in func_remove()
160 if (new == NULL) in func_remove()
165 new[j++] = old[i]; in func_remove()
166 new[nr_probes - nr_del].func = NULL; in func_remove()
167 *funcs = new; in func_remove()