[Openmp-commits] [PATCH] D153031: [OpenMP][OMPT] Add missing ompt_mutex_t kinds to callback.h
Jan André Reuter via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 15 07:48:38 PDT 2023
Thyre created this revision.
Thyre added reviewers: protze.joachim, tianshilei1992.
Thyre added a project: OpenMP.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a project: All.
Thyre requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, jplehr, sstefan1.
The callback header used for OMPT testing was missing the kinds
`ompt_mutex_test_lock` and `ompt_mutex_test_nest_lock` in the callback
functions `on_ompt_callback_mutex_acquired` and
`on_ompt_callback_mutex_acquire`. Added those two kinds.
Depends on D153028 <https://reviews.llvm.org/D153028>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153031
Files:
openmp/runtime/test/ompt/callback.h
Index: openmp/runtime/test/ompt/callback.h
===================================================================
--- openmp/runtime/test/ompt/callback.h
+++ openmp/runtime/test/ompt/callback.h
@@ -272,12 +272,24 @@
", impl=%" PRIu32 ", codeptr_ra=%p \n",
ompt_get_thread_data()->value, wait_id, hint, impl, codeptr_ra);
break;
+ case ompt_mutex_test_lock:
+ printf("%" PRIu64 ":" _TOOL_PREFIX
+ " ompt_event_wait_test_lock: wait_id=%" PRIu64 ", hint=%" PRIu32
+ ", impl=%" PRIu32 ", codeptr_ra=%p \n",
+ ompt_get_thread_data()->value, wait_id, hint, impl, codeptr_ra);
+ break;
case ompt_mutex_nest_lock:
printf("%" PRIu64 ":" _TOOL_PREFIX
" ompt_event_wait_nest_lock: wait_id=%" PRIu64 ", hint=%" PRIu32
", impl=%" PRIu32 ", codeptr_ra=%p \n",
ompt_get_thread_data()->value, wait_id, hint, impl, codeptr_ra);
break;
+ case ompt_mutex_test_nest_lock:
+ printf("%" PRIu64 ":" _TOOL_PREFIX
+ " ompt_event_wait_test_nest_lock: wait_id=%" PRIu64
+ ", hint=%" PRIu32 ", impl=%" PRIu32 ", codeptr_ra=%p \n",
+ ompt_get_thread_data()->value, wait_id, hint, impl, codeptr_ra);
+ break;
case ompt_mutex_critical:
printf("%" PRIu64 ":" _TOOL_PREFIX
" ompt_event_wait_critical: wait_id=%" PRIu64 ", hint=%" PRIu32
@@ -314,12 +326,24 @@
" ompt_event_acquired_lock: wait_id=%" PRIu64 ", codeptr_ra=%p \n",
ompt_get_thread_data()->value, wait_id, codeptr_ra);
break;
+ case ompt_mutex_test_lock:
+ printf("%" PRIu64 ":" _TOOL_PREFIX
+ " ompt_event_acquired_test_lock: wait_id=%" PRIu64
+ ", codeptr_ra=%p \n",
+ ompt_get_thread_data()->value, wait_id, codeptr_ra);
+ break;
case ompt_mutex_nest_lock:
printf("%" PRIu64 ":" _TOOL_PREFIX
" ompt_event_acquired_nest_lock_first: wait_id=%" PRIu64
", codeptr_ra=%p \n",
ompt_get_thread_data()->value, wait_id, codeptr_ra);
break;
+ case ompt_mutex_test_nest_lock:
+ printf("%" PRIu64 ":" _TOOL_PREFIX
+ " ompt_event_acquired_test_nest_lock_first: wait_id=%" PRIu64
+ ", codeptr_ra=%p \n",
+ ompt_get_thread_data()->value, wait_id, codeptr_ra);
+ break;
case ompt_mutex_critical:
printf("%" PRIu64 ":" _TOOL_PREFIX
" ompt_event_acquired_critical: wait_id=%" PRIu64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153031.531753.patch
Type: text/x-patch
Size: 2533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230615/79a69a69/attachment.bin>
More information about the Openmp-commits
mailing list