22.2. Debugging under z/VM

When running Linux under z/VM, the z/VM debugging tools are at your disposal. These include several useful commands such as display and trace.

In order to use these commands, you must be in CP mode. You can usually enter CP mode by pressing the PA1 key. If you want to issue a debug command without halting your virtual machine with the PA1 key, you can prefix the command with #CP; for example:

#CP TRACE I PSWA 2000

22.2.1. The trace command

The trace command is used to trace the flow of program execution.

To use this command, you need to create a trace set containing so-called trace traps. A trace trap consists of the trace command and operands. (If you do not specifically name a trace set at the first time you create ...

Get Linux® on the Mainframe now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.