This patch adds parallel region handles specified in section 5.5.3. From examining libgomp code, I found that struct gomp_team describes the parallel region. The Thread handle gives the address of gomp_thread so, I tried to access *team gomp_thread->ts->team. The parallel handle is the team pointer in team state. I have a question about ompd_get_task_parallel_handle https://www.openmp.org/spec-html/5.0/openmpsu218.html How can i reach gomp_team from gomp_task And the union in gomp_task has two entries gomp_sem_t and gomp_team libgomp/ChangeLog 2022-06-06 Mohamed Sayed * Makefile.am: (libgompd_la_SOURCES): Add ompd-parallel.c. * Makefile.in: Regenerate. * libgompd.map: Add ompd_get_curr_parallel_handle, ompd_get_enclosing_parallel_handle, ompd_rel_parallel_handle and ompd_parallel_handle_compare symbol versions. * ompd-support.h:() : Add gompd_access (gomp_team_state, team) and gompd_access (gomp_team, prev_ts).