Lines Matching refs:nr
26 static void thread_map__reset(struct thread_map *map, int start, int nr) in thread_map__reset() argument
28 size_t size = (nr - start) * sizeof(map->map[0]); in thread_map__reset()
33 static struct thread_map *thread_map__realloc(struct thread_map *map, int nr) in thread_map__realloc() argument
35 size_t size = sizeof(*map) + sizeof(map->map[0]) * nr; in thread_map__realloc()
36 int start = map ? map->nr : 0; in thread_map__realloc()
43 thread_map__reset(map, start, nr); in thread_map__realloc()
67 threads->nr = items; in thread_map__new_by_pid()
84 threads->nr = 1; in thread_map__new_by_tid()
106 threads->nr = 0; in thread_map__new_by_uid()
131 while (threads->nr + items >= max_threads) { in thread_map__new_by_uid()
147 thread_map__set_pid(threads, threads->nr + i, in thread_map__new_by_uid()
155 threads->nr += items; in thread_map__new_by_uid()
230 threads->nr = total_tasks; in thread_map__new_by_pid_str()
256 threads->nr = 1; in thread_map__new_dummy()
298 threads->nr = ntasks; in thread_map__new_by_tid_str()
329 for (i = 0; i < threads->nr; i++) in thread_map__delete()
352 threads->nr, threads->nr > 1 ? "s" : ""); in thread_map__fprintf()
353 for (i = 0; i < threads->nr; ++i) in thread_map__fprintf()
408 for (i = 0; i < threads->nr; ++i) in thread_map__read_comms()