diff --git a/openmp/runtime/src/kmp_dispatch.cpp b/openmp/runtime/src/kmp_dispatch.cpp --- a/openmp/runtime/src/kmp_dispatch.cpp +++ b/openmp/runtime/src/kmp_dispatch.cpp @@ -2387,7 +2387,7 @@ kmp_int32 __kmpc_next_section(ident_t *loc, kmp_int32 gtid, kmp_int32 numberOfSections) { - KMP_TIME_PARTITIONED_BLOCK(OMP_sections); + KMP_TIME_PARTITIONED_BLOCK(OMP_sections_overhead); kmp_info_t *th = __kmp_threads[gtid]; #ifdef KMP_DEBUG @@ -2460,7 +2460,6 @@ ompt_dispatch_section, instance); } #endif - KMP_POP_PARTITIONED_TIMER(); } return sectionIndex; @@ -2492,9 +2491,9 @@ &(task_info->task_data), 0, OMPT_GET_RETURN_ADDRESS(0)); } #endif - KMP_POP_PARTITIONED_TIMER(); } + KMP_POP_PARTITIONED_TIMER(); KD_TRACE(100, ("__kmpc_end_sections: T#%d returned\n", gtid)); } diff --git a/openmp/runtime/src/kmp_stats.h b/openmp/runtime/src/kmp_stats.h --- a/openmp/runtime/src/kmp_stats.h +++ b/openmp/runtime/src/kmp_stats.h @@ -102,6 +102,7 @@ macro(OMP_BARRIER, 0, arg) \ macro(OMP_CRITICAL, 0, arg) \ macro(OMP_SINGLE, 0, arg) \ + macro(OMP_SECTIONS, 0, arg) \ macro(OMP_MASTER, 0, arg) \ macro(OMP_MASKED, 0, arg) \ macro(OMP_TEAMS, 0, arg) \ @@ -150,6 +151,8 @@ macro (OMP_critical, 0, arg) \ macro (OMP_critical_wait, 0, arg) \ macro (OMP_single, 0, arg) \ + macro (OMP_sections, 0, arg) \ + macro (OMP_sections_overhead, 0, arg) \ macro (OMP_master, 0, arg) \ macro (OMP_masked, 0, arg) \ macro (OMP_task_immediate, 0, arg) \