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 TGroupIdaGroupId)[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 TGroupIdaGroupId,
const THasThreadIdentificationaHasThreadIdentification,
const THasProgramCounteraHasProgramCounter
)[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 aHasThreadIdentificationSet whether to add thread identification automatically in the trace packet.
const THasProgramCounter aHasProgramCounterSet whether to add PC (program counter) automatically in the trace packet.

TTraceContext(const TComponentId, const TGroupId)

TTraceContext(const TComponentIdaComponentId,
const TGroupIdaGroupId
)[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 TComponentIdaComponentId,
const TGroupIdaGroupId,
const THasThreadIdentificationaHasThreadIdentification,
const THasProgramCounteraHasProgramCounter
)[inline]

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

TComponentId TGroupId

Parameters

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

TTraceContext()

TTraceContext()[private, inline]

Member Functions Documentation

Classification()

IMPORT_C TClassificationClassification()const

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

Use TTraceContext::GroupId() instead.

ComponentId()

IMPORT_C TComponentIdComponentId()const

Get the current Component Id

DefaultComponentId()

IMPORT_C TComponentIdDefaultComponentId()[static]

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

GroupId()

IMPORT_C TGroupIdGroupId()const

Get the current group ID

HasProgramCounter()

IMPORT_C THasProgramCounterHasProgramCounter()const

Check if PC will be added by default.

HasThreadIdentification()

IMPORT_C THasThreadIdentificationHasThreadIdentification()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]