TBTraceBuffer Class Reference

class TBTraceBuffer

Member Functions Documentation

Adjust(TUint, TInt)

TInt Adjust(TUintaTail,
TIntaSize
)[private]

Adjust trace data size so it represents a whole number of trace records.

Parameters

TUint aTailThe buffer offset where the available trace data is located.
TInt aSizeThe size of data at aTail. Must be >= KMaxBTraceRecordSize.

CopyData(TUint, TUint, TInt)

TInt CopyData(TUintaData,
TUintaTail,
TIntaSize
)[private]
Copy data out of the main trace buffer into the 'copy buffer'. This may fail if the data is overwritten before it hase been successfully copied.
Post-condition
iBuffer.iTail has been updated to point to the trace record following those copied.

Parameters

TUint aDataThe buffer offset where the available trace data is located.
TUint aTailThe value which iTail is expected to have if no more overwrites have occurred
TInt aSizeThe size of data at aTail

Data(TUint &, TUint &)

TInt Data(TUint &aData,
TUint &aTail
)[private]

Find out how much data is available.

Parameters

TUint & aDataSet to the buffer offset where the available trace data is located.
TUint & aTailSet to the the original value of the iTail pointer

GetData(TUint8 *&)

TInt GetData(TUint8 *&aData)[private]

Get pointer to as much contiguous trace data as is available.

Parameters

TUint8 *& aDataPointer to the first byte of trace data.

UpdateTail(TUint32, TUint32)

TUint UpdateTail(TUint32aOld,
TUint32aNew
)[private]

Update the stored tail offset.

Parameters

TUint32 aOldThe value which iTail is expected to have if no more overwrites have occurred
TUint32 aNewThe new value for iTail

Member Data Documentation

TUint iCopyBuffer

TUint iCopyBuffer[private]

TUint iCopyBufferSize

TUint iCopyBufferSize[private]

TUint iEnd

TUint iEnd[private]

TUint iGeneration

TUint iGeneration[private]

TUint iHead

TUint iHead[private]

TUint iMode

TUint iMode[private]

TUint iRecordOffsets

TUint iRecordOffsets[private]

TUint iStart

TUint iStart[private]

TUint iTail

TUint iTail[private]

TUint iWrap

TUint iWrap[private]