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.

Registers at entry:<br />

R1 address of parameter list<br />

R13 address of 72 byte save area for caller’s registers<br />

R14 return address<br />

R15 entry point address of exit routine<br />

Parameter list format:<br />

x’0 ’ Parameter list length<br />

x’2 ’ Flag byte<br />

1... .... GTRACE records requested<br />

.111 1111 Reserved<br />

x’3 ’ Reserved<br />

x’4 ’ Address of the trace record<br />

x’8 ’ Address of an eight byte output area for<br />

the TOD value supplied by the exit routine.<br />

Registers at exit:<br />

R0-R14 unchanged<br />

R15 return code<br />

0 = record selected<br />

4 = no TOD value available<br />

8 = record not selected<br />

The merge <strong>and</strong> selection exit returns an 8-byte time stamp for the individual record<br />

<strong>and</strong> indicates whether the record should be selected for further processing.<br />

TRACERED selects either <strong>CP</strong> or guest trace entries by time. If the timestamp of a<br />

guest record is not returned by the exit routine, the record cannot be selected by<br />

time.<br />

The GCS merge <strong>and</strong> selection exit should select only GTRACE records when<br />

requested by TRACERED.<br />

A return code 4 to TRACERED results in the record being skipped if the record is to<br />

be merged with others. If TRACERED is not merging multiple input files <strong>and</strong> if the<br />

records are not being selected by time, however, the record will be processed for<br />

output.<br />

A return code of 8 indicates that the record should not be selected.<br />

A return code of zero will result in the record being selected <strong>and</strong> merged using the<br />

TOD value.<br />

TRACERED Formatting Exit<br />

The TRACERED program supports user specified trace formatting exits for guest<br />

trace records recorded in system data files using the FID option of the GCS<br />

GTRACE macro <strong>and</strong> the TRSOURCE comm<strong>and</strong> (BLOCK mode).<br />

TRACERED reads blocks of data from system trace or CMS files, separates the<br />

individual records, <strong>and</strong> passes each to the formatting exit which is identified in the<br />

block descriptor record.<br />

Make sure that the CMS loader can access the TRACERED exit routine.<br />

TRACERED<br />

Formatting Exit Interface: When TRACERED processes a trace record in a<br />

system trace file block, or a CMS trace file block, it passes it to the user-supplied<br />

formatting exit if available:<br />

Chapter 3. <strong>CP</strong> <strong>Utilities</strong> 1883

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

Saved successfully!

Ooh no, something went wrong!