src/runtime_src/xdp/profile/device/device_intf.cpp
void* DeviceIntf::syncTraceBuf(size_t bufHandle, uint64_t offset, uint64_t bytes)
  {
    auto addr = mDevice->map(bufHandle);
    if (!addr)
      return nullptr;
    mDevice->sync(bufHandle, bytes, offset, xdp::Device::direction::DEVICE2HOST);
    return static_cast<char*>(addr) + offset;
  }
/**
  * Takes the offset inside the mapped buffer
  * and syncs it with device and returns its virtual address.
  * We can read the entire buffer in one go if we want to
  * or choose to read in chunks
  */
Takes the offset inside the mapped buffer
and syncs it with device and returns its virtual address.
We can read the entire buffer in one go if we want to
or choose to read in chunks
Takes the offset inside the mapped buffer and syncs it with device and returns its virtual address . We can read the entire buffer in one go if we want to or choose to read in chunks
void* DeviceIntf::syncTraceBuf(size_t bufHandle, uint64_t offset, uint64_t bytes)
  {
    auto addr = mDevice->map(bufHandle);
    if (!addr)
      return nullptr;
    mDevice->sync(bufHandle, bytes, offset, xdp::Device::direction::DEVICE2HOST);
    return static_cast<char*>(addr) + offset;
  }
void * DeviceIntf :: syncTraceBuf ( size_t bufHandle , uint64_t offset , uint64_t bytes ) { auto addr = mDevice -> map ( bufHandle ) ; if ( ! addr ) return nullptr ; mDevice -> sync ( bufHandle , bytes , offset , xdp :: Device :: direction :: DEVICE2HOST ) ; return static_cast < char * > ( addr ) + offset ; }
Takes the offset inside the mapped buffer
 and syncs it with device and returns its virtual address.
Takes the offset inside the mapped buffer and syncs it with device and returns its virtual address .