Skip to content

Conversation

@dejangrubisic
Copy link

When we run hpcrun with tracing for cupti, cupti creates the thread which is ignored. That thread tries to create new threads for tracing that also need to be ignored, but that doesn't happen because the if condition here always fails.

Cupti thread:
wraper(pthread_create):
...
my_tn == NULL // because libmonitor ignores cupti thread
if (my_tn != NULL && my_tn->tn_ignore_threads){ // <--------- This always failed and tracing threads were never created
MONITOR_DEBUG1("ignoring this new thread\n");
return (*real_pthread_create)(thread, attr, start_routine, arg);
}

To support this behavior we need to figure out how to set up ignore_new_threads in monitor_enable/disable_new_threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant