tttracef.sgm 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!-- $XConsortium: tttracef.sgm /main/11 1996/09/08 20:20:25 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <RefEntry Id="CDEMX.MAN99.rsml.1" Remap="">
  10. <RefMeta>
  11. <RefEntryTitle>tttracefile</RefEntryTitle>
  12. <ManVolNum>special file</ManVolNum>
  13. </RefMeta>
  14. <RefNameDiv>
  15. <RefName><Filename>tttracefile</Filename></RefName>
  16. <RefPurpose>script of settings for ToolTalk tracing
  17. </RefPurpose>
  18. </RefNameDiv>
  19. <RefSynopsisDiv>
  20. <Synopsis><Literal>tttracefile</Literal></Synopsis>
  21. </RefSynopsisDiv>
  22. <RefSect1>
  23. <Title>DESCRIPTION</Title>
  24. <Para>A
  25. <Command>tttrace</Command> script contains settings that control ToolTalk calls and messages.
  26. A
  27. <Command>tttrace</Command> script consists of commands separated by semicolons or newlines.
  28. The first command must be the
  29. <Literal>version</Literal> command.
  30. </Para>
  31. <RefSect2>
  32. <Title>Commands</Title>
  33. <Para>If conflicting values are given for a setting, the last value wins.
  34. </Para>
  35. <VariableList>
  36. <VarListEntry>
  37. <Term>version n</Term>
  38. <ListItem>
  39. <!-- ex-TP-->
  40. <Para>The version of the
  41. <Literal>tttracefile</Literal> command syntax used. The current version is 1.
  42. </Para>
  43. </ListItem>
  44. </VarListEntry>
  45. <VarListEntry>
  46. <Term>follow [off | on]</Term>
  47. <ListItem>
  48. <!-- ex-TP-->
  49. <Para>Sets whether to follow all children forked by the traced client or
  50. subsequently started in the traced session. Default is
  51. <Literal>off</Literal>.</Para>
  52. </ListItem>
  53. </VarListEntry>
  54. <VarListEntry>
  55. <Term>[> | >>] outfile</Term>
  56. <ListItem>
  57. <!-- ex-TP-->
  58. <Para>File to be used for the trace output. By default, trace output
  59. goes to standard error. Normal
  60. <Filename MoreInfo="RefEntry">sh</Filename>(1) interpretation of
  61. <Emphasis>></Emphasis> and
  62. <Emphasis>>></Emphasis> applies.
  63. </Para>
  64. </ListItem>
  65. </VarListEntry>
  66. <VarListEntry>
  67. <Term>functions [all | none | func...]</Term>
  68. <ListItem>
  69. <!-- ex-TP-->
  70. <Para>ToolTalk API functions to trace.
  71. <Emphasis>func</Emphasis> may include
  72. <Filename MoreInfo="RefEntry">sh</Filename>(1) wildcard characters. Default is
  73. <Literal>all</Literal>.</Para>
  74. </ListItem>
  75. </VarListEntry>
  76. <VarListEntry>
  77. <Term>attributes [all | none]</Term>
  78. <ListItem>
  79. <!-- ex-TP-->
  80. <Para><Literal>none</Literal> means use only a single line when printing a message on the trace
  81. output.
  82. <Literal>all</Literal> means print all attributes, arguments, and context slots of traced
  83. messages. Default is
  84. <Literal>none</Literal>.</Para>
  85. </ListItem>
  86. </VarListEntry>
  87. <VarListEntry>
  88. <Term>states [none | edge | deliver | dispatch | Tt_state]...</Term>
  89. <ListItem>
  90. <!-- ex-TP-->
  91. <Para>State(s) through which to trace messages. In addition to
  92. the <ComputerOutput>Tt_state</ComputerOutput>s defined in <ComputerOutput>tt_c.h</ComputerOutput>, valid <Symbol Role="Variable">state</Symbol>s
  93. are:
  94. </Para>
  95. <ItemizedList>
  96. <ListItem><Para><ComputerOutput>none</ComputerOutput> - disable all message tracing
  97. </Para></ListItem>
  98. <ListItem><Para><ComputerOutput>edge</ComputerOutput> - messages entering initial (<ComputerOutput>TT_SENT</ComputerOutput>) and final
  99. (<ComputerOutput>TT_HANDLED</ComputerOutput>, <ComputerOutput>TT_FAILED</ComputerOutput>) states.
  100. </Para></ListItem>
  101. <ListItem><Para><ComputerOutput>deliver</ComputerOutput> - all state changes and all client deliveries.
  102. </Para></ListItem>
  103. <ListItem><Para><ComputerOutput>dispatch</ComputerOutput> - <ComputerOutput>deliver</ComputerOutput> + all patterns considered for
  104. matching. (default)
  105. </Para></ListItem>
  106. </ItemizedList>
  107. </ListItem>
  108. </VarListEntry>
  109. <VarListEntry>
  110. <Term><Literal>ops</Literal> <Emphasis>toTrace</Emphasis>...</Term>
  111. <Term><Literal>sender_ptypes</Literal> <Emphasis>toTrace</Emphasis>...</Term>
  112. <Term>handler_ptypes toTrace...</Term>
  113. <ListItem>
  114. <!-- ex-TP-->
  115. <Para>Trace messages that have
  116. <Emphasis>toTrace</Emphasis> as a value for the indicated message attribute.
  117. <Emphasis>toTrace</Emphasis> may include
  118. <Filename MoreInfo="RefEntry">sh</Filename>(1) wildcard characters.
  119. If no
  120. <Emphasis>toTrace</Emphasis> argument is included for a given message attribute, then
  121. no value of that attribute excludes a message from tracing.
  122. </Para>
  123. </ListItem>
  124. </VarListEntry>
  125. </VariableList>
  126. </RefSect2>
  127. <RefSect2>
  128. <Title>Comments</Title>
  129. <Para>A word beginning with
  130. <Literal>#</Literal> causes that word and all the following characters up to a newline to
  131. be ignored.
  132. </Para>
  133. </RefSect2>
  134. </RefSect1>
  135. <RefSect1>
  136. <Title>EXAMPLES</Title>
  137. <Para>To trace all attribute-getting and -setting messages sent by ptype starting
  138. with "Dt",
  139. </Para>
  140. <VariableList>
  141. <VarListEntry>
  142. <Term></Term>
  143. <ListItem>
  144. <Para><Literal>version</Literal> <ComputerOutput>1</ComputerOutput> <Literal>ops</Literal> <ComputerOutput>Get* Set*</ComputerOutput> <Literal>sender_ptypes</Literal> <ComputerOutput>Dt*</ComputerOutput></Para>
  145. <Para>To trace only ToolTalk function calls (but not messages) in a
  146. process tree,
  147. </Para>
  148. </ListItem>
  149. </VarListEntry>
  150. <VarListEntry>
  151. <Term></Term>
  152. <ListItem>
  153. <Para><Literal>version 1; follow on; states none</Literal>
  154. </Para>
  155. </ListItem>
  156. </VarListEntry>
  157. </VariableList>
  158. </RefSect1>
  159. <RefSect1>
  160. <Title>SEE ALSO</Title>
  161. <Para>&cdeman.ttsession;, &cdeman.tttrace;, the
  162. <Literal>Session_Trace</Literal>() ToolTalk request
  163. </Para>
  164. </RefSect1>
  165. </RefEntry>
  166. <!--fickle 1.12 mancsf-to-docbook 1.3 08/21/95 21:30:04-->