TTraceContext Class Reference

class TTraceContext

Class used to encapsulate the context of a trace point. For more information about the attributes please opensystemtrace_types.h.The attributes in TTraceContext are used to identify and filter the trace packet. opensystemtrace.mmh RUlogger for information on how to filter at run-time

Constructor & Destructor Documentation

TTraceContext(const TGroupId)

TTraceContext ( const TGroupId aGroupId ) [inline]

---------------TTraceContext----------------------- Define the context of a trace packet by setting its attributes.

The Component ID is defaulted according to the FW_DEFAULT_COMPONENTID definition. The HasThreadIdentification is defaulted to the FW_DEFAULT_HAS_THREAD_IDENTIFICATION definition. The HasProgramCounter is defaulted to the FW_DEFAULT_HAS_PC definition.

TGroupId

Parameters

const TGroupId aGroupId

TTraceContext(const TGroupId, const THasThreadIdentification, const THasProgramCounter)

TTraceContext ( const TGroupId aGroupId,
const THasThreadIdentification aHasThreadIdentification,
const THasProgramCounter aHasProgramCounter
) [inline]

Define the context of a trace packet by setting its attributes.

The Component ID is defaulted according to the FW_DEFAULT_COMPONENTID definition.

TGroupId

Parameters

const TGroupId aGroupId
const THasThreadIdentification aHasThreadIdentification Set whether to add thread identification automatically in the trace packet.
const THasProgramCounter aHasProgramCounter Set whether to add PC (program counter) automatically in the trace packet.

TTraceContext(const TComponentId, const TGroupId)

TTraceContext ( const TComponentId aComponentId,
const TGroupId aGroupId
) [inline]

Define the context of a trace packet by setting its attributes.

The HasThreadIdentification is defaulted to the FW_DEFAULT_HAS_THREAD_IDENTIFICATION definition. The HasProgramCounter is defaulted to the FW_DEFAULT_HAS_PC definition.

TComponentId TGroupId

Parameters

const TComponentId aComponentId
const TGroupId aGroupId

TTraceContext(const TComponentId, const TGroupId, const THasThreadIdentification, const THasProgramCounter)

TTraceContext ( const TComponentId aComponentId,
const TGroupId aGroupId,
const THasThreadIdentification aHasThreadIdentification,
const THasProgramCounter aHasProgramCounter
) [inline]

Define the context of a trace packet by setting its attributes.

TComponentId TGroupId

Parameters

const TComponentId aComponentId
const TGroupId aGroupId
const THasThreadIdentification aHasThreadIdentification Set whether to add thread identification automatically in the trace packet.
const THasProgramCounter aHasProgramCounter Set whether to add PC (program counter) automatically in the trace packet.

TTraceContext()

TTraceContext ( ) [private, inline]

Member Functions Documentation

Classification()

IMPORT_C TClassification Classification ( ) const

Get the current group ID in form of classification (although classification is deprecated)

Use TTraceContext::GroupId() instead.

ComponentId()

IMPORT_C TComponentId ComponentId ( ) const

Get the current Component Id

DefaultComponentId()

IMPORT_C TComponentId DefaultComponentId ( ) [static]

This method currently incorrectly returns 0, it should be returning the UID3 of the executable.

GroupId()

IMPORT_C TGroupId GroupId ( ) const

Get the current group ID

HasProgramCounter()

IMPORT_C THasProgramCounter HasProgramCounter ( ) const

Check if PC will be added by default.

HasThreadIdentification()

IMPORT_C THasThreadIdentification HasThreadIdentification ( ) const

Check if thread identification will be added by default.

Member Data Documentation

TComponentId iComponentId

TComponentId iComponentId [private]

TGroupId iGroupId

TGroupId iGroupId [private]

THasProgramCounter iHasProgramCounter

THasProgramCounter iHasProgramCounter [private]

THasThreadIdentification iHasThreadIdentification

THasThreadIdentification iHasThreadIdentification [private]

TUint32 iReserved1

TUint32 iReserved1 [private]

TUint32 iReserved2

TUint32 iReserved2 [private]