Debugging Dom-0/Dom-U Kernel
-
Boot Xen and Dom-0.
For details on how to boot Xen and Dom-0, refer UG1144 - PetaLinux Tools Documentation: Reference Guide.
-
Enable Xen awareness by enabling OS aware debug for Xen symbol file. Symbol
files are added to a process context to enable source level debugging.
For details on how to enable Xen awareness, refer Enabling Xen Awareness.
-
Debug Dom-0 kernel.
-
Enable OS awareness on the Linux symbol file in the
Debug view for Dom-0
VCPU context. For details on OS aware debug, refer OS Aware Debugging.
-
Suspend the Dom-0 VCPU#0 core. You can now insert breakpoints, step in, step out, watch variables,
stack trace or perform other source level debugging tasks.
-
Enable OS awareness on the Linux symbol file in the
Debug view for Dom-0
VCPU context. For details on OS aware debug, refer OS Aware Debugging.
-
Debug Dom-U Kernel.
- Copy the guest Linux images to Dom-0 file system.
- Create a Dom-U guest.
- Enable OS awareness on the Linux symbol file in the Debug view for Dom-U VCPU context. For details on OS aware debug, refer OS Aware Debugging.
- Suspend the Dom-U VCPU#0 core. You can now insert breakpoints, step in, step out, watch variables, stack trace or perform other source level debugging tasks.