~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/inviso/doc/src/inviso_rt.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype erlref PUBLIC "-//Stork//DTD erlref//EN">
 
2
<!-- 
 
3
 ``The contents of this file are subject to the Erlang Public License,
 
4
 Version 1.1, (the "License"); you may not use this file except in
 
5
 compliance with the License. You should have received a copy of the
 
6
 Erlang Public License along with this software. If not, it can be
 
7
 retrieved via the world wide web at http://www.erlang.org/.
 
8
 
 
9
 Software distributed under the License is distributed on an "AS IS"
 
10
 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
11
 the License for the specific language governing rights and limitations
 
12
 under the License.
 
13
 
 
14
 The Initial Developer of the Original Code is Ericsson Utvecklings AB.
 
15
 Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
 
16
 AB. All Rights Reserved.''
 
17
 
 
18
     $Id$
 
19
-->
 
20
<erlref>
 
21
  <header>
 
22
    <title>inviso_rt</title>
 
23
    <prepared></prepared>
 
24
    <docno></docno>
 
25
    <date></date>
 
26
    <rev></rev>
 
27
  </header>
 
28
  <module>inviso_rt</module>
 
29
  <modulesummary>Direct API to the Inviso Runtime Component</modulesummary>
 
30
  <description>
 
31
    <p>The <c>inviso_rt</c> API is normally only used when programming autostart scripts or similar mechanisms. The reason is that the runtime component is part of the Runtime_tools application and will therefore always be available. But the regular inviso API is part of the Inviso application not necessarily available on the node doing an autostart. It is of course possible to runt a "lean" tracer only using the runtime component manually (i.e not through autostart). The runtime component shall otherwise be controlled through the control component, which is accessed with the <c>inviso</c> API.</p>
 
32
  </description>
 
33
 
 
34
  <funcs>
 
35
    <func>
 
36
      <name>init_tracing(TracerData) -> NodeResult | {error,Reason}</name>
 
37
      <fsummary>Initiate tracing</fsummary>
 
38
      <desc>
 
39
        <p>See <seealso marker="inviso#init_tracing/2">inviso:init_tracing/2</seealso> for details.</p>
 
40
      </desc>
 
41
    </func>
 
42
    
 
43
    <func>
 
44
      <name>tp(Mod,Func,Arity,MatchSpec,Opts) -></name>
 
45
      <name>tp(Mod,Func,Arity,MatchSpec) -> NodeResult | {error,Reason}</name>
 
46
      <name>tp(PatternList) -> NodeResult | {error,Reason}</name>
 
47
      <fsummary>Set global trace patterns</fsummary>
 
48
      <type>
 
49
        <v>Mod,Func = atom() | '_' | ModRegExp | {DirRegExp,ModRegExp}</v>
 
50
        <v>&nbsp;ModRegExp = regexp_string()</v>
 
51
        <v>&nbsp;DirRegExp = regexp_string()</v>
 
52
        <v>Arity = int() | '_'</v>
 
53
        <v>MatchSpec = true | false | [] | matchspec()</v>
 
54
        <v>PatternList = [Pattern],</v>
 
55
        <v>&nbsp;Pattern = {Mod,Func,Arity,MatchSpec,Opts}</v>
 
56
        <v>Opts = [Opt]</v>
 
57
        <v>&nbsp;Opt = only_loaded</v>
 
58
        <v>NodeResult = {ok,[Ans]} | {error,Reason}</v>
 
59
        <v>&nbsp;&nbsp;Ans = int() | {error,Reason}</v>
 
60
      </type>
 
61
      <desc>
 
62
        <p>Set global trace patterns. The integer replied if the call was successfull describes the number of matched functions. Using wildcards follows the rules for wildcards of <c>erlang:trace_pattern</c>. It is for instance illegal to specify <c>M=='_'</c> while <c>F</c> is not <c>'_'</c>.</p>
 
63
 
 
64
        <p>Modules can also be specified using Erlang regular expressions as described in the <c>regexp</c> module. If <c>{DirRegExp,ModRegExp}</c> is used, module selection will further be restricted by that the module must be loaded from a location containing <c>DirRegExp</c> somewhere in the path. This can be used to for instance trace on all modules belonging to a certain application.</p>
 
65
      </desc>
 
66
    </func>
 
67
 
 
68
    <func>
 
69
      <name>tpl(Mod,Func,Arity,MatchSpec) -></name>
 
70
      <name>tpl(Mod,Func,Arity,MatchSpec,Opts) -> NodeResult | {error,Reason}</name>
 
71
      <name>tpl(PatternList) -> NodeResult | {error,Reason}</name>
 
72
      <fsummary>Set local trace patterns</fsummary>
 
73
      <desc>
 
74
        <p>See <seealso marker="#tp/5">tp/N</seealso> function above for details on arguments and return values.</p>
 
75
 
 
76
        <p>Set local trace pattern on specified functions.</p>
 
77
      </desc>
 
78
    </func>
 
79
 
 
80
    <func>
 
81
      <name>ctp(Mod,Func,Arity) -> NodeResult | {error,Reason}</name>
 
