reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/XRay/Trace.cpp
   51   auto FileHeaderOrError = readBinaryFormatHeader(Reader, OffsetPtr);
   66   while (Reader.isValidOffset(OffsetPtr)) {
   67     if (!Reader.isValidOffsetForDataOfSize(OffsetPtr, 32))
   71           OffsetPtr);
   72     auto PreReadOffset = OffsetPtr;
   73     auto RecordType = Reader.getU16(&OffsetPtr);
   74     if (OffsetPtr == PreReadOffset)
   77           "Failed reading record type at offset %" PRId64 ".", OffsetPtr);
   85       PreReadOffset = OffsetPtr;
   86       Record.CPU = Reader.getU8(&OffsetPtr);
   87       if (OffsetPtr == PreReadOffset)
   90             "Failed reading CPU field at offset %" PRId64 ".", OffsetPtr);
   92       PreReadOffset = OffsetPtr;
   93       auto Type = Reader.getU8(&OffsetPtr);
   94       if (OffsetPtr == PreReadOffset)
   98             OffsetPtr);
  116             "Unknown record type '%d' at offset %" PRId64 ".", Type, OffsetPtr);
  119       PreReadOffset = OffsetPtr;
  120       Record.FuncId = Reader.getSigned(&OffsetPtr, sizeof(int32_t));
  121       if (OffsetPtr == PreReadOffset)
  125             OffsetPtr);
  127       PreReadOffset = OffsetPtr;
  128       Record.TSC = Reader.getU64(&OffsetPtr);
  129       if (OffsetPtr == PreReadOffset)
  132             "Failed reading TSC field at offset %" PRId64 ".", OffsetPtr);
  134       PreReadOffset = OffsetPtr;
  135       Record.TId = Reader.getU32(&OffsetPtr);
  136       if (OffsetPtr == PreReadOffset)
  139             "Failed reading thread id field at offset %" PRId64 ".", OffsetPtr);
  141       PreReadOffset = OffsetPtr;
  142       Record.PId = Reader.getU32(&OffsetPtr);
  143       if (OffsetPtr == PreReadOffset)
  146             "Failed reading process id at offset %" PRId64 ".", OffsetPtr);
  155       OffsetPtr += 2;
  156       PreReadOffset = OffsetPtr;
  157       int32_t FuncId = Reader.getSigned(&OffsetPtr, sizeof(int32_t));
  158       if (OffsetPtr == PreReadOffset)
  162             OffsetPtr);
  164       PreReadOffset = OffsetPtr;
  165       auto TId = Reader.getU32(&OffsetPtr);
  166       if (OffsetPtr == PreReadOffset)
  169             "Failed reading thread id field at offset %" PRId64 ".", OffsetPtr);
  171       PreReadOffset = OffsetPtr;
  172       auto PId = Reader.getU32(&OffsetPtr);
  173       if (OffsetPtr == PreReadOffset)
  177             OffsetPtr);
  187             Record.FuncId, FuncId, OffsetPtr);
  189       PreReadOffset = OffsetPtr;
  190       auto Arg = Reader.getU64(&OffsetPtr);
  191       if (OffsetPtr == PreReadOffset)
  195             OffsetPtr);
  204           OffsetPtr);
  208     OffsetPtr += 8;