Home
last modified time | relevance | path

Searched refs:currentWritePage (Results 1 – 1 of 1) sorted by relevance

/TraceRecorderSource-2.7.6/
DtrcInternalBuffer.c139 static int currentWritePage = -1; in prvPagedEventBufferGetWritePointer() local
141 if (currentWritePage == -1) in prvPagedEventBufferGetWritePointer()
143 currentWritePage = prvAllocateBufferPage(currentWritePage); in prvPagedEventBufferGetWritePointer()
144 if (currentWritePage == -1) in prvPagedEventBufferGetWritePointer()
151 if (PageInfo[currentWritePage].BytesRemaining - sizeOfEvent < 0) in prvPagedEventBufferGetWritePointer()
153 PageInfo[currentWritePage].Status = PAGE_STATUS_READ; in prvPagedEventBufferGetWritePointer()
155 TotalBytesRemaining -= PageInfo[currentWritePage].BytesRemaining; // Last trailing bytes in prvPagedEventBufferGetWritePointer()
160 currentWritePage = prvAllocateBufferPage(currentWritePage); in prvPagedEventBufferGetWritePointer()
161 if (currentWritePage == -1) in prvPagedEventBufferGetWritePointer()
167 ret = PageInfo[currentWritePage].WritePointer; in prvPagedEventBufferGetWritePointer()
[all …]