Example: Adding Trace Traps to a Trace Set

In addition to modifying existing trace traps, you can create new trace traps. For example, assume that you decide to trace instructions between storage locations 40000 and 40100, as well as between storage locations 30000 and 30100. Also assume that you do not want CP to stop your virtual machine when it traps this new set of instructions. To do this, enter:
trace instruction pswa 40000-40100 run
Where:
pswa 40000–40100
tells CP to trace all instructions that your virtual machine issues between storage locations 40000 and 40100.
run
is an option that tells CP not to stop your virtual machine when it traps instructions between locations 40000 and 40100. (CP still displays data about the instructions.)
If, after you add this trap, you reenter the QUERY TRACE command, CP responds with information similar to the following:
NAME  SET1        (ACTIVE)
 
1     INSTR   PSWA  00030000-00030100
      TERM    NOPRINT  NORUN  SIM
      SKIP 00000  PASS 00000  STOP 00010  STEP 00010
      CMD  NONE
 
2     INSTR   PSWA  00040000-00040100
      TERM    NOPRINT  RUN    SIM
      SKIP 00000  PASS 00000  STOP 00000  STEP 00000
      CMD  NONE