27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TRSOURCE ID (Definition Oper<strong>and</strong>s)<br />

Examples<br />

1692 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

12. To trace data located in the absolute page zero, reverse prefixing must be<br />

used. When the value of the prefix register is added to the datalink string,<br />

values are obtained from absolute page zero. On the other h<strong>and</strong>, if the<br />

address calculated from a data link is less than hexadecimal 1000, the value<br />

recorded is obtained from the prefix page of the processor in which the data<br />

trace event occurs.<br />

13. If a traceid contains conditional statements (at least one IF statement) <strong>and</strong> the<br />

condition when the trace point is encountered results in the execution of no<br />

datalinks, then no trace record is made, not even a trace record containing<br />

only header information. It is as though the trace event never occurred.<br />

14. It is possible to specify lower case characters in a character constant<br />

definitions. This cannot be done by typing a <strong>CP</strong> comm<strong>and</strong> because all<br />

characters in the comm<strong>and</strong> are converted to upper case before the<br />

TRSOURCE comm<strong>and</strong> parser receives the comm<strong>and</strong>. To specify lower case,<br />

use the Diagnose X'08' interface from an EXEC or from an assembler<br />

program. Only the character constant should be specified in lower case. The<br />

following is an example of an EXEC that defines a character constant that<br />

contains lower case characters <strong>and</strong> single quotes.<br />

/* */<br />

cpcmd="TRSOURCE ID TT TYPE DATA IF G3.20 EQ C’Specify ’’vdev’’’ "<br />

response = ’’<br />

parse value Diag(’8’,cpcmd) with response ’15’x<br />

if response ¬= ’’ then say ’response=’response<br />

Examples of Data Link Usage: The following examples are based on the status of<br />

the registers <strong>and</strong> the storage pictured below.<br />

Registers Main Storage<br />

+--------+ 4000 00005008 00000000 0000A000 00000000<br />

G1 |00001000|<br />

+--------+ 5000 0000A004 00001144 00005555 00000000<br />

6000 00000000 00000000 0000A000 00000000<br />

+--------+<br />

G4 |00004000| ...<br />

+--------+<br />

A000 0000B000 0000C000 0000D000 0000E000<br />

+--------+ B000 C4C1E3C3 E3D9C1D7 11110000 00000000<br />

G5 |00005000|<br />

+--------+ C000 C4C1E3C3 E3D9C1D7 FFFF0000 00000000<br />

D000 DDDDDDDD 00000000 00000000 00000000<br />

+---------<br />

G6 |00006000|<br />

+---------

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!