Lines Matching refs:orig
293 * orig either gets freed and replaced with a new map, or reused
298 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
306 if (!orig && !other)
308 if (!orig) {
313 return orig;
314 if (orig->nr == other->nr &&
315 !memcmp(orig->map, other->map, orig->nr * sizeof(int)))
316 return orig;
318 tmp_len = orig->nr + other->nr;
325 while (i < orig->nr && j < other->nr) {
326 if (orig->map[i] <= other->map[j]) {
327 if (orig->map[i] == other->map[j])
329 tmp_cpus[k++] = orig->map[i++];
334 while (i < orig->nr)
335 tmp_cpus[k++] = orig->map[i++];
343 perf_cpu_map__put(orig);