Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (H-K)
Guardian Procedure Calls Reference Manual522629-013
7-25
HIST_FORMAT_ Procedure
An example trace in the TNS/E environment:
Example Traces: Case 4
The following example shows a stack trace started from a TNS procedure. In this
case, the TNS procedure is a static function named xtracer in the C source file named
SHTC. xtracer calls the native HIST_* procedures to perform the trace. The following
examples are identical in the TNS/R and TNS/E environments
options equals HO_Init_Here.
FormatSelect equals HF_trace (the default value).
For the next trace:
options equals HO_Init_Here.
FormatSelect equals HF_trace (the default value) + HF_LocLineTNS.
The next trace is from an accelerated version of the same program:
options equals HO_Init_Here.
FormatSelect equals HF_trace (the default value) + HF_LocLineTNS.
(millicode example)
options = HO_Init_uContext + HO_NoSuppress
FormatSelect = HF_trace + LocLineIPF
copyData + 0x6C51 (Milli)
pc:%h0000000000000000 psp:0x000000006FFFFC10 sp:0x000000006FFFF560
_SharedMilli_MOVB_FWD + 0x2B0 (Milli)
pc:%h0000000000000000 psp:0x000000006FFFFD00 sp:0x000000006FFFFC10
doer + 0x1A0 (UCr)
pc:0x0000000070001960 psp:0x000000006FFFFD80 sp:0x000000006FFFFD00
HIST_TEST_ACTOR + 0xC0 (UCr)
pc:0x0000000070001D60 psp:0x000000006FFFFDF0 sp:0x000000006FFFFD80
main + 0xB10 (UCr)
pc:0x00000000700028B0 psp:0x000000006FFFFEE0 sp:0x000000006FFFFDF0
_MAIN + 0x160 (UCr)
pc:0x0000000070002D40 psp:0x000000006FFFFF30 sp:0x000000006FFFFEE0
SHTC.xtracer + %37 (UC.00)
main + %740 (UC.00)
_MAIN + %32 (UC.00)
SHTC.xtracer + %37 (UC.00)
P=%001314 E=%000200:T,UC.00 L=%023502 S=%024142
main + %740 (UC.00)
P=%001071 E=%000200:T,UC.00 L=%023453
_MAIN + %32 (UC.00)
P=%000125 E=%000200:T,UC.00 L=%023430