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