Lines Matching refs:gThreadList
88 } __attribute__((aligned(128))) gThreadList[max_threads]; variable
134 struct threadentry *entry = &gThreadList[i]; in fill_thread_stats()
191 gThreadList[i].thread = pthread_self();
193 rv = pthread_create(&gThreadList[i].thread, &attr,
197 gThreadList[i].expect_cpu_usage = i % 2 == 0 ? true : false;
200 rv = pthread_threadid_np(gThreadList[i].thread, &gThreadList[i].tid);
203 gThreadList[i].stack_addr = pthread_get_stackaddr_np(gThreadList[i].thread);
204 gThreadList[i].stack_size = pthread_get_stacksize_np(gThreadList[i].thread);
217 (void*)gThreadList[i].thread,
218 gThreadList[i].tid,
219 gThreadList[i].stack_addr,
220 (void *)gThreadList[i].stack_size);
323 rv = pthread_join(gThreadList[i].thread, NULL);
391 uint64_t user_time = abs_to_nanos_host(gThreadList[i].self_stats.ttci_user_time_mach);
392 uint64_t system_time = abs_to_nanos_host(gThreadList[i].self_stats.ttci_system_time_mach);
416 gThreadList[i].tid,
417 gThreadList[i].alrm_count,
418 gThreadList[i].vtalrm_count,
419 gThreadList[i].prof_count,
420 gThreadList[i].xcpu_count,
421 gThreadList[i].self_stats.ttci_instructions,
422 gThreadList[i].self_stats.ttci_cycles,
428 total_alrm += gThreadList[i].alrm_count;
429 total_vtalrm += gThreadList[i].vtalrm_count;
430 total_prof += gThreadList[i].prof_count;
431 total_xcpu += gThreadList[i].xcpu_count;
433 if (gThreadList[i].expect_cpu_usage) {
434 total_vtalrm_in_cpubound += gThreadList[i].vtalrm_count;
447 if ((double)gThreadList[0].alrm_count * 100 / total_alrm < 90.0) {
449 gThreadList[0].alrm_count,
473 if (gThreadList[0].prof_count * 100 / total_prof > 1) {
475 gThreadList[0].prof_count,
588 struct threadentry *t = &gThreadList[i]; in alrm_handler()