Lines Matching refs:new
98 struct tracepoint_func *old, *new; in func_add() local
119 new = allocate_probes(nr_probes + 2); in func_add()
120 if (new == NULL) in func_add()
125 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); in func_add()
128 memcpy(new, old, pos * sizeof(struct tracepoint_func)); in func_add()
130 memcpy(new + pos + 1, old + pos, in func_add()
135 new[pos] = *tp_func; in func_add()
136 new[nr_probes + 1].func = NULL; in func_add()
137 *funcs = new; in func_add()
146 struct tracepoint_func *old, *new; in func_remove() local
176 new = allocate_probes(nr_probes - nr_del + 1); in func_remove()
177 if (new == NULL) in func_remove()
182 new[j++] = old[i]; in func_remove()
183 new[nr_probes - nr_del].func = NULL; in func_remove()
184 *funcs = new; in func_remove()