Starting trace for diagnostic kernel extension
The Diagnostic Controller loads the Kernel Extensions for each device that requires it. This is specified by the PDiagRes->KernExt ODM stanza for the device. If using DIAGEX or PDIAGEX, there is a trace hook built in for debugging purposes.
To use this trace hook, you first must make sure that the trace command is installed. This command is part of the bos.sysmgt.trace fileset.
To run trace, perform the following:
trace -j 355 // Invoke trace
> trcon // Start trace
> !diag -d "device_name"// Run diagnostics against the device
> trcoff // Stop trace
> quit // Quit
To generate a trace file, perform the following:
trcrpt -o /tmp/diagex.trc
This trace file will contain all the steps performed by the diagnostic kernel extension. To understand the tags, you must use the source code.