C/C++ contents of the Language Environment trace tables

Language Environment provides C/C++ trace table entry types 5 and 6, which contain character data.

Trace entry 5 occurs when a C library function is called. The format for trace table entry 5 is:
    NameOfCallingFunction
    -->(xxxx) NameOfCalledFunction<(input_parameters)>
or, for called functions calloc, free, malloc, and realloc:
    NameOfCallingFunction
    ––>(xxx) NameOfCalledFunction<(input_parameters)>
In addition, when the call is due to one of these C++ operators:
    -new,
    -new[],
    -delete,
    -delete[]
then the C++ operator will appear and the format becomes:
    NameOfCallingFunction
    ––>(xxx) NameOfCalledFunction<(input_parameters)>
     
    NameOfC++Operator

The input_parameters and NameOfC++Operator only appear for the appropriate functions. The angle brackets (<>) indicate that this information does not always appear.

Trace entry 6 occurs when a C library function returns. The format for trace table entry 6 is:
    <--(xxxx)
R1=xxxxxxxxxxxxxxxx R2=xxxxxxxxxxxxxxxx R3=xxxxxxxxxxxxxxxx
ERRNO=xxxxxxxx ERRNO2=xxxxxxxx

In the entry types, (xxx) and (xxxx) are numbers associated with the called library function and are used to associate a specific entry record with its corresponding return record.

For entry types 5 and 6, the number will be the same as the number of the function as seen in the C runtime library definition side-deck, SCEELIB dataset member CELQS003, on the IMPORT statement for that function.

Figure 1 shows an XPLINK trace that contains examples of the trace entries 5 and 6. For more information about the Language Environment trace table format, see Understanding the trace table entry (TTE).

Figure 1. Trace table with XPLINK trace table entries 5 and 6 (AMODE 64)
 Language Environment Trace Table:

    Most recent trace entry is at displacement: 000680

        Displacement                        Trace Entry in Hexadecimal                                Trace Entry in EBCDIC
        ------------ ------------------------------------------------------------------------   --------------------------------
          +000000    Time 21.58.20.255215    Date 2004.04.20    Thread ID... 8000000000000000
          +000010    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000018    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000038    60606E4D F0F1F5F6 5D406D6D 85999995  964D5D40 40404040 40404040 40404040  |-->(0156) __errno()             |
          +000058    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000078    40404040 40404040                                                         |                                |

          +000080    Time 21.58.20.255216    Date 2004.04.20    Thread ID... 8000000000000000
          +000090    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000098    4C60604D F0F1F5F6 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F8F7 F1C1C6F8 F040D9F2  |<--(0156) R1=000000010871AF80 R2|
          +0000B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F1F0F0F0  |=000000002552B8B8 R3=00000001000|
          +0000D8    F0F7F5F5 F840C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |07558 ERRNO=00000000 ERRNO2=0000|
          +0000F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000100    Time 21.58.20.255216    Date 2004.04.20    Thread ID... 8000000000000000
          +000110    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000118    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000138    60606E4D F0F1F5F6 5D406D6D 85999995  964D5D40 40404040 40404040 40404040  |-->(0156) __errno()             |
          +000158    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000178    40404040 40404040                                                         |                                |

          +000180    Time 21.58.20.255217    Date 2004.04.20    Thread ID... 8000000000000000
          +000190    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000198    4C60604D F0F1F5F6 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F8F7 F1C1C6F8 F040D9F2  |<--(0156) R1=000000010871AF80 R2|
          +0001B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F1F0F0F0  |=000000002552B8B8 R3=00000001000|
          +0001D8    F0F7F5F5 F840C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |07558 ERRNO=00000000 ERRNO2=0000|
          +0001F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000200    Time 21.58.20.255218    Date 2004.04.20    Thread ID... 8000000000000000
          +000210    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000218    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000238    60606E4D F0F0F7C5 5D4086A6 9989A385  4D5D4040 40404040 40404040 40404040  |-->(007E) fwrite()              |
          +000258    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000278    40404040 40404040                                                         |                                |

          +000280    Time 21.58.20.255242    Date 2004.04.20    Thread ID... 8000000000000000
          +000290    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000298    4C60604D F0F0F7C5 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F0F0 F0F8C2F3 F040D9F2  |<--(007E) R1=0000000100008B30 R2|
          +0002B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F0F0F0F0  |=000000002552B8B8 R3=00000000000|
          +0002D8    F0F0F0F0 C540C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |0000E ERRNO=00000000 ERRNO2=0000|
          +0002F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000300    Time 21.58.20.255243    Date 2004.04.20    Thread ID... 8000000000000000
          +000310    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000318    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000338    60606E4D F0F0F6F8 5D408686 93A4A288  4D5D4040 40404040 40404040 40404040  |-->(0068) fflush()              |
          +000358    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000378    40404040 40404040                                                         |                                |

          +000380    Time 21.58.20.255244    Date 2004.04.20    Thread ID... 8000000000000000
          +000390    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000398    4C60604D F0F0F6F8 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F0F0 F0F8F4F8 F040D9F2  |<--(0068) R1=0000000100008480 R2|
          +0003B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F0F0F0F0  |=000000002552B8B8 R3=00000000000|
          +0003D8    F0F0F0F0 F040C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |00000 ERRNO=00000000 ERRNO2=0000|
          +0003F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000400    Time 21.58.20.255245    Date 2004.04.20    Thread ID... 8000000000000000
          +000410    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000418    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000438    60606E4D F0F1F5F6 5D406D6D 85999995  964D5D40 40404040 40404040 40404040  |-->(0156) __errno()             |
          +000458    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000478    40404040 40404040                                                         |                                |
 
