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.

TRACE: Options<br />

Usage Notes<br />

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

NODAT<br />

requests that the specified tracing be restricted to events occurring while the<br />

virtual machine has virtual dynamic address translation disabled. If you specify<br />

NODAT in addition to DAT, or if you specify neither DAT nor NODAT, events<br />

occurring in both DAT <strong>and</strong> non-DAT mode are traced.<br />

IDentifier ident<br />

specifies an identifier for a trace trap describing the event. It must be one to<br />

four characters long. If a trap already exists with the given identifier, it is<br />

replaced by the trap for the newly defined event. If you do not specify an ID, a<br />

unique number from 1 to 9999 is assigned as the identifier, with leading zeros<br />

removed. You cannot use the word ALL as an identifier. You may specify the<br />

IDentifier option only when defining a trace trap, not when modifying one with<br />

TRACE TRAP or the TRACE comm<strong>and</strong> without a primary trace oper<strong>and</strong>.<br />

CMd cp_comm<strong>and</strong><br />

specifies a <strong>CP</strong> comm<strong>and</strong> or set of <strong>CP</strong> comm<strong>and</strong>s to be processed when the<br />

specified event occurs.<br />

Multiple comm<strong>and</strong>s must be separated by line-end characters. Actual line-end<br />

characters end the trace comm<strong>and</strong>. For example, if the pound sign (#) is your<br />

logical line-end character, <strong>and</strong> if the double quotation mark (“) is your logical<br />

escape character, trace svc cmd d 20#d 30 issues a TRACE SVC comm<strong>and</strong><br />

that displays location 20, <strong>and</strong> then issues DISPLAY to display location 30.<br />

The comm<strong>and</strong> trace svc cmd d 20“#d 30 issues one TRACE comm<strong>and</strong>; it<br />

displays locations 20 <strong>and</strong> 30 whenever an SVC instruction is executed.<br />

You can use this option with TRACE GOTO, TRACE CALL, <strong>and</strong> TRACE<br />

RETURN to allow conditional <strong>and</strong> unconditional branching <strong>and</strong> subroutine calls<br />

between trace environments.<br />

All characters between the CMD option <strong>and</strong> the end of the TRACE comm<strong>and</strong><br />

line are considered part of the CMD field; thus, it must be the last option on the<br />

line. No comm<strong>and</strong> syntax verification is made on the set of <strong>CP</strong> comm<strong>and</strong>s to be<br />

processed until the specified event occurs. Terminal output from the set of<br />

comm<strong>and</strong>s is not affected by the TERM or NOTERM specification of the trace<br />

event.<br />

NOCMD<br />

specifies that no <strong>CP</strong> comm<strong>and</strong> be run when the specified event occurs. Use<br />

NOCMD to delete CMD fields from existing trace events.<br />

1. Guest control register values <strong>and</strong> translation table contents define the address<br />

space structure of the virtual machine. Program execution (<strong>and</strong> the STORE<br />

comm<strong>and</strong>) can change that structure over time. The TRACE comm<strong>and</strong><br />

oper<strong>and</strong>s that specify a guest address space to be traced by a trace trap use<br />

the current guest control register <strong>and</strong> translation table values to determine the<br />

segment table origin (STO) of the address space to be traced (at the time the<br />

TRACE comm<strong>and</strong> is issued). The STO or ASCE is contained in the trace trap<br />

<strong>and</strong> can be examined by use of the QUERY TRACE comm<strong>and</strong>—that is, you<br />

specify an address space based on the state of your virtual machine at the time<br />

the TRACE comm<strong>and</strong> is issued.<br />

2. A trace trap generated with a specific address space specification (STO or<br />

ASCE) always identifies that address space using the STO or ASCE generated<br />

from the control registers, the translation tables, or both.If your program<br />

execution changes the control register values <strong>and</strong> translation table contents to<br />

represent a different address space structure, there is no change to the trace

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

Saved successfully!

Ooh no, something went wrong!