Lines Matching refs:gThreadList
91 } __attribute__((aligned(128))) gThreadList[max_threads]; variable
131 struct threadentry *entry = &gThreadList[i]; in fill_thread_stats()
200 gThreadList[i].thread = pthread_self();
202 rv = pthread_create(&gThreadList[i].thread, &attr,
206 gThreadList[i].expect_cpu_usage = i % 2 == 0 ? true : false;
209 rv = pthread_threadid_np(gThreadList[i].thread, &gThreadList[i].tid);
212 gThreadList[i].stack_addr = pthread_get_stackaddr_np(gThreadList[i].thread);
213 gThreadList[i].stack_size = pthread_get_stacksize_np(gThreadList[i].thread);
226 (void*)gThreadList[i].thread,
227 gThreadList[i].tid,
228 gThreadList[i].stack_addr,
229 (void *)gThreadList[i].stack_size);
356 rv = pthread_join(gThreadList[i].thread, NULL);
442 uint64_t user_time = abs_to_nanos_host(gThreadList[i].self_stats.ttci_user_time_mach);
443 uint64_t system_time = abs_to_nanos_host(gThreadList[i].self_stats.ttci_system_time_mach);
479 gThreadList[i].tid,
480 gThreadList[i].alrm_count,
481 gThreadList[i].vtalrm_count,
482 gThreadList[i].prof_count,
483 gThreadList[i].xcpu_count,
484 gThreadList[i].self_stats.ttci_instructions,
485 gThreadList[i].self_stats.ttci_cycles,
491 total_alrm += gThreadList[i].alrm_count;
492 total_vtalrm += gThreadList[i].vtalrm_count;
493 total_prof += gThreadList[i].prof_count;
494 total_xcpu += gThreadList[i].xcpu_count;
496 if (gThreadList[i].expect_cpu_usage) {
497 total_vtalrm_in_cpubound += gThreadList[i].vtalrm_count;
510 if ((double)gThreadList[0].alrm_count * 100 / total_alrm < 90.0) {
512 gThreadList[0].alrm_count,
536 if (gThreadList[0].prof_count * 100 / total_prof > 1) {
538 gThreadList[0].prof_count,
655 struct threadentry *t = &gThreadList[i]; in alrm_handler()