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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. Data collection for trace IDs of trace type DATA occurs before execution of the<br />

overlaid instruction. If no data links are specified for the trace ID, a trace entry<br />

is created in the system trace file, but no data is collected.<br />

2. To calculate the exact amount of data that can be collected in a trace record,<br />

use the following formula:<br />

(3 times the number of data links specified) + (the total lengths of the data<br />

links) + (the total number of bytes to be collected).<br />

The sum must be less than or equal to 4 KB (in decimal).<br />

Also, the maximum number of data links allowed for any given trace ID is 255.<br />

The maximum data link length is 250.<br />

3. DATA traces should always be placed at instruction boundaries. The<br />

TRSOURCE comm<strong>and</strong> can verify only that the specified location is on a<br />

halfword boundary <strong>and</strong> that it contains a valid operation code; if these<br />

conditions are not met, the comm<strong>and</strong> fails, with an error message.<br />

If the verification is successful, the TRSOURCE comm<strong>and</strong> overlays the<br />

specified location with a data trace SVC instruction. If the location is not an<br />

instruction boundary, unpredictable results can occur, including a system<br />

failure.<br />

4. If an error is made while entering a data link, the entire trace must be dropped<br />

<strong>and</strong> redefined to remove the data link from the definition. This is because there<br />

is no way of deleting a data link from a trace definition. It is therefore<br />

recommended that the definitions of commonly used type DATA traces be<br />

saved in EXECs. Locations can be changed for defined but disabled DATA<br />

traces.<br />

5. Specification of extra data links for a defined but disabled trace results in an<br />

addition to the definition.<br />

6. The following is a list of restricted locations for the definition of trace points.<br />

These locations are restricted because enabling DATA traces in them would<br />

cause recursion or interlocks.<br />

a. Locations not on halfword boundaries.<br />

b. Locations not mapped in <strong>CP</strong> virtual storage.<br />

c. Locations of already enabled DATA traces. Note that multiple DATA traces<br />

may be defined at the same location but only one trace at a time may be<br />

enabled at that location.<br />

d. Locations within a module loaded with the <strong>CP</strong>XLOAD comm<strong>and</strong>.<br />

e. Locations that contain a NOOP (4700xxxx) preceded by a Subtract<br />

Halfword instruction. The H<strong>CP</strong>ENTER macro contains this instruction<br />

sequence.<br />

f. Locations that contain an enabled dynamic <strong>CP</strong> exit.<br />

7. Trace data is not collected during system termination.<br />

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

8. It is recommended that records defined for any code path traveled when<br />

writing a system trace file (including paging <strong>and</strong> spooling code paths <strong>and</strong> some<br />

code paths in IOS) be kept under a page in length.<br />

9. Users should avoid placing traces in code paths that hold spin locks, as this<br />

situation increases the path length under the spin lock <strong>and</strong> seriously decreases<br />

system performance.<br />

10. Users should avoid placing data traces on instructions that are targets of<br />

EXECUTE instructions; otherwise, results are unpredictable.<br />

11. If interpretation of a data link string during execution results in a negative or<br />

invalid address, a record is added to the system trace file to indicate that the<br />

error occurred. However, there is no external indication that the error occurred.<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 1691

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

Saved successfully!

Ooh no, something went wrong!