Figure 2. Trace table with XPLINK trace table entries 5 and 6 (AMODE 64)
          +000480    Time 21.58.20.255245    Date 2004.04.20    Thread ID... 8000000000000000
          +000490    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000498    4C60604D F0F1F5F6 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F8F7 F1C1C6F8 F040D9F2  |<--(0156) R1=000000010871AF80 R2|
          +0004B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F1F0F0F0  |=000000002552B8B8 R3=00000001000|
          +0004D8    F0F7F5F5 F840C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |07558 ERRNO=00000000 ERRNO2=0000|
          +0004F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000500    Time 21.58.20.255246    Date 2004.04.20    Thread ID... 8000000000000000
          +000510    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000518    86899385 82A4867A 7A96A585 99869396  A64D8995 A35D4040 40404040 40404040  |filebuf::overflow(int)          |
          +000538    60606E4D F0F1F5F6 5D406D6D 85999995  964D5D40 40404040 40404040 40404040  |-->(0156) __errno()             |
          +000558    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000578    40404040 40404040                                                         |                                |

          +000580    Time 21.58.20.255247    Date 2004.04.20    Thread ID... 8000000000000000
          +000590    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000598    4C60604D F0F1F5F6 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F8F7 F1C1C6F8 F040D9F2  |<--(0156) R1=000000010871AF80 R2|
          +0005B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F1F0F0F0  |=000000002552B8B8 R3=00000001000|
          +0005D8    F0F7F5F5 F840C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |07558 ERRNO=00000000 ERRNO2=0000|
          +0005F8    F0F0F0F0 00000000                                                         |0000....                        |

          +000600    Time 21.58.20.255252    Date 2004.04.20    Thread ID... 8000000000000000
          +000610    Member ID.... 03    Flags..... 000000    Entry Type..... 00000005
          +000618    E2A38183 924C8995 A36E7A7A 97A4A288  4D8995A3 5D404040 40404040 40404040  |Stack<int>::push(int)           |
          +000638    60606E4D F0F0F5F6 5D409481 93939683  4DF1F65D 40404040 40404040 40404040  |-->(0056) malloc(16)            |
          +000658    40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040  |                                |
          +000678    9585A640 40404040                                                         |new                             |

      >>> +000680    Time 21.58.20.255253    Date 2004.04.20    Thread ID... 8000000000000000
          +000690    Member ID.... 03    Flags..... 000000    Entry Type..... 00000006
          +000698    4C60604D F0F0F5F6 5D40D9F1 7EF0F0F0  F0F0F0F0 F1F0F8F3 F0C5C1F5 F040D9F2  |<--(0056) R1=000000010830EA50 R2|
          +0006B8    7EF0F0F0 F0F0F0F0 F0F2F5F5 F2C2F8C2  F840D9F3 7EF0F0F0 F0F0F0F0 F1F0F8F3  |=000000002552B8B8 R3=00000001083|
          +0006D8    F0C5C1F5 F040C5D9 D9D5D67E F0F0F0F0  F0F0F0F0 40C5D9D9 D5D6F27E F0F0F0F0  |0EA50 ERRNO=00000000 ERRNO2=0000|
          +0006F8    F0F0F0F0 00000000                                                         |0000....                        |