Allows context change events to be logged to a logger that is different from the one used by
xdc.runtime.Log.
Users can provide a special function to inject context change information into trace or log
sync points whenever a context change is logged. See ctxFilterEnabled config parameter for more info.
config LogCtxChg_ctxFilterEnabled // module-wide |
 |
set to true in the configuration script in order to enable context filtering
extern const Bool LogCtxChg_ctxFilterEnabled;
DETAILS
User can implement a custom function that is called instead of ti_uia_runtime_CtxFilter_isCtxEnabled()
to control context-aware filtering. This function can also e.g. inject context information into
the GEM trace or log sync point information if desired.
SEE
config LogCtxChg_isTimestampEnabled // module-wide |
 |
used to enable or disable logging the 64b local CPU timestamp
at the start of each event
extern const Bool LogCtxChg_isTimestampEnabled;
config LogCtxChg_loggerDefined // module-wide |
 |
set to true in the configuration script when a logger that implements ILoggerSnapshot is attached
extern const Bool LogCtxChg_loggerDefined;
config LogCtxChg_loggerFxn2 // module-wide |
 |
config LogCtxChg_loggerFxn8 // module-wide |
 |
config LogCtxChg_loggerObj // module-wide |
 |
handle of the logger that is to be used to log snapshot events
extern const Ptr LogCtxChg_loggerObj;
LogCtxChg_app() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_app(String fmt, IArg newAppId);
SEE
LogCtxChg_channel() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_channel(String fmt, IArg newChanId);
SEE
LogCtxChg_frame() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_frame(String fmt, IArg newFrameId);
SEE
LogCtxChg_hwiStart() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_hwiStart(String fmt, IArg hwiId);
SEE
LogCtxChg_hwiStop() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_hwiStop(String fmt, IArg hwiId);
SEE
LogCtxChg_putCtxChg1() // module-wide |
 |
Unconditionally put the specified Types event along with file name, line number, fmt string and 1 arg
ARGUMENTS
evt
the Types event to put into the log
mask
the diags mask of the event
syncPtSeqNum
the sync point sequence number to log with the event for correlation with trace
fmt
a constant string that provides format specifiers for up to 6 additional parameters
arg1
the context change argument to log
DETAILS
This method unconditionally puts the specified context change
Types.Event
evt into the log along with the fmt string, line and file name that the event was logged from,
and one parameter
LogCtxChg_putCtxChg2() // module-wide |
 |
Unconditionally put the specified Types event along with file name, line number, fmt string and 2 args
ARGUMENTS
evt
the Types event to put into the log
mask
the diags mask of the event
a1
the first context change argument to log
a2
the second context change argument to log
DETAILS
This method unconditionally puts the specified context change
Types.Event
evt into the log along with the fmt string, line and file name that the event was logged from,
and two parameters
LogCtxChg_putCtxChg8() // module-wide |
 |
Unconditionally put the specified Types event along with file name, line number, fmt string and 4 args
macro UInt32 LogCtxChg_putCtxChg8(
Types_Event evt,
Types_ModuleId mid,
IArg a1,
IArg a2,
IArg a3,
IArg a4,
IArg a5,
IArg a6,
IArg a7,
IArg a8);
ARGUMENTS
evt
the Types event to put into the log
mask
the diags mask of the event
syncPtSeqNum
the sync point sequence number to log with the event for correlation with trace
fmt
a constant string that provides format specifiers for up to 6 additional parameters
a1
the first context change argument to log
a2
the second context change argument to log
a3
the third context change argument to log
a4
the fourth context change argument to log
a5
the fifth context change argument to log
a6
the sixth context change argument to log
a7
the seventh context change argument to log
a8
the eighth context change argument to log
DETAILS
This method unconditionally puts the specified context change
Types.Event
evt into the log along with the fmt string, line and file name that the event was logged from,
and 4 parameters
LogCtxChg_swiStart() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_swiStart(String fmt, IArg swiId);
SEE
LogCtxChg_swiStop() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_swiStop(String fmt, IArg swiId);
SEE
LogCtxChg_thread() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_thread(String fmt, IArg newThreadId);
SEE
LogCtxChg_threadAndFunc() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_threadAndFunc(String fmt, IArg newThreadId, IArg oldFunc, IArg newFunc);
SEE
LogCtxChg_user() // module-wide |
 |
Log a context change event that can be used to enable context-aware event
filtering, context-aware profiling, etc
macro Void LogCtxChg_user(String fmt, IArg newCtxId);
SEE
Module-Wide Built-Ins |
 |
// Get this module's unique id
Bool LogCtxChg_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool LogCtxChg_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 LogCtxChg_Module_getMask();
// Returns the diagnostics mask for this module
Void LogCtxChg_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module