82
      <fsummary>Clear global trace patterns</fsummary>
 
83
      <desc>
 
84
        <p>See <seealso marker="#tp/5">tp/N</seealso> for argument descriptions.</p>
 
85
 
 
86
        <p>Clear global trace patterns.</p>
 
87
      </desc>
 
88
    </func>
 
89
 
 
90
    <func>
 
91
      <name>ctpl(Mod,Func,Arity) -> NodeResult | {error,Reason}</name>
 
92
      <fsummary>Clear local trace patterns</fsummary>
 
93
      <desc>
 
94
        <p>See <seealso marker="#tp/5">tp/N</seealso> for argument description.</p>
 
95
 
 
96
        <p>Clear local trace patterns.</p>
 
97
      </desc>
 
98
    </func>
 
99
 
 
100
    <func>
 
101
      <name>tf(PidSpec,FlagList) -> NodeResult | {error,Reason}</name>
 
102
      <name>tf(TraceConfList) -> NodeResult | {error,Reason}</name>
 
103
      <fsummary>Set process trace flags</fsummary>
 
104
      <type>
 
105
        <v>TraceConfList = [{PidSpec,FlagList}]</v>
 
106
        <v>FlagList = [Flag]</v>
 
107
        <v>PidSpec = all | new| existing | pid() | locally_registered_name()</v>
 
108
        <v>Flag =  all process trace flags allowed.</v>
 
109
        <v>NodeResult = {ok,[Ans]} | {error,Reason}</v>
 
110
        <v>Ans = int() | {error,Reason}</v>
 
111
      </type>
 
112
      <desc>
 
113
        <p>Set process trace flags. The integer returned if the call was successful describes the matched number of processes.</p>
 
114
      </desc>
 
115
    </func>
 
116
 
 
117
    <func>
 
118
      <name>ctf(PidSpec,FlagList) -> NodeResult | {error,Reason}</name>
 
119
      <name>ctf(TraceConfList) -> NodeResult | {error,Reason}</name>
 
120
      <fsummary>Clear process trace flags</fsummary>
 
121
      <desc>
 
122
        <p>See <seealso marker="#tf/2">tf/1,2</seealso> for arguments and return value description.</p>
 
123
 
 
124
        <p>Clear process trace flags.</p>
 
125
      </desc>
 
126
    </func>
 
127
 
 
128
    <func>
 
129
      <name>init_tpm(Mod,Func,Arity,CallFunc) -> NodeResult | {error,Reason}</name>
 
