Finding the unformatted global trace table

Global trace data sent to the resident trace table is always included in the non-summary dump data set of SVC dumps that are issued by Db2.

About this task

The following information describes how to locate this unformatted table by using control blocks that are published in the unformatted summary dump section.

Figure 1. Finding the unformatted trace table
Begin figure description. This figure displays how to find the unformatted trace table. End figure description.

Procedure

To find the unformatted global trace table:

  1. Locate the EBRMVT field at offset X'20' in the failing EB. This field contains the address of the RMVT.

    The failing EB's address is at offset X'30' in the SDWA and is listed under Key 14 of the VRA Diagnostic Information Report.

  2. Find the address of the RMFT (resource manager function table) at offset X'60' in the RMVT. The 17th RMVTRMFT element in the RMVT is at this offset.
  3. Locate the RMFTRUSE field at offset X'0C' in the RMFT. This field contains the address of the trace anchor block (TAB). If the high-order bit of this word is on, then the trace is active.
  4. Locate the TAB and these fields
    TABTABLE
    At offset X'0C' in the TAB and contains the address of the beginning of the trace table.
    TABOTTOM
    At offset X'14' in the TAB and contains the address of the end of the trace table.
    TABSLOT
    At offset X'18' in the TAB contains the address of the oldest (next available) entry in the trace table. This address changes as the table wraps.

Results

Table 1. Global trace table header format
Length in bytes Trace table header field descriptions
12 Eye-catcher 'TRACE TABLE'
1 Reserved
8 Command prefix
1 Reserved
4 Db2 subsystem name
2 Db2 system services ASID
4 Address of the Db2 TAB control block
4 Address of the Db2 RMFT control block for trace
4 Address of the Db2 SCOM control block