uti: Add system call profile

This commit is contained in:
Masamichi Takagi
2018-04-11 16:07:07 +09:00
parent c0271f4727
commit e613483bee

View File

@ -3226,8 +3226,14 @@ create_tracer(unsigned long user_start, unsigned long user_end)
}
#ifdef DEBUG_UTI
//fprintf(stderr, "offloaded thread called these syscalls\n");
//debug_sig(0);
{
char *pmi_str = getenv("PMI_RANK");
int pmi_rank = pmi_str ? atoi(pmi_str) : -1;
if (pmi_rank == 0 || pmi_rank == -1) {
fprintf(stderr, "offloaded thread called these syscalls\n");
debug_sig(0);
}
}
#endif
exit(0);