File: inviso_rt.3

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (323 lines) | stat: -rw-r--r-- 6,473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
.TH inviso_rt 3 "inviso  0.6" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
inviso_rt \- Direct API to the Inviso Runtime Component
.SH DESCRIPTION
.LP
The \fIinviso_rt\fR 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 \fIinviso\fR API\&.

.SH EXPORTS
.LP
.B
init_tracing(TracerData) -> NodeResult | {error,Reason}
.br
.RS
.LP
See inviso:init_tracing/2 for details\&.
.RE
.LP
.B
tp(Mod,Func,Arity,MatchSpec,Opts) ->
.br
.B
tp(Mod,Func,Arity,MatchSpec) -> NodeResult | {error,Reason}
.br
.B
tp(PatternList) -> NodeResult | {error,Reason}
.br
.RS
.TP
Types
Mod, Func = atom() | \&'_\&' | ModRegExp | {DirRegExp, ModRegExp}
.br
ModRegExp = regexp_string()
.br
DirRegExp = regexp_string()
.br
Arity = int() | \&'_\&'
.br
MatchSpec = true | false | [] | matchspec()
.br
PatternList = [Pattern], 
.br
Pattern = {Mod, Func, Arity, MatchSpec, Opts}
.br
Opts = [Opt]
.br
Opt = only_loaded
.br
NodeResult = {ok, [Ans]} | {error, Reason}
.br
Ans = int() | {error, Reason}
.br
.RE
.RS
.LP
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 \fIerlang:trace_pattern\fR\&. It is for instance illegal to specify \fIM==\&'_\&'\fR while \fIF\fR is not \fI\&'_\&'\fR\&.
.LP
Modules can also be specified using Erlang regular expressions as described in the \fIregexp\fR module\&. If \fI{DirRegExp, ModRegExp}\fR is used, module selection will further be restricted by that the module must be loaded from a location containing \fIDirRegExp\fR somewhere in the path\&. This can be used to for instance trace on all modules belonging to a certain application\&.
.RE
.LP
.B
tpl(Mod,Func,Arity,MatchSpec) ->
.br
.B
tpl(Mod,Func,Arity,MatchSpec,Opts) -> NodeResult | {error,Reason}
.br
.B
tpl(PatternList) -> NodeResult | {error,Reason}
.br
.RS
.LP
See tp/N function above for details on arguments and return values\&.
.LP
Set local trace pattern on specified functions\&.
.RE
.LP
.B
ctp(Mod,Func,Arity) -> NodeResult | {error,Reason}
.br
.RS
.LP
See tp/N for argument descriptions\&.
.LP
Clear global trace patterns\&.
.RE
.LP
.B
ctpl(Mod,Func,Arity) -> NodeResult | {error,Reason}
.br
.RS
.LP
See tp/N for argument description\&.
.LP
Clear local trace patterns\&.
.RE
.LP
.B
tf(PidSpec,FlagList) -> NodeResult | {error,Reason}
.br
.B
tf(TraceConfList) -> NodeResult | {error,Reason}
.br
.RS
.TP
Types
TraceConfList = [{PidSpec, FlagList}]
.br
FlagList = [Flag]
.br
PidSpec = all | new| existing | pid() | locally_registered_name()
.br
Flag = all process trace flags allowed\&.
.br
NodeResult = {ok, [Ans]} | {error, Reason}
.br
Ans = int() | {error, Reason}
.br
.RE
.RS
.LP
Set process trace flags\&. The integer returned if the call was successful describes the matched number of processes\&.
.RE
.LP
.B
ctf(PidSpec,FlagList) -> NodeResult | {error,Reason}
.br
.B
ctf(TraceConfList) -> NodeResult | {error,Reason}
.br
.RS
.LP
See tf/1,2 for arguments and return value description\&.
.LP
Clear process trace flags\&.
.RE
.LP
.B
init_tpm(Mod,Func,Arity,CallFunc) -> NodeResult | {error,Reason}
.br
.B
init_tpm(Mod,Func,Arity,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResult | {error,Reason}
.br
.RS
.TP
Types
Mod = Func = atom()
.br
Arity = int()
.br
NodeResult = ok | {error, Reason}
.br
InitFunc = RemoveFunc = {Module, Function} | function()/4 | void
.br
.RE
.RS
.LP
See inviso:init_tpm/5,7 for details\&.
.RE
.LP
.B
tpm(Mod,Func,Arity,MS) -> NodeResult | {error,Reason}
.br
.B
tpm(Mod,Func,Arity,MS,CallFunc) -> NodeResults | {error,Reason}
.br
.B
tpm(Mod,Func,Arity,MS,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResults | {error,Reason}
.br
.RS
.TP
Types
Mod = Func = atom() =/= \&'_\&'
.br
Arity = int()
.br
MS = match_spec()
.br
InitFunc = CallFunc = ReturnFunc = RemoveFunc = {Module, Function} | function()
.br
NodeResult = {ok, 1} | {ok, 0} | {error, Reason}
.br
.RE
.RS
.LP
See inviso:tpm/4,5,8 for details\&.
.RE
.LP
.B
tpm_tracer(Mod,Func,Arity,MS) -> NodeResult | {error,Reason}
.br
.B
tpm_tracer(Mod,Func,Arity,MS,CallFunc) -> NodeResults | {error,Reason}
.br
.B
tpm_tracer(Mod,Func,Arity,MS,InitFunc,CallFunc,ReturnFunc,RemoveFunc) -> NodeResults | {error,Reason}
.br
.RS
.LP
See inviso:tpm_tracer/4,5,8 for details\&.
.RE
.LP
.B
tpm_ms(Mod,Func,Arity,MSname,MS) ->d NodeResult | {error,Reason}
.br
.RS
.TP
Types
Mod = Func = atom()
.br
Arity = int()
.br
MSname = term()
.br
MatchSpec = [match_spec()]
.br
NodeResult = {ok, 1} | {ok, 0} | {error, Reason}
.br
.RE
.RS
.LP
See inviso:tpm_ms/5 for details\&.
.RE
.LP
.B
tpm_ms_tracer(Mod,Func,Arity,MSname,MS) ->d NodeResult | {error,Reason}
.br
.RS
.LP
See inviso:tpm_ms_tracer/5 for details\&.
.RE
.LP
.B
ctpm_ms(Mod,Func,Arity,MSname) -> NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResult = ok | {error, Reason}
.br
.RE
.RS
.LP
See inviso:ctpm_ms/4 for details\&.
.RE
.LP
.B
ctpm(Mod,Func,Arity) -> {ok,NodeResults} | NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResults = [{Node, NodeResult}]
.br
NodeResult = ok | {error, Reason}
.br
.RE
.RS
.LP
See inviso:ctpm/3 for details\&.
.RE
.LP
.B
local_register() ->NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResult = {R1, R2}
.br
R1 = R2 = {ok, 0} | {ok, 1} | {error, Reason}
.br
.RE
.RS
.LP
See inviso:tpm_localnames/0 for details\&.
.RE
.LP
.B
remove_local_register() ->NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResult = {R1, R2} | {error, Reason}
.br
R1 = R2 = ok | {error, Reason}
.br
.RE
.RS
.LP
See inviso:ctpm_localnames/0 for details\&.
.RE
.LP
.B
global_register() ->NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResult = {R1, R2} | {error, Reason}
.br
R1 = R2 = {ok, 0} | {ok, 1} | {error, Reason}
.br
.RE
.RS
.LP
See inviso:tpm_globalnames/0 for details\&.
.RE
.LP
.B
remove_global_register() ->NodeResult | {error,Reason}
.br
.RS
.TP
Types
NodeResult = {R1, R2} | {error, Reason}
.br
R1 = R2 = ok | {error, Reason}
.br
.RE
.RS
.LP
See inviso:ctpm_globalnames/0 for details\&.
.RE