#include #include #include #include #include int work(int data); void * threaded_func(void *data) { TAU_REGISTER_THREAD(); TAU_PROFILE("threaded_func()", "int ()", TAU_DEFAULT); work((int) *((int *) data)); /* work done by this thread */ return NULL; }