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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
|
<?xml version="1.0" encoding="utf8" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">
<chapter>
<header>
<copyright>
<year>2016</year><year>2016</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</legalnotice>
<title>LTTng and Erlang/OTP</title>
<prepared></prepared>
<responsible></responsible>
<docno></docno>
<approved></approved>
<checked></checked>
<date>2016-04-27</date>
<rev></rev>
<file>LTTng.xml</file>
</header>
<section>
<title>Introduction</title>
<p>The Linux Trace Toolkit: next generation is an open source system software package
for correlated tracing of the Linux kernel, user applications and libraries. </p>
<p>For more information, please visit <url href="http://lttng.org">http://lttng.org</url></p>
</section>
<section>
<title>Building Erlang/OTP with LTTng support</title>
<p>
Configure and build Erlang with LTTng support:
</p>
<p>For LTTng to work properly with Erlang/OTP you need
the following packages installed:</p>
<list type="bulleted">
<item><p>LTTng-tools: a command line interface to control tracing sessions.</p></item>
<item><p>LTTng-UST: user space tracing library.</p></item>
</list>
<p>On Ubuntu this can be installed via <c>aptitude</c>:</p>
<code type="none">$ sudo aptitude install lttng-tools liblttng-ust-dev</code>
<p>See <url href="http://lttng.org/docs/#doc-installing-lttng">Installing LTTng</url>
for more information on how to install LTTng on your system.</p>
<p>After LTTng is properly installed on the system Erlang/OTP can be built with LTTng support.</p>
<code type="none">$ ./configure --with-dynamic-trace=lttng
$ make </code>
</section>
<section>
<title>Dyntrace Tracepoints</title>
<p>All tracepoints are in the domain of <c>com_ericsson_dyntrace</c></p>
<p>All Erlang types are the string equivalent in LTTng.</p>
<p><em>process_spawn</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>parent : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>entry : string</c> :: Code Location. Ex. <c>"lists:sort/1"</c></item>
</list>
<p>Example:</p>
<p><code type="none">process_spawn: { cpu_id = 3 }, { pid = "<0.131.0>", parent = "<0.130.0>", entry = "erlang:apply/2" }</code></p>
<p><em>process_link</em></p>
<list type="bulleted">
<item><c>to : string</c> :: Process ID or Port ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>from : string</c> :: Process ID or Port ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>type : string</c> :: <c>"link" | "unlink"</c></item>
</list>
<p>Example:</p>
<p><code type="none">process_link: { cpu_id = 3 }, { from = "<0.130.0>", to = "<0.131.0>", type = "link" }</code></p>
<p><em>process_exit</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>reason : string</c> :: Exit reason. Ex. <c>"normal"</c></item>
</list>
<p>Example:</p>
<p><code type="none">process_exit: { cpu_id = 3 }, { pid = "<0.130.0>", reason = "normal" }</code></p>
<p><em>process_register</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>name : string</c> :: Registered name. Ex. <c>"error_logger"</c></item>
<item><c>type : string</c> :: <c>"register" | "unregister"</c></item>
</list>
<p>Example:</p>
<p><code type="none">process_register: { cpu_id = 0 }, { pid = "<0.128.0>", name = "dyntrace_lttng_SUITE" type = "register" }</code></p>
<p><em>process_scheduled</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>entry : string</c> :: Code Location. Ex. <c>"lists:sort/1"</c></item>
<item><c>type : string</c> :: <c>"in" | "out" | "in_exiting" | "out_exiting" | "out_exited"</c></item>
</list>
<p>Example:</p>
<p><code type="none">process_scheduled: { cpu_id = 0 }, { pid = "<0.136.0>", entry = "erlang:apply/2", type = "in" }</code></p>
<p><em>port_open</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
</list>
<p>Example:</p>
<p><code type="none">port_open: { cpu_id = 5 }, { pid = "<0.131.0>", driver = "'/bin/sh -s unix:cmd'", port = "#Port<0.1887>" }</code></p>
<p><em>port_exit</em></p>
<list type="bulleted">
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>reason : string</c> :: Exit reason. Ex. <c>"normal"</c></item>
</list>
<p>Example:</p>
<p><code type="none">port_exit: { cpu_id = 5 }, { port = "#Port<0.1887>", reason = "normal" }</code></p>
<p><em>port_link</em></p>
<list type="bulleted">
<item><c>to : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>from : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>type : string</c> :: <c>"link" | "unlink"</c></item>
</list>
<p>Example:</p>
<p><code type="none">port_link: { cpu_id = 5 }, { from = "#Port<0.1887>", to = "<0.131.0>", type = "unlink" }</code></p>
<p><em>port_scheduled</em></p>
<list type="bulleted">
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>entry : string</c> :: Callback. Ex. <c>"open"</c></item>
<item><c>type : string</c> :: <c>"in" | "out" | "in_exiting" | "out_exiting" | "out_exited"</c></item>
</list>
<p>Example:</p>
<p><code type="none">port_scheduled: { cpu_id = 5 }, { pid = "#Port<0.1905>", entry = "close", type = "out" }</code></p>
<p><em>function_call</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>entry : string</c> :: Code Location. Ex. <c>"lists:sort/1"</c></item>
<item><c>depth : integer</c> :: Stack depth. Ex. <c>0</c></item>
</list>
<p>Example:</p>
<p><code type="none">function_call: { cpu_id = 5 }, { pid = "<0.145.0>", entry = "dyntrace_lttng_SUITE:'-t_call/1-fun-1-'/0", depth = 0 }</code></p>
<p><em>function_return</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>entry : string</c> :: Code Location. Ex. <c>"lists:sort/1"</c></item>
<item><c>depth : integer</c> :: Stack depth. Ex. <c>0</c></item>
</list>
<p>Example:</p>
<p><code type="none">function_return: { cpu_id = 5 }, { pid = "<0.145.0>", entry = "dyntrace_lttng_SUITE:waiter/0", depth = 0 }</code></p>
<p><em>function_exception</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>entry : string</c> :: Code Location. Ex. <c>"lists:sort/1"</c></item>
<item><c>class : string</c> :: Error reason. Ex. <c>"error"</c></item>
</list>
<p>Example:</p>
<p><code type="none">function_exception: { cpu_id = 5 }, { pid = "<0.144.0>", entry = "t:call_exc/1", class = "error" }</code></p>
<p><em>message_send</em></p>
<list type="bulleted">
<item><c>from : string</c> :: Process ID or Port ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>to : string</c> :: Process ID or Port ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>message : string</c> :: Message sent. Ex. <c>"{<0.162.0>,ok}"</c></item>
</list>
<p>Example:</p>
<p><code type="none">message_send: { cpu_id = 3 }, { from = "#Port<0.1938>", to = "<0.160.0>", message = "{#Port<0.1938>,eof}" }</code></p>
<p><em>message_receive</em></p>
<list type="bulleted">
<item><c>to : string</c> :: Process ID or Port ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>message : string</c> :: Message received. Ex. <c>"{<0.162.0>,ok}"</c></item>
</list>
<p>Example:</p>
<p><code type="none">message_receive: { cpu_id = 7 }, { to = "<0.167.0>", message = "{<0.165.0>,ok}" }</code></p>
<p><em>gc_minor_start</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>need : integer</c> :: Heap need. Ex. <c>2</c></item>
<item><c>heap : integer</c> :: Young heap word size. Ex. <c>233</c></item>
<item><c>old_heap : integer</c> :: Old heap word size. Ex. <c>233</c></item>
</list>
<p>Example:</p>
<p><code type="none">gc_minor_start: { cpu_id = 0 }, { pid = "<0.172.0>", need = 0, heap = 610, old_heap = 0 }</code></p>
<p><em>gc_minor_end</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>reclaimed : integer</c> :: Heap reclaimed. Ex. <c>2</c></item>
<item><c>heap : integer</c> :: Young heap word size. Ex. <c>233</c></item>
<item><c>old_heap : integer</c> :: Old heap word size. Ex. <c>233</c></item>
</list>
<p>Example:</p>
<p><code type="none">gc_minor_end: { cpu_id = 0 }, { pid = "<0.172.0>", reclaimed = 120, heap = 1598, old_heap = 1598 }</code></p>
<p><em>gc_major_start</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>need : integer</c> :: Heap need. Ex. <c>2</c></item>
<item><c>heap : integer</c> :: Young heap word size. Ex. <c>233</c></item>
<item><c>old_heap : integer</c> :: Old heap word size. Ex. <c>233</c></item>
</list>
<p>Example:</p>
<p><code type="none">gc_major_start: { cpu_id = 0 }, { pid = "<0.172.0>", need = 8, heap = 2586, old_heap = 1598 }</code></p>
<p><em>gc_major_end</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>reclaimed : integer</c> :: Heap reclaimed. Ex. <c>2</c></item>
<item><c>heap : integer</c> :: Young heap word size. Ex. <c>233</c></item>
<item><c>old_heap : integer</c> :: Old heap word size. Ex. <c>233</c></item>
</list>
<p>Example:</p>
<p><code type="none">gc_major_end: { cpu_id = 0 }, { pid = "<0.172.0>", reclaimed = 240, heap = 4185, old_heap = 0 }</code></p>
</section>
<section>
<title>BEAM Tracepoints</title>
<p>All tracepoints are in the domain of <c>com_ericsson_otp</c></p>
<p>All Erlang types are the string equivalent in LTTng.</p>
<p><em>scheduler_poll</em></p>
<list type="bulleted">
<item><c>scheduler : integer</c> :: Scheduler ID. Ex. <c>1</c></item>
<item><c>runnable : integer</c> :: Runnable. Ex. <c>1</c></item>
</list>
<p>Example:</p>
<p><code type="none">scheduler_poll: { cpu_id = 4 }, { scheduler = 1, runnable = 1 }</code></p>
<p><em>driver_init</em></p>
<list type="bulleted">
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>major : integer</c> :: Major version. Ex. <c>3</c></item>
<item><c>minor : integer</c> :: Minor version. Ex. <c>1</c></item>
<item><c>flags : integer</c> :: Flags. Ex. <c>1</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_init: { cpu_id = 2 }, { driver = "caller_drv", major = 3, minor = 3, flags = 1 }</code></p>
<p><em>driver_start</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_start: { cpu_id = 2 }, { pid = "<0.198.0>", driver = "caller_drv", port = "#Port<0.3676>" }</code></p>
<p><em>driver_output</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>bytes : integer</c> :: Size of data returned. Ex. <c>82</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_output: { cpu_id = 2 }, { pid = "<0.198.0>", port = "#Port<0.3677>", driver = "/bin/sh -s unix:cmd", bytes = 36 }</code></p>
<p><em>driver_outputv</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>bytes : integer</c> :: Size of data returned. Ex. <c>82</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_outputv: { cpu_id = 5 }, { pid = "<0.194.0>", port = "#Port<0.3663>", driver = "tcp_inet", bytes = 3 }</code></p>
<p><em>driver_ready_input</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_ready_input: { cpu_id = 5 }, { pid = "<0.189.0>", port = "#Port<0.3637>", driver = "inet_gethost 4 " }</code></p>
<p><em>driver_ready_output</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_ready_output: { cpu_id = 5 }, { pid = "<0.194.0>", port = "#Port<0.3663>", driver = "tcp_inet" }</code></p>
<p><em>driver_timeout</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_timeout: { cpu_id = 5 }, { pid = "<0.196.0>", port = "#Port<0.3664>", driver = "tcp_inet" }</code></p>
<p><em>driver_stop_select</em></p>
<list type="bulleted">
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_stop_select: { cpu_id = 5 }, { driver = "unknown" }</code></p>
<p><em>driver_flush</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_flush: { cpu_id = 7 }, { pid = "<0.204.0>", port = "#Port<0.3686>", driver = "tcp_inet" }</code></p>
<p><em>driver_stop</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_stop: { cpu_id = 5 }, { pid = "[]", port = "#Port<0.3673>", driver = "efile" }</code></p>
<p><em>driver_process_exit</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p><em>driver_ready_async</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_ready_async: { cpu_id = 3 }, { pid = "<0.181.0>", port = "#Port<0.3622>", driver = "efile" }</code></p>
<p><em>driver_call</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>command : integer</c> :: Command integer. Ex. <c>1</c></item>
<item><c>bytes : integer</c> :: Size of data returned. Ex. <c>82</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_call: { cpu_id = 2 }, { pid = "<0.202.0>", port = "#Port<0.3676>", driver = "caller_drv", command = 0, bytes = 2 }</code></p>
<p><em>driver_control</em></p>
<list type="bulleted">
<item><c>pid : string</c> :: Process ID. Ex. <c>"<0.131.0>"</c></item>
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>driver : string</c> :: Driver name. Ex. <c>"efile"</c></item>
<item><c>command : integer</c> :: Command integer. Ex. <c>1</c></item>
<item><c>bytes : integer</c> :: Size of data returned. Ex. <c>82</c></item>
</list>
<p>Example:</p>
<p><code type="none">driver_control: { cpu_id = 3 }, { pid = "<0.32767.8191>", port = "#Port<0.0>", driver = "forker", command = 83, bytes = 32 }</code></p>
<p><em>aio_pool_get</em></p>
<list type="bulleted">
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>length : integer</c> :: Async queue length. Ex. <c>0</c></item>
</list>
<p>Example:</p>
<p><code type="none">aio_pool_get: { cpu_id = 4 }, { port = "#Port<0.3614>", length = 0 }</code></p>
<p><em>aio_pool_add</em></p>
<list type="bulleted">
<item><c>port : string</c> :: Port ID. Ex. <c>"#Port<0.1031>"</c></item>
<item><c>length : integer</c> :: Async queue length. Ex. <c>-1</c></item>
</list>
<p>Async queue length is not defined for <c>add</c> operations.</p>
<p>Example:</p>
<p><code type="none">aio_pool_add: { cpu_id = 3 }, { port = "#Port<0.3614>", length = -1 }</code></p>
<p><em>carrier_create</em></p>
<list type="bulleted">
<item><c>type : string</c> :: Carrier type. Ex. <c>"ets_alloc"</c></item>
<item><c>instance : integer</c> :: Allocator instance. Ex. <c>1</c></item>
<item><c>size : integer</c> :: Carrier size. Ex. <c>262144</c></item>
<item><c>mbc_carriers : integer</c> :: Number of multiblock carriers in instance. Ex. <c>3</c></item>
<item><c>mbc_carriers_size : integer</c> :: Total size of multiblock blocks carriers in instance. Ex. <c>1343488</c></item>
<item><c>mbc_blocks : integer</c> :: Number of multiblock blocks in instance. Ex. <c>122</c></item>
<item><c>mbc_blocks_size : integer</c> :: Total size of all multiblock blocks in instance. Ex. <c>285296</c></item>
<item><c>sbc_carriers : integer</c> :: Number of singleblock carriers in instance. Ex. <c>1</c></item>
<item><c>sbc_carriers_size : integer</c> :: Total size of singleblock blocks carriers in instance. Ex. <c>1343488</c></item>
<item><c>sbc_blocks : integer</c> :: Number of singleblocks in instance. Ex. <c>1</c></item>
<item><c>sbc_blocks_size : integer</c> :: Total size of all singleblock blocks in instance. Ex. <c>285296</c></item>
</list>
<p>Example:</p>
<p><code type="none">carrier_create: { cpu_id = 2 }, { type = "ets_alloc", instance = 7, size = 2097152, mbc_carriers = 4, mbc_carriers_size = 3440640, mbc_blocks = 526, mbc_blocks_size = 1278576, sbc_carriers = 0, sbc_carriers_size = 0, sbc_blocks = 0, sbc_blocks_size = 0 }</code></p>
<p><em>carrier_destroy</em></p>
<list type="bulleted">
<item><c>type : string</c> :: Carrier type. Ex. <c>"ets_alloc"</c></item>
<item><c>instance : integer</c> :: Allocator instance. Ex. <c>1</c></item>
<item><c>size : integer</c> :: Carrier size. Ex. <c>262144</c></item>
<item><c>mbc_carriers : integer</c> :: Number of multiblock carriers in instance. Ex. <c>3</c></item>
<item><c>mbc_carriers_size : integer</c> :: Total size of multiblock blocks carriers in instance. Ex. <c>1343488</c></item>
<item><c>mbc_blocks : integer</c> :: Number of multiblock blocks in instance. Ex. <c>122</c></item>
<item><c>mbc_blocks_size : integer</c> :: Total size of all multiblock blocks in instance. Ex. <c>285296</c></item>
<item><c>sbc_carriers : integer</c> :: Number of singleblock carriers in instance. Ex. <c>1</c></item>
<item><c>sbc_carriers_size : integer</c> :: Total size of singleblock blocks carriers in instance. Ex. <c>1343488</c></item>
<item><c>sbc_blocks : integer</c> :: Number of singleblocks in instance. Ex. <c>1</c></item>
<item><c>sbc_blocks_size : integer</c> :: Total size of all singleblock blocks in instance. Ex. <c>285296</c></item>
</list>
<p>Example:</p>
<p><code type="none">carrier_destroy: { cpu_id = 6 }, { type = "ets_alloc", instance = 7, size = 262144, mbc_carriers = 3, mbc_carriers_size = 3178496, mbc_blocks = 925, mbc_blocks_size = 2305336, sbc_carriers = 0, sbc_carriers_size = 0, sbc_blocks = 0, sbc_blocks_size = 0 }</code></p>
<p><em>carrier_pool_put</em></p>
<list type="bulleted">
<item><c>type : string</c> :: Carrier type. Ex. <c>"ets_alloc"</c></item>
<item><c>instance : integer</c> :: Allocator instance. Ex. <c>1</c></item>
<item><c>size : integer</c> :: Carrier size. Ex. <c>262144</c></item>
</list>
<p>Example:</p>
<p><code type="none">carrier_pool_put: { cpu_id = 3 }, { type = "ets_alloc", instance = 5, size = 1048576 }</code></p>
<p><em>carrier_pool_get</em></p>
<list type="bulleted">
<item><c>type : string</c> :: Carrier type. Ex. <c>"ets_alloc"</c></item>
<item><c>instance : integer</c> :: Allocator instance. Ex. <c>1</c></item>
<item><c>size : integer</c> :: Carrier size. Ex. <c>262144</c></item>
</list>
<p>Example:</p>
<p><code type="none">carrier_pool_get: { cpu_id = 7 }, { type = "ets_alloc", instance = 4, size = 3208 }</code></p>
</section>
<section>
<title>Examples</title>
</section>
</chapter>
|