[PATCH] D29698: [XRAY] [compiler-rt] [NFC] Fixing the bit twiddling of Function Id in FDR logging mode.

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 23:17:20 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL294563: [XRAY] [compiler-rt] [NFC] Fixing the bit twiddling of Function Id in FDR… (authored by dberris).

Changed prior to commit:
  https://reviews.llvm.org/D29698?vs=87573&id=87767#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D29698

Files:
  compiler-rt/trunk/lib/xray/xray_fdr_logging.cc


Index: compiler-rt/trunk/lib/xray/xray_fdr_logging.cc
===================================================================
--- compiler-rt/trunk/lib/xray/xray_fdr_logging.cc
+++ compiler-rt/trunk/lib/xray/xray_fdr_logging.cc
@@ -459,7 +459,7 @@
   FuncRecord.Type = RecordType::Function;
 
   // Only get the lower 28 bits of the function id.
-  FuncRecord.FuncId = FuncId | ~(0x03 << 28);
+  FuncRecord.FuncId = FuncId & ~(0x0F << 28);
 
   // Here we compute the TSC Delta. There are a few interesting situations we
   // need to account for:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29698.87767.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170209/bdb101ee/attachment.bin>


More information about the llvm-commits mailing list