130
      <name>init_tpm(Mod,Func,Arity,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResult | {error,Reason}</name>
 
131
      <fsummary>Initialize meta tracing</fsummary>
 
132
      <type>
 
133
        <v>Mod = Func = atom()</v>
 
134
        <v>Arity = int()</v>
 
135
        <v>NodeResult = ok | {error,Reason}</v>
 
136
        <v>InitFunc = RemoveFunc = {Module,Function} | function()/4 | void</v>
 
137
      </type>
 
138
      <desc>
 
139
        <p>See <seealso marker="inviso#init_tpm/4">inviso:init_tpm/5,7</seealso> for details.</p>
 
140
      </desc>
 
141
    </func>
 
142
 
 
143
    <func>
 
144
      <name>tpm(Mod,Func,Arity,MS) -> NodeResult | {error,Reason}</name>
 
145
      <name>tpm(Mod,Func,Arity,MS,CallFunc) -> NodeResults | {error,Reason}</name>
 
146
      <name>tpm(Mod,Func,Arity,MS,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResults | {error,Reason}</name>
 
147
      <fsummary>Activate meta tracing</fsummary>
 
148
      <type>
 
149
        <v>Mod = Func = atom() =/= '_'</v>
 
150
        <v>Arity = int()</v>
 
151
        <v>MS = match_spec()</v>
 
152
        <v>InitFunc = CallFunc = ReturnFunc = RemoveFunc = {Module,Function} | function()</v>
 
153
        <v>NodeResult = {ok,1} | {ok,0} | {error,Reason}</v>
 
154
      </type>
 
155
      <desc>
 
156
        <p>See <seealso marker="inviso#tpm/4">inviso:tpm/4,5,8</seealso> for details.</p>
 
157
      </desc>
 
158
    </func>
 
159
 
 
160
    <func>
 
161
      <name>tpm_tracer(Mod,Func,Arity,MS) -> NodeResult | {error,Reason}</name>
 
162
      <name>tpm_tracer(Mod,Func,Arity,MS,CallFunc) -> NodeResults | {error,Reason}</name>
 
163
      <name>tpm_tracer(Mod,Func,Arity,MS,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResults | {error,Reason}</name>
 
164
      <fsummary>Activate meta tracing</fsummary>
 
165
      <desc>
 
166
        <p>See inviso:tpm_tracer/4,5,8 for details.</p>
 
167
      </desc>
 
168
    </func>
 
169
 
 
170
    <func>
 
171
      <name>tpm_ms(Mod,Func,Arity,MSname,MS) ->d NodeResult | {error,Reason}</name>
 
172
      <fsummary>Add match specifications</fsummary>
 
173
      <type>
 
174
        <v>Mod = Func = atom()</v>
 
175
        <v>Arity = int()</v>
 
176
        <v>MSname = term()</v>
 
177
        <v>MatchSpec = [match_spec()]</v>
 
178
        <v>NodeResult = {ok,1} | {ok,0} | {error,Reason}</v>
 
179
      </type>
 
180
      <desc>
 
181
        <p>See <seealso marker="inviso#tpm_ms/5">inviso:tpm_ms/5</seealso> for details.</p>
 
182
      </desc>
 
183
    </func>
 
184
 
 
185
    <func>
 
186
      <name>tpm_ms_tracer(Mod,Func,Arity,MSname,MS) ->d NodeResult | {error,Reason}</name>
 
187
      <fsummary>Add match specifications</fsummary>
 
188
      <desc>
 
189
        <p>See inviso:tpm_ms_tracer/5 for details.</p>
 
190
      </desc>
 
191
    </func>
 
192
 
 
193
    <func>
 
194
      <name>ctpm_ms(Mod,Func,Arity,MSname) -> NodeResult | {error,Reason}</name>
 
195
      <fsummary>Remove a match specification</fsummary>
 
196
      <type>
 
197
        <v>NodeResult = ok | {error,Reason}</v>
 
198
      </type>
 
199
      <desc>
 
200
        <p>See <seealso marker="inviso#ctpm_ms/4">inviso:ctpm_ms/4</seealso> for details.</p>
 
201
      </desc>
 
202
    </func>
 
203
 
 
204
    <func>
 
205
      <name>ctpm(Mod,Func,Arity) -> {ok,NodeResults} | NodeResult | {error,Reason}</name>
 
206
      <fsummary>Remove a meta trace pattern</fsummary>
 
207
      <type>
 
208
        <v>NodeResults = [{Node,NodeResult}]</v>
 
209
        <v>NodeResult = ok | {error,Reason}</v>
 
210
      </type>
 
211
      <desc>
 
212
        <p>See <seealso marker="inviso#ctpm/3">inviso:ctpm/3</seealso> for details.</p>
 
213
      </desc>
 
214
    </func>
 
215
 
 
216
    <func>
 
217
      <name>local_register() ->NodeResult | {error,Reason}</name>
 
218
      <fsummary>Set meta trace pattern on <c>register/2</c></fsummary>
 
219
      <type>
 
220
        <v>NodeResult = {R1,R2}</v>
 
221
        <v>R1 = R2 = {ok,0} | {ok,1} | {error,Reason}</v>
 
222
      </type>
 
223
      <desc>
 
224
        <p>See <seealso marker="inviso#tpm_localnames/0">inviso:tpm_localnames/0</seealso> for details.</p>
 
225
      </desc>
 
226
    </func>
 
227
 
 
228
    <func>
 
229
      <name>remove_local_register() ->NodeResult | {error,Reason}</name>
 
230
      <fsummary>Clear meta trace pattern on <c>register/2</c></fsummary>
 
231
      <type>
 
232
        <v>NodeResult = {R1,R2} | {error,Reason}</v>
 
233
        <v>R1 = R2 = ok | {error,Reason}</v>
 
234
      </type>
 
235
      <desc>
 
236
        <p>See <seealso marker="inviso#ctpm_localnames/0">inviso:ctpm_localnames/0</seealso> for details.</p>
 
237
      </desc>
 
238
    </func>
 
239
 
 
240
    <func>
 
241
      <name>global_register() ->NodeResult | {error,Reason}</name>
 
242
      <fsummary>Set meta trace pattern on <c>global:register_name/2</c></fsummary>
 
243
      <type>
 
244
        <v>NodeResult = {R1,R2} | {error,Reason}</v>
 
245
        <v>R1 = R2 = {ok,0} | {ok,1} | {error,Reason}</v>
 
246
      </type>
 
247
      <desc>
 
248
        <p>See <seealso marker="inviso#tpm_globalnames/0">inviso:tpm_globalnames/0</seealso> for details.</p>
 
249
      </desc>
 
250
    </func>
 
251
 
 
252
    <func>
 
253
      <name>remove_global_register() ->NodeResult | {error,Reason}</name>
 
254
      <fsummary>Clear meta trace pattern on <c>global:register_name/2</c></fsummary>
 
255
      <type>
 
256
        <v>NodeResult = {R1,R2} | {error,Reason}</v>
 
257
        <v>R1 = R2 = ok | {error,Reason}</v>
 
258
      </type>
 
259
      <desc>
 
260
        <p>See <seealso marker="inviso#ctpm_globalnames/0">inviso:ctpm_globalnames/0</seealso> for details.</p>
 
261
      </desc>
 
262
    </func>
 
263
  </funcs>
 
264
 
 
265
  <authors>
 
266
    <aname>Lennart &Ouml;hman</aname>
 
267
    <email>support@erlang.ericsson.se</email>
 
268
  </authors>
 
269
</erlref>