[Openmp-commits] [PATCH] D49373: [OMPT] Print two more addresses in print_fuzzy_address_block()

Simon Convent via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 16 06:46:39 PDT 2018


sconvent created this revision.
sconvent added reviewers: protze.joachim, Hahnfeld, hbae, jlpeyton.

The two more outputs are needed to match the return addresses when using the Intel Compiler, as it generates more instructions between the fuzzy-printing of the address and the runtime call.


https://reviews.llvm.org/D49373

Files:
  runtime/test/ompt/callback.h


Index: runtime/test/ompt/callback.h
===================================================================
--- runtime/test/ompt/callback.h
+++ runtime/test/ompt/callback.h
@@ -183,11 +183,14 @@
 // to include or discard the new number of nibbles!
 #define FUZZY_ADDRESS_DISCARD_NIBBLES 2
 #define FUZZY_ADDRESS_DISCARD_BYTES (1 << ((FUZZY_ADDRESS_DISCARD_NIBBLES) * 4))
-#define print_fuzzy_address_blocks(addr) \
-  printf("%" PRIu64 ": fuzzy_address=0x%" PRIx64 " or 0x%" PRIx64 " (%p)\n", \
-  ompt_get_thread_data()->value, \
-  ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES - 1, \
-  ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES, addr)
+#define print_fuzzy_address_blocks(addr)                                       \
+  printf("%" PRIu64 ": fuzzy_address=0x%" PRIx64 " or 0x%" PRIx64              \
+         " or 0x%" PRIx64 " or 0x%" PRIx64 " (%p)\n",                          \
+         ompt_get_thread_data()->value,                                        \
+         ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES - 1,                   \
+         ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES,                       \
+         ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES + 1,                   \
+         ((uint64_t)addr) / FUZZY_ADDRESS_DISCARD_BYTES + 2, addr)
 
 static void
 on_ompt_callback_mutex_acquire(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49373.155663.patch
Type: text/x-patch
Size: 1332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180716/7098dc99/attachment.bin>


More information about the Openmp-commits mailing list