• Home
  • Raw
  • Download

Lines Matching refs:i

39 	int i;  in thread_map__new_by_pid()  local
48 for (i = 0; i < items; i++) in thread_map__new_by_pid()
49 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
54 for (i=0; i<items; i++) in thread_map__new_by_pid()
55 zfree(&namelist[i]); in thread_map__new_by_pid()
77 int max_threads = 32, items, i; in __thread_map__new_all_cpus() local
129 for (i = 0; i < items; i++) { in __thread_map__new_all_cpus()
130 perf_thread_map__set_pid(threads, threads->nr + i, in __thread_map__new_all_cpus()
131 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus()
134 for (i = 0; i < items; i++) in __thread_map__new_all_cpus()
135 zfree(&namelist[i]); in __thread_map__new_all_cpus()
151 for (i = 0; i < items; i++) in __thread_map__new_all_cpus()
152 zfree(&namelist[i]); in __thread_map__new_all_cpus()
187 int i, j = 0; in thread_map__new_by_pid_str() local
219 for (i = 0; i < items; i++) { in thread_map__new_by_pid_str()
220 perf_thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
221 zfree(&namelist[i]); in thread_map__new_by_pid_str()
234 for (i = 0; i < items; i++) in thread_map__new_by_pid_str()
235 zfree(&namelist[i]); in thread_map__new_by_pid_str()
309 int i; in thread_map__fprintf() local
312 for (i = 0; i < threads->nr; ++i) in thread_map__fprintf()
313 printed += fprintf(fp, "%s%d", i ? ", " : "", perf_thread_map__pid(threads, i)); in thread_map__fprintf()
342 static void comm_init(struct perf_thread_map *map, int i) in comm_init() argument
344 pid_t pid = perf_thread_map__pid(map, i); in comm_init()
349 map->map[i].comm = strdup("dummy"); in comm_init()
360 map->map[i].comm = comm; in comm_init()
365 int i; in thread_map__read_comms() local
367 for (i = 0; i < threads->nr; ++i) in thread_map__read_comms()
368 comm_init(threads, i); in thread_map__read_comms()
374 unsigned i; in thread_map__copy_event() local
378 for (i = 0; i < event->nr; i++) { in thread_map__copy_event()
379 perf_thread_map__set_pid(threads, i, (pid_t) event->entries[i].pid); in thread_map__copy_event()
380 threads->map[i].comm = strndup(event->entries[i].comm, 16); in thread_map__copy_event()
399 int i; in thread_map__has() local
401 for (i = 0; i < threads->nr; ++i) { in thread_map__has()
402 if (threads->map[i].pid == pid) in thread_map__has()
411 int i; in thread_map__remove() local
424 for (i = idx; i < threads->nr - 1; i++) in thread_map__remove()
425 threads->map[i] = threads->map[i + 1]; in thread_map__remove()