Commit | Line | Data |
---|---|---|
d132bcc7 BH |
1 | #################################################################### |
2 | # Copyright (c) 2012 Ericsson | |
3 | # | |
4 | # All rights reserved. This program and the accompanying materials are | |
5 | # made available under the terms of the Eclipse Public License v1.0 which | |
6 | # accompanies this distribution, and is available at | |
7 | # http://www.eclipse.org/legal/epl-v10.html | |
8 | # | |
9 | # Contributors: | |
10 | # Bernd Hufmann - Initial API and implementation | |
11 | #################################################################### | |
12 | #################################################################### | |
13 | # Scenario: Test no sessions available | |
14 | #################################################################### | |
15 | <SCENARIO> | |
16 | Initialize | |
276c17e7 BH |
17 | <COMMAND_INPUT> |
18 | lttng version | |
19 | </COMMAND_INPUT> | |
20 | <COMMAND_RESULT> | |
21 | 0 | |
22 | </COMMAND_RESULT> | |
23 | <COMMAND_OUTPUT> | |
24 | lttng version 2.0.0 - Annedd'ale | |
25 | Web site: http://lttng.org/ | |
26 | ||
27 | lttng is free software and under the GPL license and part LGPL | |
28 | </COMMAND_OUTPUT> | |
29 | ||
d132bcc7 BH |
30 | <COMMAND_INPUT> |
31 | lttng list | |
32 | </COMMAND_INPUT> | |
33 | <COMMAND_RESULT> | |
34 | 0 | |
35 | </COMMAND_RESULT> | |
36 | <COMMAND_OUTPUT> | |
37 | Currently no available tracing session | |
38 | </COMMAND_OUTPUT> | |
39 | ||
40 | <COMMAND_INPUT> | |
41 | lttng list -k | |
42 | </COMMAND_INPUT> | |
43 | <COMMAND_RESULT> | |
44 | 0 | |
45 | </COMMAND_RESULT> | |
46 | <COMMAND_OUTPUT> | |
47 | Kernel events | |
48 | ------------- | |
49 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
50 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
51 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
52 | ||
53 | </COMMAND_OUTPUT> | |
54 | ||
55 | <COMMAND_INPUT> | |
56 | lttng list -u | |
57 | </COMMAND_INPUT> | |
58 | <COMMAND_RESULT> | |
59 | 0 | |
60 | </COMMAND_RESULT> | |
61 | <COMMAND_OUTPUT> | |
62 | UST events: | |
63 | ------------- | |
64 | ||
65 | PID: 9379 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello | |
a26d90be BH |
66 | ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint) |
67 | ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) | |
d132bcc7 BH |
68 | |
69 | PID: 4852 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello | |
70 | ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint) | |
71 | ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) | |
72 | ||
73 | </COMMAND_OUTPUT> | |
74 | </SCENARIO> | |
75 | ||
76 | #################################################################### | |
a26d90be | 77 | # Scenario: Create and destroy session |
d132bcc7 BH |
78 | #################################################################### |
79 | <SCENARIO> | |
a26d90be BH |
80 | SessionHandling |
81 | <SCENARIO> | |
d132bcc7 BH |
82 | <COMMAND_INPUT> |
83 | lttng create mysession | |
84 | </COMMAND_INPUT> | |
85 | <COMMAND_RESULT> | |
86 | 0 | |
87 | </COMMAND_RESULT> | |
88 | <COMMAND_OUTPUT> | |
89 | Session mysession created. | |
90 | Traces will be written in /home/user/lttng-traces/mysession-20120314-132824 | |
91 | </COMMAND_OUTPUT> | |
92 | ||
93 | <COMMAND_INPUT> | |
94 | lttng list mysession | |
95 | </COMMAND_INPUT> | |
96 | <COMMAND_RESULT> | |
97 | 0 | |
98 | </COMMAND_RESULT> | |
99 | <COMMAND_OUTPUT> | |
100 | Tracing session mysession: [inactive] | |
101 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
102 | ||
103 | </COMMAND_OUTPUT> | |
104 | ||
a26d90be BH |
105 | <COMMAND_INPUT> |
106 | lttng destroy mysession | |
107 | </COMMAND_INPUT> | |
108 | <COMMAND_RESULT> | |
109 | 0 | |
110 | </COMMAND_RESULT> | |
111 | <COMMAND_OUTPUT> | |
112 | Session mysession destroyed. | |
113 | </COMMAND_OUTPUT> | |
114 | ||
115 | <COMMAND_INPUT> | |
116 | lttng start mysession | |
117 | </COMMAND_INPUT> | |
118 | <COMMAND_RESULT> | |
119 | 0 | |
120 | </COMMAND_RESULT> | |
121 | <COMMAND_OUTPUT> | |
122 | Tracing started for session mysession. | |
123 | </COMMAND_OUTPUT> | |
124 | ||
125 | <COMMAND_INPUT> | |
126 | lttng stop mysession | |
127 | </COMMAND_INPUT> | |
128 | <COMMAND_RESULT> | |
129 | 0 | |
130 | </COMMAND_RESULT> | |
131 | <COMMAND_OUTPUT> | |
132 | Tracing stopped for session mysession. | |
133 | </COMMAND_OUTPUT> | |
134 | ||
135 | </SCENARIO> | |
136 | ||
137 | #################################################################### | |
138 | # Scenario: Create and destroy session | |
139 | #################################################################### | |
140 | <SCENARIO> | |
141 | SessionHandlingWithPath | |
142 | <SCENARIO> | |
143 | <COMMAND_INPUT> | |
144 | lttng create mysession -o /home/user/temp | |
145 | </COMMAND_INPUT> | |
146 | <COMMAND_RESULT> | |
147 | 0 | |
148 | </COMMAND_RESULT> | |
149 | <COMMAND_OUTPUT> | |
150 | Session mysession created. | |
151 | Traces will be written in /home/user/temp | |
152 | </COMMAND_OUTPUT> | |
153 | ||
154 | <COMMAND_INPUT> | |
155 | lttng list mysession | |
156 | </COMMAND_INPUT> | |
157 | <COMMAND_RESULT> | |
158 | 0 | |
159 | </COMMAND_RESULT> | |
160 | <COMMAND_OUTPUT> | |
161 | Tracing session mysession: [inactive] | |
162 | Trace path: /home/user/temp | |
163 | ||
164 | </COMMAND_OUTPUT> | |
165 | ||
166 | <COMMAND_INPUT> | |
167 | lttng destroy mysession | |
168 | </COMMAND_INPUT> | |
169 | <COMMAND_RESULT> | |
170 | 0 | |
171 | </COMMAND_RESULT> | |
172 | <COMMAND_OUTPUT> | |
173 | Session mysession destroyed. | |
174 | </COMMAND_OUTPUT> | |
175 | ||
176 | </SCENARIO> | |
177 | ||
178 | ||
179 | #################################################################### | |
180 | # Scenario: Enable events from kernel provider events | |
181 | #################################################################### | |
182 | <SCENARIO> | |
183 | Scenario1 | |
184 | ||
185 | ||
d132bcc7 BH |
186 | <COMMAND_INPUT> |
187 | lttng enable-event sched_kthread_stop,sched_kthread_stop_ret -k -s mysession --tracepoint | |
188 | </COMMAND_INPUT> | |
189 | <COMMAND_RESULT> | |
190 | 0 | |
191 | </COMMAND_RESULT> | |
192 | <COMMAND_OUTPUT> | |
193 | kernel event sched_kthread_stop created in channel channel0 | |
194 | kernel sched_kthread_stop_ret created in channel channel0 | |
195 | </COMMAND_OUTPUT> | |
196 | ||
197 | <COMMAND_INPUT> | |
198 | lttng list mysession | |
199 | </COMMAND_INPUT> | |
200 | <COMMAND_RESULT> | |
201 | 0 | |
202 | </COMMAND_RESULT> | |
203 | <COMMAND_OUTPUT> | |
204 | Tracing session mysession: [inactive] | |
205 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
206 | ||
207 | === Domain: Kernel === | |
208 | ||
209 | Channels: | |
210 | ------------- | |
211 | - channel0: [enabled] | |
212 | ||
213 | Attributes: | |
214 | overwrite mode: 0 | |
215 | subbufers size: 262144 | |
216 | number of subbufers: 4 | |
217 | switch timer interval: 0 | |
218 | read timer interval: 200 | |
219 | output: splice() | |
220 | ||
221 | Events: | |
222 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
223 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
224 | ||
225 | </COMMAND_OUTPUT> | |
226 | ||
227 | <COMMAND_INPUT> | |
228 | lttng disable-event sched_kthread_stop_ret,sched_kthread_stop -k -s mysession -c channel0 | |
229 | </COMMAND_INPUT> | |
230 | <COMMAND_RESULT> | |
231 | 0 | |
232 | </COMMAND_RESULT> | |
233 | <COMMAND_OUTPUT> | |
234 | kernel event sched_kthread_stop_ret disabled in channel channel0 | |
235 | kernel event sched_kthread_stop disabled in channel channel0 | |
236 | </COMMAND_OUTPUT> | |
237 | ||
238 | <COMMAND_INPUT> | |
239 | lttng enable-event sched_kthread_stop -k -s mysession -c channel0 --tracepoint | |
240 | </COMMAND_INPUT> | |
241 | <COMMAND_RESULT> | |
242 | 0 | |
243 | </COMMAND_RESULT> | |
244 | <COMMAND_OUTPUT> | |
245 | kernel event sched_kthread_stop enabled in channel channel0 | |
246 | </COMMAND_OUTPUT> | |
247 | ||
d132bcc7 BH |
248 | </SCENARIO> |
249 | ||
250 | #################################################################### | |
251 | # Scenario: Enable events from UST provider events | |
252 | #################################################################### | |
253 | <SCENARIO> | |
254 | Scenario2 | |
a26d90be | 255 | |
d132bcc7 | 256 | <COMMAND_INPUT> |
a26d90be | 257 | lttng enable-channel mychannel -u -s mysession --subbuf-size 16384 --num-subbuf 2 --switch-timer 200 --read-timer 100 |
d132bcc7 BH |
258 | </COMMAND_INPUT> |
259 | <COMMAND_RESULT> | |
260 | 0 | |
261 | </COMMAND_RESULT> | |
262 | <COMMAND_OUTPUT> | |
a26d90be | 263 | UST channel mychannel enabled for session mysession |
d132bcc7 BH |
264 | </COMMAND_OUTPUT> |
265 | ||
266 | <COMMAND_INPUT> | |
267 | lttng list mysession | |
268 | </COMMAND_INPUT> | |
269 | <COMMAND_RESULT> | |
270 | 0 | |
271 | </COMMAND_RESULT> | |
272 | <COMMAND_OUTPUT> | |
273 | Tracing session mysession: [inactive] | |
274 | Trace path: /home/user/temp | |
275 | ||
a26d90be BH |
276 | === Domain: UST global === |
277 | ||
278 | Channels: | |
279 | ------------- | |
280 | - mychannel: [enabled] | |
281 | ||
282 | Attributes: | |
283 | overwrite mode: 0 | |
284 | subbufers size: 16384 | |
285 | number of subbufers: 2 | |
286 | switch timer interval: 200 | |
287 | read timer interval: 100 | |
288 | output: mmap() | |
289 | ||
290 | Events: | |
291 | None | |
292 | ||
d132bcc7 BH |
293 | </COMMAND_OUTPUT> |
294 | ||
295 | <COMMAND_INPUT> | |
a26d90be | 296 | lttng enable-event ust_tests_hello:tptest_sighandler,ust_tests_hello:tptest -u -s mysession --tracepoint |
d132bcc7 BH |
297 | </COMMAND_INPUT> |
298 | <COMMAND_RESULT> | |
299 | 0 | |
300 | </COMMAND_RESULT> | |
301 | <COMMAND_OUTPUT> | |
a26d90be BH |
302 | UST event ust_tests_hello:tptest_sighandler in channel channel0 |
303 | UST sched_ust_tests_hello:tptest created in channel channel0 | |
d132bcc7 BH |
304 | </COMMAND_OUTPUT> |
305 | ||
306 | <COMMAND_INPUT> | |
307 | lttng list mysession | |
308 | </COMMAND_INPUT> | |
309 | <COMMAND_RESULT> | |
310 | 0 | |
311 | </COMMAND_RESULT> | |
312 | <COMMAND_OUTPUT> | |
313 | Tracing session mysession: [inactive] | |
314 | Trace path: /home/user/temp | |
315 | ||
316 | === Domain: UST global === | |
317 | ||
318 | Channels: | |
319 | ------------- | |
320 | - mychannel: [enabled] | |
321 | ||
322 | Attributes: | |
323 | overwrite mode: 0 | |
324 | subbufers size: 16384 | |
325 | number of subbufers: 2 | |
326 | switch timer interval: 200 | |
327 | read timer interval: 100 | |
328 | output: mmap() | |
329 | ||
a26d90be BH |
330 | Events: |
331 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
332 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
333 | ||
334 | </COMMAND_OUTPUT> | |
335 | ||
336 | <COMMAND_INPUT> | |
337 | lttng disable-event ust_tests_hello:tptest -u -s mysession -c mychannel | |
338 | </COMMAND_INPUT> | |
339 | <COMMAND_RESULT> | |
340 | 0 | |
341 | </COMMAND_RESULT> | |
342 | <COMMAND_OUTPUT> | |
343 | kernel event ust_tests_hello:tptest in channel mychannel | |
344 | </COMMAND_OUTPUT> | |
345 | ||
346 | <COMMAND_INPUT> | |
347 | lttng enable-event ust_tests_hello:tptest -u -s mysession -c mychannel --tracepoint | |
348 | </COMMAND_INPUT> | |
349 | <COMMAND_RESULT> | |
350 | 0 | |
351 | </COMMAND_RESULT> | |
352 | <COMMAND_OUTPUT> | |
353 | kernel event ust_tests_hello:tptest enabled in channel mychannel | |
354 | </COMMAND_OUTPUT> | |
355 | ||
356 | </SCENARIO> | |
357 | ||
358 | <SCENARIO> | |
359 | Scenario3 | |
360 | ||
361 | <COMMAND_INPUT> | |
362 | lttng enable-channel mychannel -k -s mysession --overwrite --subbuf-size 16384 --num-subbuf 4 --switch-timer 100 --read-timer 200 | |
363 | </COMMAND_INPUT> | |
364 | <COMMAND_RESULT> | |
365 | 0 | |
366 | </COMMAND_RESULT> | |
367 | <COMMAND_OUTPUT> | |
368 | Kernel channel mychannel enabled for session mysession | |
369 | </COMMAND_OUTPUT> | |
370 | ||
371 | <COMMAND_INPUT> | |
372 | lttng list mysession | |
373 | </COMMAND_INPUT> | |
374 | <COMMAND_RESULT> | |
375 | 0 | |
376 | </COMMAND_RESULT> | |
377 | <COMMAND_OUTPUT> | |
378 | Tracing session mysession: [inactive] | |
379 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
380 | ||
381 | === Domain: Kernel === | |
382 | ||
383 | Channels: | |
384 | ------------- | |
385 | - mychannel: [enabled] | |
386 | ||
387 | Attributes: | |
388 | overwrite mode: 1 | |
389 | subbufers size: 16384 | |
390 | number of subbufers: 4 | |
391 | switch timer interval: 100 | |
392 | read timer interval: 200 | |
393 | output: splice() | |
394 | ||
d132bcc7 BH |
395 | Events: |
396 | None | |
397 | ||
398 | </COMMAND_OUTPUT> | |
399 | ||
400 | <COMMAND_INPUT> | |
a26d90be | 401 | lttng enable-channel mychannel2 -k -s mysession --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 |
d132bcc7 BH |
402 | </COMMAND_INPUT> |
403 | <COMMAND_RESULT> | |
404 | 0 | |
405 | </COMMAND_RESULT> | |
406 | <COMMAND_OUTPUT> | |
a26d90be | 407 | Kernel channel mychannel2 enabled for session mysession |
d132bcc7 BH |
408 | </COMMAND_OUTPUT> |
409 | ||
410 | <COMMAND_INPUT> | |
411 | lttng list mysession | |
412 | </COMMAND_INPUT> | |
413 | <COMMAND_RESULT> | |
414 | 0 | |
415 | </COMMAND_RESULT> | |
416 | <COMMAND_OUTPUT> | |
417 | Tracing session mysession: [inactive] | |
a26d90be | 418 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 |
d132bcc7 | 419 | |
a26d90be | 420 | === Domain: Kernel === |
d132bcc7 BH |
421 | |
422 | Channels: | |
423 | ------------- | |
424 | - mychannel: [enabled] | |
425 | ||
426 | Attributes: | |
a26d90be | 427 | overwrite mode: 1 |
d132bcc7 | 428 | subbufers size: 16384 |
a26d90be BH |
429 | number of subbufers: 4 |
430 | switch timer interval: 100 | |
431 | read timer interval: 200 | |
432 | output: splice() | |
433 | ||
434 | Events: | |
435 | None | |
436 | ||
437 | - mychannel2: [enabled] | |
438 | ||
439 | Attributes: | |
440 | overwrite mode: 0 | |
441 | subbufers size: 32768 | |
d132bcc7 | 442 | number of subbufers: 2 |
a26d90be BH |
443 | switch timer interval: 100 |
444 | read timer interval: 200 | |
445 | output: splice() | |
d132bcc7 BH |
446 | |
447 | Events: | |
a26d90be | 448 | None |
d132bcc7 BH |
449 | |
450 | </COMMAND_OUTPUT> | |
451 | ||
a26d90be | 452 | |
d132bcc7 | 453 | <COMMAND_INPUT> |
a26d90be | 454 | lttng disable-channel mychannel,mychannel2 -k -s mysession |
d132bcc7 BH |
455 | </COMMAND_INPUT> |
456 | <COMMAND_RESULT> | |
457 | 0 | |
458 | </COMMAND_RESULT> | |
459 | <COMMAND_OUTPUT> | |
a26d90be BH |
460 | Kernel channel mychannel disabled for session mysession |
461 | Kernel channel mychannel2 disabled for session mysession | |
d132bcc7 BH |
462 | </COMMAND_OUTPUT> |
463 | ||
464 | <COMMAND_INPUT> | |
a26d90be | 465 | lttng enable-channel mychannel,mychannel2 -k -s mysession |
d132bcc7 BH |
466 | </COMMAND_INPUT> |
467 | <COMMAND_RESULT> | |
468 | 0 | |
469 | </COMMAND_RESULT> | |
470 | <COMMAND_OUTPUT> | |
a26d90be BH |
471 | Kernel channel mychannel enabled for session mysession |
472 | Kernel channel mychannel2 enabled for session mysession | |
d132bcc7 BH |
473 | </COMMAND_OUTPUT> |
474 | ||
d132bcc7 | 475 | <COMMAND_INPUT> |
a26d90be | 476 | lttng enable-event sched_kthread_stop,sched_kthread_stop_ret -k -s mysession --tracepoint |
d132bcc7 BH |
477 | </COMMAND_INPUT> |
478 | <COMMAND_RESULT> | |
479 | 0 | |
480 | </COMMAND_RESULT> | |
481 | <COMMAND_OUTPUT> | |
a26d90be BH |
482 | kernel event sched_kthread_stop created in channel channel0 |
483 | kernel sched_kthread_stop_ret created in channel channel0 | |
d132bcc7 BH |
484 | </COMMAND_OUTPUT> |
485 | ||
a26d90be BH |
486 | <COMMAND_INPUT> |
487 | lttng list mysession | |
488 | </COMMAND_INPUT> | |
489 | <COMMAND_RESULT> | |
490 | 0 | |
491 | </COMMAND_RESULT> | |
492 | <COMMAND_OUTPUT> | |
493 | Tracing session mysession: [inactive] | |
494 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
495 | ||
496 | === Domain: Kernel === | |
497 | ||
498 | Channels: | |
499 | ------------- | |
500 | - mychannel: [enabled] | |
501 | ||
502 | Attributes: | |
503 | overwrite mode: 1 | |
504 | subbufers size: 16384 | |
505 | number of subbufers: 4 | |
506 | switch timer interval: 100 | |
507 | read timer interval: 200 | |
508 | output: splice() | |
509 | ||
510 | Events: | |
511 | None | |
512 | ||
513 | - mychannel2: [enabled] | |
514 | ||
515 | Attributes: | |
516 | overwrite mode: 0 | |
517 | subbufers size: 32768 | |
518 | number of subbufers: 2 | |
519 | switch timer interval: 100 | |
520 | read timer interval: 200 | |
521 | output: splice() | |
522 | ||
523 | Events: | |
524 | None | |
525 | ||
526 | - channel0: [enabled] | |
527 | ||
528 | Attributes: | |
529 | overwrite mode: 0 | |
530 | subbufers size: 262144 | |
531 | number of subbufers: 4 | |
532 | switch timer interval: 0 | |
533 | read timer interval: 200 | |
534 | output: splice() | |
535 | ||
536 | Events: | |
537 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
538 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
539 | ||
540 | </COMMAND_OUTPUT> | |
541 | ||
542 | <COMMAND_INPUT> | |
543 | lttng enable-event sched_wakeup_new -k -s mysession --tracepoint | |
544 | </COMMAND_INPUT> | |
545 | <COMMAND_RESULT> | |
546 | 0 | |
547 | </COMMAND_RESULT> | |
548 | <COMMAND_OUTPUT> | |
549 | kernel event sched_wakeup_new created in channel channel0 | |
550 | </COMMAND_OUTPUT> | |
551 | ||
552 | <COMMAND_INPUT> | |
553 | lttng list mysession | |
554 | </COMMAND_INPUT> | |
555 | <COMMAND_RESULT> | |
556 | 0 | |
557 | </COMMAND_RESULT> | |
558 | <COMMAND_OUTPUT> | |
559 | Tracing session mysession: [inactive] | |
560 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
561 | ||
562 | === Domain: Kernel === | |
563 | ||
564 | Channels: | |
565 | ------------- | |
566 | - mychannel: [enabled] | |
567 | ||
568 | Attributes: | |
569 | overwrite mode: 1 | |
570 | subbufers size: 16384 | |
571 | number of subbufers: 4 | |
572 | switch timer interval: 100 | |
573 | read timer interval: 200 | |
574 | output: splice() | |
575 | ||
576 | Events: | |
577 | None | |
578 | ||
579 | - mychannel2: [enabled] | |
580 | ||
581 | Attributes: | |
582 | overwrite mode: 0 | |
583 | subbufers size: 32768 | |
584 | number of subbufers: 2 | |
585 | switch timer interval: 100 | |
586 | read timer interval: 200 | |
587 | output: splice() | |
588 | ||
589 | Events: | |
590 | None | |
591 | ||
592 | - channel0: [enabled] | |
593 | ||
594 | Attributes: | |
595 | overwrite mode: 0 | |
596 | subbufers size: 262144 | |
597 | number of subbufers: 4 | |
598 | switch timer interval: 0 | |
599 | read timer interval: 200 | |
600 | output: splice() | |
601 | ||
602 | Events: | |
603 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
604 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
605 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
606 | ||
607 | </COMMAND_OUTPUT> | |
608 | ||
609 | <COMMAND_INPUT> | |
610 | lttng enable-event -a -k -s mysession -c mychannel2 --tracepoint | |
611 | </COMMAND_INPUT> | |
612 | <COMMAND_RESULT> | |
613 | 0 | |
614 | </COMMAND_RESULT> | |
615 | <COMMAND_OUTPUT> | |
616 | All kernel event sched_kthread_stop created in channel channel0 | |
617 | </COMMAND_OUTPUT> | |
618 | ||
619 | <COMMAND_INPUT> | |
620 | lttng list mysession | |
621 | </COMMAND_INPUT> | |
622 | <COMMAND_RESULT> | |
623 | 0 | |
624 | </COMMAND_RESULT> | |
625 | <COMMAND_OUTPUT> | |
626 | Tracing session mysession: [inactive] | |
627 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
628 | ||
629 | === Domain: Kernel === | |
630 | ||
631 | Channels: | |
632 | ------------- | |
633 | - mychannel: [enabled] | |
634 | ||
635 | Attributes: | |
636 | overwrite mode: 1 | |
637 | subbufers size: 16384 | |
638 | number of subbufers: 4 | |
639 | switch timer interval: 100 | |
640 | read timer interval: 200 | |
641 | output: splice() | |
642 | ||
643 | Events: | |
644 | None | |
645 | ||
646 | - mychannel2: [enabled] | |
647 | ||
648 | Attributes: | |
649 | overwrite mode: 0 | |
650 | subbufers size: 32768 | |
651 | number of subbufers: 2 | |
652 | switch timer interval: 100 | |
653 | read timer interval: 200 | |
654 | output: splice() | |
655 | ||
656 | Events: | |
657 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
658 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
659 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
660 | ||
661 | - channel0: [enabled] | |
662 | ||
663 | Attributes: | |
664 | overwrite mode: 0 | |
665 | subbufers size: 262144 | |
666 | number of subbufers: 4 | |
667 | switch timer interval: 0 | |
668 | read timer interval: 200 | |
669 | output: splice() | |
670 | ||
671 | Events: | |
672 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
673 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
674 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
675 | ||
676 | </COMMAND_OUTPUT> | |
677 | ||
678 | <COMMAND_INPUT> | |
679 | lttng enable-event -a -k -s mysession -c mychannel --syscall | |
680 | </COMMAND_INPUT> | |
681 | <COMMAND_RESULT> | |
682 | 0 | |
683 | </COMMAND_RESULT> | |
684 | <COMMAND_OUTPUT> | |
685 | All kernel system calls are enabled in channel mychannel | |
686 | </COMMAND_OUTPUT> | |
687 | ||
688 | <COMMAND_INPUT> | |
689 | lttng list mysession | |
690 | </COMMAND_INPUT> | |
691 | <COMMAND_RESULT> | |
692 | 0 | |
693 | </COMMAND_RESULT> | |
694 | <COMMAND_OUTPUT> | |
695 | Tracing session mysession: [inactive] | |
696 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
697 | ||
698 | === Domain: Kernel === | |
699 | ||
700 | Channels: | |
701 | ------------- | |
702 | - mychannel: [enabled] | |
703 | ||
704 | Attributes: | |
705 | overwrite mode: 1 | |
706 | subbufers size: 16384 | |
707 | number of subbufers: 4 | |
708 | switch timer interval: 100 | |
709 | read timer interval: 200 | |
710 | output: splice() | |
711 | ||
712 | Events: | |
713 | syscalls (type: syscall) [enabled] | |
714 | ||
715 | - mychannel2: [enabled] | |
716 | ||
717 | Attributes: | |
718 | overwrite mode: 0 | |
719 | subbufers size: 32768 | |
720 | number of subbufers: 2 | |
721 | switch timer interval: 100 | |
722 | read timer interval: 200 | |
723 | output: splice() | |
724 | ||
725 | Events: | |
726 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
727 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
728 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
729 | ||
730 | - channel0: [enabled] | |
731 | ||
732 | Attributes: | |
733 | overwrite mode: 0 | |
734 | subbufers size: 262144 | |
735 | number of subbufers: 4 | |
736 | switch timer interval: 0 | |
737 | read timer interval: 200 | |
738 | output: splice() | |
739 | ||
740 | Events: | |
741 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
742 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
743 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
744 | ||
745 | </COMMAND_OUTPUT> | |
746 | ||
747 | <COMMAND_INPUT> | |
748 | lttng enable-event -a -k -s mysession --syscall | |
749 | </COMMAND_INPUT> | |
750 | <COMMAND_RESULT> | |
751 | 0 | |
752 | </COMMAND_RESULT> | |
753 | <COMMAND_OUTPUT> | |
754 | All kernel system calls are enabled in channel channel0 | |
755 | </COMMAND_OUTPUT> | |
756 | ||
757 | <COMMAND_INPUT> | |
758 | lttng list mysession | |
759 | </COMMAND_INPUT> | |
760 | <COMMAND_RESULT> | |
761 | 0 | |
762 | </COMMAND_RESULT> | |
763 | <COMMAND_OUTPUT> | |
764 | Tracing session mysession: [inactive] | |
765 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
766 | ||
767 | === Domain: Kernel === | |
768 | ||
769 | Channels: | |
770 | ------------- | |
771 | - mychannel: [enabled] | |
772 | ||
773 | Attributes: | |
774 | overwrite mode: 1 | |
775 | subbufers size: 16384 | |
776 | number of subbufers: 4 | |
777 | switch timer interval: 100 | |
778 | read timer interval: 200 | |
779 | output: splice() | |
780 | ||
781 | Events: | |
782 | syscalls (type: syscall) [enabled] | |
783 | ||
784 | - mychannel2: [enabled] | |
785 | ||
786 | Attributes: | |
787 | overwrite mode: 0 | |
788 | subbufers size: 32768 | |
789 | number of subbufers: 2 | |
790 | switch timer interval: 100 | |
791 | read timer interval: 200 | |
792 | output: splice() | |
793 | ||
794 | Events: | |
795 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
796 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
797 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
798 | ||
799 | - channel0: [enabled] | |
800 | ||
801 | Attributes: | |
802 | overwrite mode: 0 | |
803 | subbufers size: 262144 | |
804 | number of subbufers: 4 | |
805 | switch timer interval: 0 | |
806 | read timer interval: 200 | |
807 | output: splice() | |
808 | ||
809 | Events: | |
810 | syscalls (type: syscall) [enabled] | |
811 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
812 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
813 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
814 | ||
815 | </COMMAND_OUTPUT> | |
816 | ||
817 | <COMMAND_INPUT> | |
818 | lttng enable-event -a -k -s mysession --syscall | |
819 | </COMMAND_INPUT> | |
820 | <COMMAND_RESULT> | |
821 | 0 | |
822 | </COMMAND_RESULT> | |
823 | <COMMAND_OUTPUT> | |
824 | All kernel system calls are enabled in channel channel0 | |
825 | </COMMAND_OUTPUT> | |
826 | ||
827 | <COMMAND_INPUT> | |
828 | lttng list mysession | |
829 | </COMMAND_INPUT> | |
830 | <COMMAND_RESULT> | |
831 | 0 | |
832 | </COMMAND_RESULT> | |
833 | <COMMAND_OUTPUT> | |
834 | Tracing session mysession: [inactive] | |
835 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
836 | ||
837 | === Domain: Kernel === | |
838 | ||
839 | Channels: | |
840 | ------------- | |
841 | - mychannel: [enabled] | |
842 | ||
843 | Attributes: | |
844 | overwrite mode: 1 | |
845 | subbufers size: 16384 | |
846 | number of subbufers: 4 | |
847 | switch timer interval: 100 | |
848 | read timer interval: 200 | |
849 | output: splice() | |
850 | ||
851 | Events: | |
852 | syscalls (type: syscall) [enabled] | |
853 | ||
854 | - mychannel2: [enabled] | |
855 | ||
856 | Attributes: | |
857 | overwrite mode: 0 | |
858 | subbufers size: 32768 | |
859 | number of subbufers: 2 | |
860 | switch timer interval: 100 | |
861 | read timer interval: 200 | |
862 | output: splice() | |
863 | ||
864 | Events: | |
865 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
866 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
867 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
868 | ||
869 | - channel0: [enabled] | |
870 | ||
871 | Attributes: | |
872 | overwrite mode: 0 | |
873 | subbufers size: 262144 | |
874 | number of subbufers: 4 | |
875 | switch timer interval: 0 | |
876 | read timer interval: 200 | |
877 | output: splice() | |
878 | ||
879 | Events: | |
880 | syscalls (type: syscall) [enabled] | |
881 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
882 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
883 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
884 | ||
885 | </COMMAND_OUTPUT> | |
886 | ||
887 | <COMMAND_INPUT> | |
888 | lttng enable-event myevent1 -k -s mysession --probe 0xc0101280 | |
889 | </COMMAND_INPUT> | |
890 | <COMMAND_RESULT> | |
891 | 0 | |
892 | </COMMAND_RESULT> | |
893 | <COMMAND_OUTPUT> | |
894 | kernel event myevent1 created in channel channel0 | |
895 | </COMMAND_OUTPUT> | |
896 | ||
897 | <COMMAND_INPUT> | |
898 | lttng list mysession | |
899 | </COMMAND_INPUT> | |
900 | <COMMAND_RESULT> | |
901 | 0 | |
902 | </COMMAND_RESULT> | |
903 | <COMMAND_OUTPUT> | |
904 | Tracing session mysession: [inactive] | |
905 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
906 | ||
907 | === Domain: Kernel === | |
908 | ||
909 | Channels: | |
910 | ------------- | |
911 | - mychannel: [enabled] | |
912 | ||
913 | Attributes: | |
914 | overwrite mode: 1 | |
915 | subbufers size: 16384 | |
916 | number of subbufers: 4 | |
917 | switch timer interval: 100 | |
918 | read timer interval: 200 | |
919 | output: splice() | |
920 | ||
921 | Events: | |
922 | syscalls (type: syscall) [enabled] | |
923 | ||
924 | - mychannel2: [enabled] | |
925 | ||
926 | Attributes: | |
927 | overwrite mode: 0 | |
928 | subbufers size: 32768 | |
929 | number of subbufers: 2 | |
930 | switch timer interval: 100 | |
931 | read timer interval: 200 | |
932 | output: splice() | |
933 | ||
934 | Events: | |
935 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
936 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
937 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
938 | ||
939 | - channel0: [enabled] | |
940 | ||
941 | Attributes: | |
942 | overwrite mode: 0 | |
943 | subbufers size: 262144 | |
944 | number of subbufers: 4 | |
945 | switch timer interval: 0 | |
946 | read timer interval: 200 | |
947 | output: splice() | |
948 | ||
949 | Events: | |
950 | myevent1 (type: probe) [enabled] | |
951 | addr: 0xc0101280 | |
952 | syscalls (type: syscall) [enabled] | |
953 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
954 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
955 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
956 | ||
957 | </COMMAND_OUTPUT> | |
958 | ||
959 | <COMMAND_INPUT> | |
960 | lttng enable-event myevent2 -k -s mysession -c channel0 --probe init_post | |
961 | </COMMAND_INPUT> | |
962 | <COMMAND_RESULT> | |
963 | 0 | |
964 | </COMMAND_RESULT> | |
965 | <COMMAND_OUTPUT> | |
966 | kernel event myevent2 created in channel channel0 | |
967 | </COMMAND_OUTPUT> | |
968 | ||
969 | <COMMAND_INPUT> | |
970 | lttng list mysession | |
971 | </COMMAND_INPUT> | |
972 | <COMMAND_RESULT> | |
973 | 0 | |
974 | </COMMAND_RESULT> | |
975 | <COMMAND_OUTPUT> | |
976 | Tracing session mysession: [inactive] | |
977 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
978 | ||
979 | === Domain: Kernel === | |
980 | ||
981 | Channels: | |
982 | ------------- | |
983 | - mychannel: [enabled] | |
984 | ||
985 | Attributes: | |
986 | overwrite mode: 1 | |
987 | subbufers size: 16384 | |
988 | number of subbufers: 4 | |
989 | switch timer interval: 100 | |
990 | read timer interval: 200 | |
991 | output: splice() | |
992 | ||
993 | Events: | |
994 | syscalls (type: syscall) [enabled] | |
995 | ||
996 | - mychannel2: [enabled] | |
997 | ||
998 | Attributes: | |
999 | overwrite mode: 0 | |
1000 | subbufers size: 32768 | |
1001 | number of subbufers: 2 | |
1002 | switch timer interval: 100 | |
1003 | read timer interval: 200 | |
1004 | output: splice() | |
1005 | ||
1006 | Events: | |
1007 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1008 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1009 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1010 | ||
1011 | - channel0: [enabled] | |
1012 | ||
1013 | Attributes: | |
1014 | overwrite mode: 0 | |
1015 | subbufers size: 262144 | |
1016 | number of subbufers: 4 | |
1017 | switch timer interval: 0 | |
1018 | read timer interval: 200 | |
1019 | output: splice() | |
1020 | ||
1021 | Events: | |
1022 | myevent2 (type: probe) [enabled] | |
1023 | offset: 0x0 | |
1024 | symbol: init_post | |
1025 | myevent1 (type: probe) [enabled] | |
1026 | addr: 0xc0101280 | |
1027 | syscalls (type: syscall) [enabled] | |
1028 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1029 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1030 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1031 | ||
1032 | </COMMAND_OUTPUT> | |
1033 | ||
1034 | <COMMAND_INPUT> | |
1035 | lttng enable-event myevent3 -k -s mysession --probe init_post:0x1000 | |
1036 | </COMMAND_INPUT> | |
1037 | <COMMAND_RESULT> | |
1038 | 0 | |
1039 | </COMMAND_RESULT> | |
1040 | <COMMAND_OUTPUT> | |
1041 | kernel event myevent2 created in channel channel0 | |
1042 | </COMMAND_OUTPUT> | |
1043 | ||
1044 | <COMMAND_INPUT> | |
1045 | lttng list mysession | |
1046 | </COMMAND_INPUT> | |
1047 | <COMMAND_RESULT> | |
1048 | 0 | |
1049 | </COMMAND_RESULT> | |
1050 | <COMMAND_OUTPUT> | |
1051 | Tracing session mysession: [inactive] | |
1052 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1053 | ||
1054 | === Domain: Kernel === | |
1055 | ||
1056 | Channels: | |
1057 | ------------- | |
1058 | - mychannel: [enabled] | |
1059 | ||
1060 | Attributes: | |
1061 | overwrite mode: 1 | |
1062 | subbufers size: 16384 | |
1063 | number of subbufers: 4 | |
1064 | switch timer interval: 100 | |
1065 | read timer interval: 200 | |
1066 | output: splice() | |
1067 | ||
1068 | Events: | |
1069 | syscalls (type: syscall) [enabled] | |
1070 | ||
1071 | - mychannel2: [enabled] | |
1072 | ||
1073 | Attributes: | |
1074 | overwrite mode: 0 | |
1075 | subbufers size: 32768 | |
1076 | number of subbufers: 2 | |
1077 | switch timer interval: 100 | |
1078 | read timer interval: 200 | |
1079 | output: splice() | |
1080 | ||
1081 | Events: | |
1082 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1083 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1084 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1085 | ||
1086 | - channel0: [enabled] | |
1087 | ||
1088 | Attributes: | |
1089 | overwrite mode: 0 | |
1090 | subbufers size: 262144 | |
1091 | number of subbufers: 4 | |
1092 | switch timer interval: 0 | |
1093 | read timer interval: 200 | |
1094 | output: splice() | |
1095 | ||
1096 | Events: | |
1097 | myevent3 (type: probe) [enabled] | |
1098 | offset: 0x1000 | |
1099 | symbol: init_post | |
1100 | myevent2 (type: probe) [enabled] | |
1101 | offset: 0x0 | |
1102 | symbol: init_post | |
1103 | myevent1 (type: probe) [enabled] | |
1104 | addr: 0xc0101280 | |
1105 | syscalls (type: syscall) [enabled] | |
1106 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1107 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1108 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1109 | ||
1110 | </COMMAND_OUTPUT> | |
1111 | ||
1112 | <COMMAND_INPUT> | |
1113 | lttng enable-event myevent4 -k -s mysession --function create_dev | |
1114 | </COMMAND_INPUT> | |
1115 | <COMMAND_RESULT> | |
1116 | 0 | |
1117 | </COMMAND_RESULT> | |
1118 | <COMMAND_OUTPUT> | |
1119 | kernel event myevent4 created in channel channel0 | |
1120 | </COMMAND_OUTPUT> | |
1121 | ||
1122 | <COMMAND_INPUT> | |
1123 | lttng list mysession | |
1124 | </COMMAND_INPUT> | |
1125 | <COMMAND_RESULT> | |
1126 | 0 | |
1127 | </COMMAND_RESULT> | |
1128 | <COMMAND_OUTPUT> | |
1129 | Tracing session mysession: [inactive] | |
1130 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1131 | ||
1132 | === Domain: Kernel === | |
1133 | ||
1134 | Channels: | |
1135 | ------------- | |
1136 | - mychannel: [enabled] | |
1137 | ||
1138 | Attributes: | |
1139 | overwrite mode: 1 | |
1140 | subbufers size: 16384 | |
1141 | number of subbufers: 4 | |
1142 | switch timer interval: 100 | |
1143 | read timer interval: 200 | |
1144 | output: splice() | |
1145 | ||
1146 | Events: | |
1147 | syscalls (type: syscall) [enabled] | |
1148 | ||
1149 | - mychannel2: [enabled] | |
1150 | ||
1151 | Attributes: | |
1152 | overwrite mode: 0 | |
1153 | subbufers size: 32768 | |
1154 | number of subbufers: 2 | |
1155 | switch timer interval: 100 | |
1156 | read timer interval: 200 | |
1157 | output: splice() | |
1158 | ||
1159 | Events: | |
1160 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1161 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1162 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1163 | ||
1164 | - channel0: [enabled] | |
1165 | ||
1166 | Attributes: | |
1167 | overwrite mode: 0 | |
1168 | subbufers size: 262144 | |
1169 | number of subbufers: 4 | |
1170 | switch timer interval: 0 | |
1171 | read timer interval: 200 | |
1172 | output: splice() | |
1173 | ||
1174 | Events: | |
1175 | myevent4 (type: probe) [enabled] | |
1176 | offset: 0x0 | |
1177 | symbol: create_dev | |
1178 | myevent3 (type: probe) [enabled] | |
1179 | offset: 0x1000 | |
1180 | symbol: init_post | |
1181 | myevent2 (type: probe) [enabled] | |
1182 | offset: 0x0 | |
1183 | symbol: init_post | |
1184 | myevent1 (type: probe) [enabled] | |
1185 | addr: 0xc0101280 | |
1186 | syscalls (type: syscall) [enabled] | |
1187 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1188 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1189 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1190 | ||
1191 | </COMMAND_OUTPUT> | |
1192 | ||
1193 | <COMMAND_INPUT> | |
1194 | lttng enable-event myevent5 -k -s mysession --function create_dev:0x2000 | |
1195 | </COMMAND_INPUT> | |
1196 | <COMMAND_RESULT> | |
1197 | 0 | |
1198 | </COMMAND_RESULT> | |
1199 | <COMMAND_OUTPUT> | |
1200 | kernel event myevent5 created in channel channel0 | |
1201 | </COMMAND_OUTPUT> | |
1202 | ||
1203 | <COMMAND_INPUT> | |
1204 | lttng list mysession | |
1205 | </COMMAND_INPUT> | |
1206 | <COMMAND_RESULT> | |
1207 | 0 | |
1208 | </COMMAND_RESULT> | |
1209 | <COMMAND_OUTPUT> | |
1210 | Tracing session mysession: [inactive] | |
1211 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1212 | ||
1213 | === Domain: Kernel === | |
1214 | ||
1215 | Channels: | |
1216 | ------------- | |
1217 | - mychannel: [enabled] | |
1218 | ||
1219 | Attributes: | |
1220 | overwrite mode: 1 | |
1221 | subbufers size: 16384 | |
1222 | number of subbufers: 4 | |
1223 | switch timer interval: 100 | |
1224 | read timer interval: 200 | |
1225 | output: splice() | |
1226 | ||
1227 | Events: | |
1228 | syscalls (type: syscall) [enabled] | |
1229 | ||
1230 | - mychannel2: [enabled] | |
1231 | ||
1232 | Attributes: | |
1233 | overwrite mode: 0 | |
1234 | subbufers size: 32768 | |
1235 | number of subbufers: 2 | |
1236 | switch timer interval: 100 | |
1237 | read timer interval: 200 | |
1238 | output: splice() | |
1239 | ||
1240 | Events: | |
1241 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1242 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1243 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1244 | ||
1245 | - channel0: [enabled] | |
1246 | ||
1247 | Attributes: | |
1248 | overwrite mode: 0 | |
1249 | subbufers size: 262144 | |
1250 | number of subbufers: 4 | |
1251 | switch timer interval: 0 | |
1252 | read timer interval: 200 | |
1253 | output: splice() | |
1254 | ||
1255 | Events: | |
1256 | myevent5 (type: probe) [enabled] | |
1257 | offset: 0x2000 | |
1258 | symbol: create_dev | |
1259 | myevent4 (type: probe) [enabled] | |
1260 | offset: 0x0 | |
1261 | symbol: create_dev | |
1262 | myevent3 (type: probe) [enabled] | |
1263 | offset: 0x1000 | |
1264 | symbol: init_post | |
1265 | myevent2 (type: probe) [enabled] | |
1266 | offset: 0x0 | |
1267 | symbol: init_post | |
1268 | myevent1 (type: probe) [enabled] | |
1269 | addr: 0xc0101280 | |
1270 | syscalls (type: syscall) [enabled] | |
1271 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1272 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1273 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1274 | ||
1275 | </COMMAND_OUTPUT> | |
1276 | ||
1277 | <COMMAND_INPUT> | |
1278 | lttng enable-event myevent -k -s mysession -c mychannel --function create_dev:0x2000 | |
1279 | </COMMAND_INPUT> | |
1280 | <COMMAND_RESULT> | |
1281 | 0 | |
1282 | </COMMAND_RESULT> | |
1283 | <COMMAND_OUTPUT> | |
1284 | kernel event myevent created in channel mychannel | |
1285 | </COMMAND_OUTPUT> | |
1286 | ||
1287 | <COMMAND_INPUT> | |
1288 | lttng list mysession | |
1289 | </COMMAND_INPUT> | |
1290 | <COMMAND_RESULT> | |
1291 | 0 | |
1292 | </COMMAND_RESULT> | |
1293 | <COMMAND_OUTPUT> | |
1294 | Tracing session mysession: [inactive] | |
1295 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1296 | ||
1297 | === Domain: Kernel === | |
1298 | ||
1299 | Channels: | |
1300 | ------------- | |
1301 | - mychannel: [enabled] | |
1302 | ||
1303 | Attributes: | |
1304 | overwrite mode: 1 | |
1305 | subbufers size: 16384 | |
1306 | number of subbufers: 4 | |
1307 | switch timer interval: 100 | |
1308 | read timer interval: 200 | |
1309 | output: splice() | |
1310 | ||
1311 | Events: | |
1312 | myevent (type: probe) [enabled] | |
1313 | offset: 0x2000 | |
1314 | symbol: create_dev | |
1315 | syscalls (type: syscall) [enabled] | |
1316 | ||
1317 | - mychannel2: [enabled] | |
1318 | ||
1319 | Attributes: | |
1320 | overwrite mode: 0 | |
1321 | subbufers size: 32768 | |
1322 | number of subbufers: 2 | |
1323 | switch timer interval: 100 | |
1324 | read timer interval: 200 | |
1325 | output: splice() | |
1326 | ||
1327 | Events: | |
1328 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1329 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1330 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1331 | ||
1332 | - channel0: [enabled] | |
1333 | ||
1334 | Attributes: | |
1335 | overwrite mode: 0 | |
1336 | subbufers size: 262144 | |
1337 | number of subbufers: 4 | |
1338 | switch timer interval: 0 | |
1339 | read timer interval: 200 | |
1340 | output: splice() | |
1341 | ||
1342 | Events: | |
1343 | myevent5 (type: probe) [enabled] | |
1344 | offset: 0x2000 | |
1345 | symbol: create_dev | |
1346 | myevent4 (type: probe) [enabled] | |
1347 | offset: 0x0 | |
1348 | symbol: create_dev | |
1349 | myevent3 (type: probe) [enabled] | |
1350 | offset: 0x1000 | |
1351 | symbol: init_post | |
1352 | myevent2 (type: probe) [enabled] | |
1353 | offset: 0x0 | |
1354 | symbol: init_post | |
1355 | myevent1 (type: probe) [enabled] | |
1356 | addr: 0xc0101280 | |
1357 | syscalls (type: syscall) [enabled] | |
1358 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1359 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1360 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1361 | ||
1362 | </COMMAND_OUTPUT> | |
1363 | ||
1364 | <COMMAND_INPUT> | |
1365 | lttng list | |
1366 | </COMMAND_INPUT> | |
1367 | <COMMAND_RESULT> | |
1368 | 0 | |
1369 | </COMMAND_RESULT> | |
1370 | <COMMAND_OUTPUT> | |
1371 | Available tracing sessions: | |
1372 | 1) mysession (/home/eedbhu/lttng-traces/mysession-20120321-115617) [inactive] | |
1373 | ||
1374 | Use lttng list <session_name> for more details | |
1375 | </COMMAND_OUTPUT> | |
1376 | ||
1377 | <COMMAND_INPUT> | |
1378 | lttng list -k | |
1379 | </COMMAND_INPUT> | |
1380 | <COMMAND_RESULT> | |
1381 | 0 | |
1382 | </COMMAND_RESULT> | |
1383 | <COMMAND_OUTPUT> | |
1384 | Kernel events | |
1385 | ------------- | |
1386 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
1387 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
1388 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) | |
1389 | ||
1390 | </COMMAND_OUTPUT> | |
1391 | ||
1392 | <COMMAND_INPUT> | |
1393 | lttng list -u | |
1394 | </COMMAND_INPUT> | |
1395 | <COMMAND_RESULT> | |
1396 | 0 | |
1397 | </COMMAND_RESULT> | |
1398 | <COMMAND_OUTPUT> | |
1399 | UST events: | |
1400 | ------------- | |
1401 | ||
1402 | PID: 9379 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello | |
1403 | ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint) | |
1404 | ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) | |
1405 | ||
1406 | PID: 4852 - Name: /home/user/git/lttng-ust/tests/hello.cxx/.libs/lt-hello | |
1407 | ust_tests_hello:tptest_sighandler (loglevel: TRACE_WARNING (4)) (type: tracepoint) | |
1408 | ust_tests_hello:tptest (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) | |
1409 | ||
1410 | </COMMAND_OUTPUT> | |
1411 | ||
1412 | <COMMAND_INPUT> | |
1413 | lttng list mysession | |
1414 | </COMMAND_INPUT> | |
1415 | <COMMAND_RESULT> | |
1416 | 0 | |
1417 | </COMMAND_RESULT> | |
1418 | <COMMAND_OUTPUT> | |
1419 | Tracing session mysession: [inactive] | |
1420 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1421 | ||
1422 | === Domain: Kernel === | |
1423 | ||
1424 | Channels: | |
1425 | ------------- | |
1426 | - mychannel: [enabled] | |
1427 | ||
1428 | Attributes: | |
1429 | overwrite mode: 1 | |
1430 | subbufers size: 16384 | |
1431 | number of subbufers: 4 | |
1432 | switch timer interval: 100 | |
1433 | read timer interval: 200 | |
1434 | output: splice() | |
1435 | ||
1436 | Events: | |
1437 | myevent (type: probe) [enabled] | |
1438 | offset: 0x2000 | |
1439 | symbol: create_dev | |
1440 | syscalls (type: syscall) [enabled] | |
1441 | ||
1442 | - mychannel2: [enabled] | |
1443 | ||
1444 | Attributes: | |
1445 | overwrite mode: 0 | |
1446 | subbufers size: 32768 | |
1447 | number of subbufers: 2 | |
1448 | switch timer interval: 100 | |
1449 | read timer interval: 200 | |
1450 | output: splice() | |
1451 | ||
1452 | Events: | |
1453 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1454 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1455 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1456 | ||
1457 | - channel0: [enabled] | |
1458 | ||
1459 | Attributes: | |
1460 | overwrite mode: 0 | |
1461 | subbufers size: 262144 | |
1462 | number of subbufers: 4 | |
1463 | switch timer interval: 0 | |
1464 | read timer interval: 200 | |
1465 | output: splice() | |
1466 | ||
1467 | Events: | |
1468 | myevent5 (type: probe) [enabled] | |
1469 | offset: 0x2000 | |
1470 | symbol: create_dev | |
1471 | myevent4 (type: probe) [enabled] | |
1472 | offset: 0x0 | |
1473 | symbol: create_dev | |
1474 | myevent3 (type: probe) [enabled] | |
1475 | offset: 0x1000 | |
1476 | symbol: init_post | |
1477 | myevent2 (type: probe) [enabled] | |
1478 | offset: 0x0 | |
1479 | symbol: init_post | |
1480 | myevent1 (type: probe) [enabled] | |
1481 | addr: 0xc0101280 | |
1482 | syscalls (type: syscall) [enabled] | |
1483 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1484 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1485 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1486 | ||
1487 | </COMMAND_OUTPUT> | |
1488 | ||
4ea599a5 BH |
1489 | <COMMAND_INPUT> |
1490 | lttng add-context -h | |
1491 | </COMMAND_INPUT> | |
1492 | <COMMAND_RESULT> | |
1493 | 0 | |
1494 | </COMMAND_RESULT> | |
1495 | <COMMAND_OUTPUT> | |
1496 | usage: lttng add-context -t TYPE | |
1497 | ||
1498 | If no channel and no event is given (-c/-e), the context | |
1499 | will be added to all events and all channels. | |
1500 | Otherwise the context will be added only to the channel (-c) | |
1501 | and/or event (-e) indicated. | |
1502 | Exactly one domain (-k/--kernel or -u/--userspace) must be specified. | |
1503 | ||
1504 | Options: | |
1505 | -h, --help Show this help | |
1506 | --list-options Simple listing of options | |
1507 | -s, --session NAME Apply to session name | |
1508 | -c, --channel NAME Apply to channel | |
1509 | -e, --event NAME Apply to event | |
1510 | -k, --kernel Apply to the kernel tracer | |
1511 | -u, --userspace Apply to the user-space tracer | |
1512 | -t, --type TYPE Context type. You can repeat that option on | |
1513 | the command line to specify multiple contexts at once. | |
1514 | (--kernel preempts --userspace) | |
1515 | TYPE can be one of the strings below: | |
1516 | pid, procname, prio, nice, vpid, tid, pthread_id, | |
1517 | vtid, ppid, vppid, perf:cpu-cycles, perf:cycles, | |
1518 | perf:stalled-cycles-frontend, | |
1519 | perf:idle-cycles-frontend, | |
1520 | perf:stalled-cycles-backend, | |
1521 | perf:idle-cycles-backend, perf:instructions, | |
1522 | perf:cache-references, perf:cache-misses, | |
1523 | perf:branch-instructions, perf:branches, | |
1524 | perf:branch-misses, perf:bus-cycles, | |
1525 | perf:L1-dcache-loads, perf:L1-dcache-load-misses, | |
1526 | perf:L1-dcache-stores, | |
1527 | perf:L1-dcache-store-misses, | |
1528 | perf:L1-dcache-prefetches, | |
1529 | perf:L1-dcache-prefetch-misses, | |
1530 | perf:L1-icache-loads, perf:L1-icache-load-misses, | |
1531 | perf:L1-icache-stores, | |
1532 | perf:L1-icache-store-misses, | |
1533 | perf:L1-icache-prefetches, | |
1534 | perf:L1-icache-prefetch-misses, perf:LLC-loads, | |
1535 | perf:LLC-load-misses, perf:LLC-stores, | |
1536 | perf:LLC-store-misses, perf:LLC-prefetches, | |
1537 | perf:LLC-prefetch-misses, perf:dTLB-loads, | |
1538 | perf:dTLB-load-misses, perf:dTLB-stores, | |
1539 | perf:dTLB-store-misses, perf:dTLB-prefetches, | |
1540 | perf:dTLB-prefetch-misses, perf:iTLB-loads, | |
1541 | perf:iTLB-load-misses, perf:branch-loads, | |
1542 | perf:branch-load-misses, perf:cpu-clock, | |
1543 | perf:task-clock, perf:page-fault, perf:faults, | |
1544 | perf:major-faults, perf:minor-faults, | |
1545 | perf:context-switches, perf:cs, | |
1546 | perf:cpu-migrations, perf:migrations, | |
1547 | perf:alignment-faults, perf:emulation-faults | |
1548 | Example: | |
1549 | This command will add the context information 'prio' and two perf | |
1550 | counters (hardware branch misses and cache misses), to all events | |
1551 | in the trace data output: | |
1552 | # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1553 | ||
1554 | </COMMAND_OUTPUT> | |
1555 | ||
1556 | <COMMAND_INPUT> | |
1557 | lttng add-context -s mysession -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1558 | </COMMAND_INPUT> | |
1559 | <COMMAND_RESULT> | |
1560 | 0 | |
1561 | </COMMAND_RESULT> | |
1562 | <COMMAND_OUTPUT> | |
1563 | kernel context perf:cache-misses added to all channels | |
1564 | kernel context perf:branch-misses added to all channels | |
1565 | kernel context prio added to all channels | |
1566 | </COMMAND_OUTPUT> | |
1567 | ||
1568 | <COMMAND_INPUT> | |
1569 | lttng list mysession | |
1570 | </COMMAND_INPUT> | |
1571 | <COMMAND_RESULT> | |
1572 | 0 | |
1573 | </COMMAND_RESULT> | |
1574 | <COMMAND_OUTPUT> | |
1575 | Tracing session mysession: [inactive] | |
1576 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1577 | ||
1578 | === Domain: Kernel === | |
1579 | ||
1580 | Channels: | |
1581 | ------------- | |
1582 | - mychannel: [enabled] | |
1583 | ||
1584 | Attributes: | |
1585 | overwrite mode: 1 | |
1586 | subbufers size: 16384 | |
1587 | number of subbufers: 4 | |
1588 | switch timer interval: 100 | |
1589 | read timer interval: 200 | |
1590 | output: splice() | |
1591 | ||
1592 | Events: | |
1593 | myevent (type: probe) [enabled] | |
1594 | offset: 0x2000 | |
1595 | symbol: create_dev | |
1596 | syscalls (type: syscall) [enabled] | |
1597 | ||
1598 | - mychannel2: [enabled] | |
1599 | ||
1600 | Attributes: | |
1601 | overwrite mode: 0 | |
1602 | subbufers size: 32768 | |
1603 | number of subbufers: 2 | |
1604 | switch timer interval: 100 | |
1605 | read timer interval: 200 | |
1606 | output: splice() | |
1607 | ||
1608 | Events: | |
1609 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1610 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1611 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1612 | ||
1613 | - channel0: [enabled] | |
1614 | ||
1615 | Attributes: | |
1616 | overwrite mode: 0 | |
1617 | subbufers size: 262144 | |
1618 | number of subbufers: 4 | |
1619 | switch timer interval: 0 | |
1620 | read timer interval: 200 | |
1621 | output: splice() | |
1622 | ||
1623 | Events: | |
1624 | myevent5 (type: probe) [enabled] | |
1625 | offset: 0x2000 | |
1626 | symbol: create_dev | |
1627 | myevent4 (type: probe) [enabled] | |
1628 | offset: 0x0 | |
1629 | symbol: create_dev | |
1630 | myevent3 (type: probe) [enabled] | |
1631 | offset: 0x1000 | |
1632 | symbol: init_post | |
1633 | myevent2 (type: probe) [enabled] | |
1634 | offset: 0x0 | |
1635 | symbol: init_post | |
1636 | myevent1 (type: probe) [enabled] | |
1637 | addr: 0xc0101280 | |
1638 | syscalls (type: syscall) [enabled] | |
1639 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1640 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1641 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1642 | ||
1643 | </COMMAND_OUTPUT> | |
1644 | ||
1645 | <COMMAND_INPUT> | |
1646 | lttng add-context -h | |
1647 | </COMMAND_INPUT> | |
1648 | <COMMAND_RESULT> | |
1649 | 0 | |
1650 | </COMMAND_RESULT> | |
1651 | <COMMAND_OUTPUT> | |
1652 | usage: lttng add-context -t TYPE | |
1653 | ||
1654 | If no channel and no event is given (-c/-e), the context | |
1655 | will be added to all events and all channels. | |
1656 | Otherwise the context will be added only to the channel (-c) | |
1657 | and/or event (-e) indicated. | |
1658 | Exactly one domain (-k/--kernel or -u/--userspace) must be specified. | |
1659 | ||
1660 | Options: | |
1661 | -h, --help Show this help | |
1662 | --list-options Simple listing of options | |
1663 | -s, --session NAME Apply to session name | |
1664 | -c, --channel NAME Apply to channel | |
1665 | -e, --event NAME Apply to event | |
1666 | -k, --kernel Apply to the kernel tracer | |
1667 | -u, --userspace Apply to the user-space tracer | |
1668 | -t, --type TYPE Context type. You can repeat that option on | |
1669 | the command line to specify multiple contexts at once. | |
1670 | (--kernel preempts --userspace) | |
1671 | TYPE can be one of the strings below: | |
1672 | pid, procname, prio, nice, vpid, tid, pthread_id, | |
1673 | vtid, ppid, vppid, perf:cpu-cycles, perf:cycles, | |
1674 | perf:stalled-cycles-frontend, | |
1675 | perf:idle-cycles-frontend, | |
1676 | perf:stalled-cycles-backend, | |
1677 | perf:idle-cycles-backend, perf:instructions, | |
1678 | perf:cache-references, perf:cache-misses, | |
1679 | perf:branch-instructions, perf:branches, | |
1680 | perf:branch-misses, perf:bus-cycles, | |
1681 | perf:L1-dcache-loads, perf:L1-dcache-load-misses, | |
1682 | perf:L1-dcache-stores, | |
1683 | perf:L1-dcache-store-misses, | |
1684 | perf:L1-dcache-prefetches, | |
1685 | perf:L1-dcache-prefetch-misses, | |
1686 | perf:L1-icache-loads, perf:L1-icache-load-misses, | |
1687 | perf:L1-icache-stores, | |
1688 | perf:L1-icache-store-misses, | |
1689 | perf:L1-icache-prefetches, | |
1690 | perf:L1-icache-prefetch-misses, perf:LLC-loads, | |
1691 | perf:LLC-load-misses, perf:LLC-stores, | |
1692 | perf:LLC-store-misses, perf:LLC-prefetches, | |
1693 | perf:LLC-prefetch-misses, perf:dTLB-loads, | |
1694 | perf:dTLB-load-misses, perf:dTLB-stores, | |
1695 | perf:dTLB-store-misses, perf:dTLB-prefetches, | |
1696 | perf:dTLB-prefetch-misses, perf:iTLB-loads, | |
1697 | perf:iTLB-load-misses, perf:branch-loads, | |
1698 | perf:branch-load-misses, perf:cpu-clock, | |
1699 | perf:task-clock, perf:page-fault, perf:faults, | |
1700 | perf:major-faults, perf:minor-faults, | |
1701 | perf:context-switches, perf:cs, | |
1702 | perf:cpu-migrations, perf:migrations, | |
1703 | perf:alignment-faults, perf:emulation-faults | |
1704 | Example: | |
1705 | This command will add the context information 'prio' and two perf | |
1706 | counters (hardware branch misses and cache misses), to all events | |
1707 | in the trace data output: | |
1708 | # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1709 | ||
1710 | </COMMAND_OUTPUT> | |
1711 | ||
1712 | <COMMAND_INPUT> | |
1713 | lttng add-context -s mysession -c mychannel -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1714 | </COMMAND_INPUT> | |
1715 | <COMMAND_RESULT> | |
1716 | 0 | |
1717 | </COMMAND_RESULT> | |
1718 | <COMMAND_OUTPUT> | |
1719 | kernel context perf:cache-misses added to channel mychannel | |
1720 | kernel context perf:branch-misses added to channel mychannel | |
1721 | kernel context prio added to channel mychannel | |
1722 | </COMMAND_OUTPUT> | |
1723 | ||
1724 | <COMMAND_INPUT> | |
1725 | lttng list mysession | |
1726 | </COMMAND_INPUT> | |
1727 | <COMMAND_RESULT> | |
1728 | 0 | |
1729 | </COMMAND_RESULT> | |
1730 | <COMMAND_OUTPUT> | |
1731 | Tracing session mysession: [inactive] | |
1732 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1733 | ||
1734 | === Domain: Kernel === | |
1735 | ||
1736 | Channels: | |
1737 | ------------- | |
1738 | - mychannel: [enabled] | |
1739 | ||
1740 | Attributes: | |
1741 | overwrite mode: 1 | |
1742 | subbufers size: 16384 | |
1743 | number of subbufers: 4 | |
1744 | switch timer interval: 100 | |
1745 | read timer interval: 200 | |
1746 | output: splice() | |
1747 | ||
1748 | Events: | |
1749 | myevent (type: probe) [enabled] | |
1750 | offset: 0x2000 | |
1751 | symbol: create_dev | |
1752 | syscalls (type: syscall) [enabled] | |
1753 | ||
1754 | - mychannel2: [enabled] | |
1755 | ||
1756 | Attributes: | |
1757 | overwrite mode: 0 | |
1758 | subbufers size: 32768 | |
1759 | number of subbufers: 2 | |
1760 | switch timer interval: 100 | |
1761 | read timer interval: 200 | |
1762 | output: splice() | |
1763 | ||
1764 | Events: | |
1765 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1766 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1767 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1768 | ||
1769 | - channel0: [enabled] | |
1770 | ||
1771 | Attributes: | |
1772 | overwrite mode: 0 | |
1773 | subbufers size: 262144 | |
1774 | number of subbufers: 4 | |
1775 | switch timer interval: 0 | |
1776 | read timer interval: 200 | |
1777 | output: splice() | |
1778 | ||
1779 | Events: | |
1780 | myevent5 (type: probe) [enabled] | |
1781 | offset: 0x2000 | |
1782 | symbol: create_dev | |
1783 | myevent4 (type: probe) [enabled] | |
1784 | offset: 0x0 | |
1785 | symbol: create_dev | |
1786 | myevent3 (type: probe) [enabled] | |
1787 | offset: 0x1000 | |
1788 | symbol: init_post | |
1789 | myevent2 (type: probe) [enabled] | |
1790 | offset: 0x0 | |
1791 | symbol: init_post | |
1792 | myevent1 (type: probe) [enabled] | |
1793 | addr: 0xc0101280 | |
1794 | syscalls (type: syscall) [enabled] | |
1795 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1796 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1797 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1798 | ||
1799 | </COMMAND_OUTPUT> | |
1800 | ||
1801 | <COMMAND_INPUT> | |
1802 | lttng add-context -h | |
1803 | </COMMAND_INPUT> | |
1804 | <COMMAND_RESULT> | |
1805 | 0 | |
1806 | </COMMAND_RESULT> | |
1807 | <COMMAND_OUTPUT> | |
1808 | usage: lttng add-context -t TYPE | |
1809 | ||
1810 | If no channel and no event is given (-c/-e), the context | |
1811 | will be added to all events and all channels. | |
1812 | Otherwise the context will be added only to the channel (-c) | |
1813 | and/or event (-e) indicated. | |
1814 | Exactly one domain (-k/--kernel or -u/--userspace) must be specified. | |
1815 | ||
1816 | Options: | |
1817 | -h, --help Show this help | |
1818 | --list-options Simple listing of options | |
1819 | -s, --session NAME Apply to session name | |
1820 | -c, --channel NAME Apply to channel | |
1821 | -e, --event NAME Apply to event | |
1822 | -k, --kernel Apply to the kernel tracer | |
1823 | -u, --userspace Apply to the user-space tracer | |
1824 | -t, --type TYPE Context type. You can repeat that option on | |
1825 | the command line to specify multiple contexts at once. | |
1826 | (--kernel preempts --userspace) | |
1827 | TYPE can be one of the strings below: | |
1828 | pid, procname, prio, nice, vpid, tid, pthread_id, | |
1829 | vtid, ppid, vppid, perf:cpu-cycles, perf:cycles, | |
1830 | perf:stalled-cycles-frontend, | |
1831 | perf:idle-cycles-frontend, | |
1832 | perf:stalled-cycles-backend, | |
1833 | perf:idle-cycles-backend, perf:instructions, | |
1834 | perf:cache-references, perf:cache-misses, | |
1835 | perf:branch-instructions, perf:branches, | |
1836 | perf:branch-misses, perf:bus-cycles, | |
1837 | perf:L1-dcache-loads, perf:L1-dcache-load-misses, | |
1838 | perf:L1-dcache-stores, | |
1839 | perf:L1-dcache-store-misses, | |
1840 | perf:L1-dcache-prefetches, | |
1841 | perf:L1-dcache-prefetch-misses, | |
1842 | perf:L1-icache-loads, perf:L1-icache-load-misses, | |
1843 | perf:L1-icache-stores, | |
1844 | perf:L1-icache-store-misses, | |
1845 | perf:L1-icache-prefetches, | |
1846 | perf:L1-icache-prefetch-misses, perf:LLC-loads, | |
1847 | perf:LLC-load-misses, perf:LLC-stores, | |
1848 | perf:LLC-store-misses, perf:LLC-prefetches, | |
1849 | perf:LLC-prefetch-misses, perf:dTLB-loads, | |
1850 | perf:dTLB-load-misses, perf:dTLB-stores, | |
1851 | perf:dTLB-store-misses, perf:dTLB-prefetches, | |
1852 | perf:dTLB-prefetch-misses, perf:iTLB-loads, | |
1853 | perf:iTLB-load-misses, perf:branch-loads, | |
1854 | perf:branch-load-misses, perf:cpu-clock, | |
1855 | perf:task-clock, perf:page-fault, perf:faults, | |
1856 | perf:major-faults, perf:minor-faults, | |
1857 | perf:context-switches, perf:cs, | |
1858 | perf:cpu-migrations, perf:migrations, | |
1859 | perf:alignment-faults, perf:emulation-faults | |
1860 | Example: | |
1861 | This command will add the context information 'prio' and two perf | |
1862 | counters (hardware branch misses and cache misses), to all events | |
1863 | in the trace data output: | |
1864 | # lttng add-context -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1865 | ||
1866 | </COMMAND_OUTPUT> | |
1867 | ||
1868 | <COMMAND_INPUT> | |
1869 | lttng add-context -s mysession -c channel0 -e sched_kthread_stop_ret -k -t prio -t perf:branch-misses -t perf:cache-misses | |
1870 | </COMMAND_INPUT> | |
1871 | <COMMAND_RESULT> | |
1872 | 0 | |
1873 | </COMMAND_RESULT> | |
1874 | <COMMAND_OUTPUT> | |
1875 | kernel context perf:cache-misses added to event sched_kthread_stop_ret channel mychannel | |
1876 | kernel context perf:branch-misses added to event sched_kthread_stop_ret channel mychannel | |
1877 | kernel context prio added to channel event sched_kthread_stop_ret mychannel | |
1878 | </COMMAND_OUTPUT> | |
1879 | ||
1880 | <COMMAND_INPUT> | |
1881 | lttng list mysession | |
1882 | </COMMAND_INPUT> | |
1883 | <COMMAND_RESULT> | |
1884 | 0 | |
1885 | </COMMAND_RESULT> | |
1886 | <COMMAND_OUTPUT> | |
1887 | Tracing session mysession: [inactive] | |
1888 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1889 | ||
1890 | === Domain: Kernel === | |
1891 | ||
1892 | Channels: | |
1893 | ------------- | |
1894 | - mychannel: [enabled] | |
1895 | ||
1896 | Attributes: | |
1897 | overwrite mode: 1 | |
1898 | subbufers size: 16384 | |
1899 | number of subbufers: 4 | |
1900 | switch timer interval: 100 | |
1901 | read timer interval: 200 | |
1902 | output: splice() | |
1903 | ||
1904 | Events: | |
1905 | myevent (type: probe) [enabled] | |
1906 | offset: 0x2000 | |
1907 | symbol: create_dev | |
1908 | syscalls (type: syscall) [enabled] | |
1909 | ||
1910 | - mychannel2: [enabled] | |
1911 | ||
1912 | Attributes: | |
1913 | overwrite mode: 0 | |
1914 | subbufers size: 32768 | |
1915 | number of subbufers: 2 | |
1916 | switch timer interval: 100 | |
1917 | read timer interval: 200 | |
1918 | output: splice() | |
1919 | ||
1920 | Events: | |
1921 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1922 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1923 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1924 | ||
1925 | - channel0: [enabled] | |
1926 | ||
1927 | Attributes: | |
1928 | overwrite mode: 0 | |
1929 | subbufers size: 262144 | |
1930 | number of subbufers: 4 | |
1931 | switch timer interval: 0 | |
1932 | read timer interval: 200 | |
1933 | output: splice() | |
1934 | ||
1935 | Events: | |
1936 | myevent5 (type: probe) [enabled] | |
1937 | offset: 0x2000 | |
1938 | symbol: create_dev | |
1939 | myevent4 (type: probe) [enabled] | |
1940 | offset: 0x0 | |
1941 | symbol: create_dev | |
1942 | myevent3 (type: probe) [enabled] | |
1943 | offset: 0x1000 | |
1944 | symbol: init_post | |
1945 | myevent2 (type: probe) [enabled] | |
1946 | offset: 0x0 | |
1947 | symbol: init_post | |
1948 | myevent1 (type: probe) [enabled] | |
1949 | addr: 0xc0101280 | |
1950 | syscalls (type: syscall) [enabled] | |
1951 | sched_kthread_stop_ret (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1952 | sched_kthread_stop (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1953 | sched_wakeup_new (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled] | |
1954 | ||
1955 | </COMMAND_OUTPUT> | |
1956 | ||
1957 | <COMMAND_INPUT> | |
1958 | lttng calibrate -k --function | |
1959 | </COMMAND_INPUT> | |
1960 | <COMMAND_RESULT> | |
1961 | 0 | |
1962 | </COMMAND_RESULT> | |
1963 | <COMMAND_OUTPUT> | |
1964 | Kernel calibration done | |
1965 | </COMMAND_OUTPUT> | |
1966 | ||
a26d90be BH |
1967 | </SCENARIO> |
1968 | ||
1969 | <SCENARIO> | |
1970 | Scenario4 | |
1971 | ||
1972 | <COMMAND_INPUT> | |
1973 | lttng enable-channel mychannel -u -s mysession --overwrite --subbuf-size 16384 --num-subbuf 4 --switch-timer 100 --read-timer 200 | |
1974 | </COMMAND_INPUT> | |
1975 | <COMMAND_RESULT> | |
1976 | 0 | |
1977 | </COMMAND_RESULT> | |
1978 | <COMMAND_OUTPUT> | |
1979 | UST channel mychannel enabled for session mysession | |
1980 | </COMMAND_OUTPUT> | |
1981 | ||
1982 | <COMMAND_INPUT> | |
1983 | lttng list mysession | |
1984 | </COMMAND_INPUT> | |
1985 | <COMMAND_RESULT> | |
1986 | 0 | |
1987 | </COMMAND_RESULT> | |
1988 | <COMMAND_OUTPUT> | |
1989 | Tracing session mysession: [inactive] | |
1990 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
1991 | ||
1992 | === Domain: UST global === | |
1993 | ||
1994 | Channels: | |
1995 | ------------- | |
1996 | - mychannel: [enabled] | |
1997 | ||
1998 | Attributes: | |
1999 | overwrite mode: 1 | |
2000 | subbufers size: 16384 | |
2001 | number of subbufers: 4 | |
2002 | switch timer interval: 100 | |
2003 | read timer interval: 200 | |
2004 | output: mmap() | |
2005 | ||
2006 | Events: | |
2007 | None | |
2008 | ||
2009 | </COMMAND_OUTPUT> | |
2010 | ||
2011 | <COMMAND_INPUT> | |
2012 | lttng enable-channel mychannel2 -u -s mysession --subbuf-size 32768 --num-subbuf 2 --switch-timer 100 --read-timer 200 | |
2013 | </COMMAND_INPUT> | |
2014 | <COMMAND_RESULT> | |
2015 | 0 | |
2016 | </COMMAND_RESULT> | |
2017 | <COMMAND_OUTPUT> | |
2018 | UST channel mychannel2 enabled for session mysession | |
2019 | </COMMAND_OUTPUT> | |
2020 | ||
2021 | <COMMAND_INPUT> | |
2022 | lttng list mysession | |
2023 | </COMMAND_INPUT> | |
2024 | <COMMAND_RESULT> | |
2025 | 0 | |
2026 | </COMMAND_RESULT> | |
2027 | <COMMAND_OUTPUT> | |
2028 | Tracing session mysession: [inactive] | |
2029 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2030 | ||
2031 | === Domain: UST global === | |
2032 | ||
2033 | Channels: | |
2034 | ------------- | |
2035 | - mychannel: [enabled] | |
2036 | ||
2037 | Attributes: | |
2038 | overwrite mode: 1 | |
2039 | subbufers size: 16384 | |
2040 | number of subbufers: 4 | |
2041 | switch timer interval: 100 | |
2042 | read timer interval: 200 | |
2043 | output: mmap() | |
2044 | ||
2045 | Events: | |
2046 | None | |
2047 | ||
2048 | - mychannel2: [enabled] | |
2049 | ||
2050 | Attributes: | |
2051 | overwrite mode: 0 | |
2052 | subbufers size: 32768 | |
2053 | number of subbufers: 2 | |
2054 | switch timer interval: 100 | |
2055 | read timer interval: 200 | |
2056 | output: mmap() | |
2057 | ||
2058 | Events: | |
2059 | None | |
2060 | ||
2061 | </COMMAND_OUTPUT> | |
2062 | ||
2063 | <COMMAND_INPUT> | |
2064 | lttng enable-event ust_tests_hello:tptest_sighandler -u -s mysession --tracepoint | |
2065 | </COMMAND_INPUT> | |
2066 | <COMMAND_RESULT> | |
2067 | 0 | |
2068 | </COMMAND_RESULT> | |
2069 | <COMMAND_OUTPUT> | |
2070 | UST event ust_tests_hello:tptest_sighandler created in channel channel0 | |
2071 | </COMMAND_OUTPUT> | |
2072 | ||
2073 | <COMMAND_INPUT> | |
2074 | lttng list mysession | |
2075 | </COMMAND_INPUT> | |
2076 | <COMMAND_RESULT> | |
2077 | 0 | |
2078 | </COMMAND_RESULT> | |
2079 | <COMMAND_OUTPUT> | |
2080 | Tracing session mysession: [inactive] | |
2081 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2082 | ||
2083 | === Domain: UST global === | |
2084 | ||
2085 | Channels: | |
2086 | ------------- | |
2087 | - mychannel: [enabled] | |
2088 | ||
2089 | Attributes: | |
2090 | overwrite mode: 1 | |
2091 | subbufers size: 16384 | |
2092 | number of subbufers: 4 | |
2093 | switch timer interval: 100 | |
2094 | read timer interval: 200 | |
2095 | output: mmap() | |
2096 | ||
2097 | Events: | |
2098 | None | |
2099 | ||
2100 | - mychannel2: [enabled] | |
2101 | ||
2102 | Attributes: | |
2103 | overwrite mode: 0 | |
2104 | subbufers size: 32768 | |
2105 | number of subbufers: 2 | |
2106 | switch timer interval: 100 | |
2107 | read timer interval: 200 | |
2108 | output: mmap() | |
2109 | ||
2110 | Events: | |
2111 | None | |
2112 | ||
2113 | - channel0: [enabled] | |
2114 | ||
2115 | Attributes: | |
2116 | overwrite mode: 0 | |
2117 | subbufers size: 262144 | |
2118 | number of subbufers: 4 | |
2119 | switch timer interval: 0 | |
2120 | read timer interval: 200 | |
2121 | output: mmap() | |
2122 | ||
2123 | Events: | |
2124 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2125 | ||
2126 | </COMMAND_OUTPUT> | |
2127 | ||
2128 | <COMMAND_INPUT> | |
2129 | lttng enable-event ust_tests_hello:tptest -u -s mysession --tracepoint | |
2130 | </COMMAND_INPUT> | |
2131 | <COMMAND_RESULT> | |
2132 | 0 | |
2133 | </COMMAND_RESULT> | |
2134 | <COMMAND_OUTPUT> | |
2135 | UST event ust_tests_hello:tptest created in channel channel0 | |
2136 | </COMMAND_OUTPUT> | |
2137 | ||
2138 | <COMMAND_INPUT> | |
2139 | lttng list mysession | |
2140 | </COMMAND_INPUT> | |
2141 | <COMMAND_RESULT> | |
2142 | 0 | |
2143 | </COMMAND_RESULT> | |
2144 | <COMMAND_OUTPUT> | |
2145 | Tracing session mysession: [inactive] | |
2146 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2147 | ||
2148 | === Domain: UST global === | |
2149 | ||
2150 | Channels: | |
2151 | ------------- | |
2152 | - mychannel: [enabled] | |
2153 | ||
2154 | Attributes: | |
2155 | overwrite mode: 1 | |
2156 | subbufers size: 16384 | |
2157 | number of subbufers: 4 | |
2158 | switch timer interval: 100 | |
2159 | read timer interval: 200 | |
2160 | output: mmap() | |
2161 | ||
2162 | Events: | |
2163 | None | |
2164 | ||
2165 | - mychannel2: [enabled] | |
2166 | ||
2167 | Attributes: | |
2168 | overwrite mode: 0 | |
2169 | subbufers size: 32768 | |
2170 | number of subbufers: 2 | |
2171 | switch timer interval: 100 | |
2172 | read timer interval: 200 | |
2173 | output: mmap() | |
2174 | ||
2175 | Events: | |
2176 | None | |
2177 | ||
2178 | - channel0: [enabled] | |
2179 | ||
2180 | Attributes: | |
2181 | overwrite mode: 0 | |
2182 | subbufers size: 262144 | |
2183 | number of subbufers: 4 | |
2184 | switch timer interval: 0 | |
2185 | read timer interval: 200 | |
2186 | output: mmap() | |
2187 | ||
2188 | Events: | |
2189 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2190 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2191 | ||
2192 | </COMMAND_OUTPUT> | |
2193 | ||
2194 | <COMMAND_INPUT> | |
2195 | lttng enable-event -a -u -s mysession -c mychannel2 --tracepoint | |
2196 | </COMMAND_INPUT> | |
2197 | <COMMAND_RESULT> | |
2198 | 0 | |
2199 | </COMMAND_RESULT> | |
2200 | <COMMAND_OUTPUT> | |
2201 | All UST events created in channel channel0 | |
2202 | </COMMAND_OUTPUT> | |
2203 | ||
2204 | <COMMAND_INPUT> | |
2205 | lttng list mysession | |
2206 | </COMMAND_INPUT> | |
2207 | <COMMAND_RESULT> | |
2208 | 0 | |
2209 | </COMMAND_RESULT> | |
2210 | <COMMAND_OUTPUT> | |
2211 | Tracing session mysession: [inactive] | |
2212 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2213 | ||
2214 | === Domain: UST global === | |
2215 | ||
2216 | Channels: | |
2217 | ------------- | |
2218 | - mychannel: [enabled] | |
2219 | ||
2220 | Attributes: | |
2221 | overwrite mode: 1 | |
2222 | subbufers size: 16384 | |
2223 | number of subbufers: 4 | |
2224 | switch timer interval: 100 | |
2225 | read timer interval: 200 | |
2226 | output: mmap() | |
2227 | ||
2228 | Events: | |
2229 | None | |
2230 | ||
2231 | - mychannel2: [enabled] | |
2232 | ||
2233 | Attributes: | |
2234 | overwrite mode: 0 | |
2235 | subbufers size: 32768 | |
2236 | number of subbufers: 2 | |
2237 | switch timer interval: 100 | |
2238 | read timer interval: 200 | |
2239 | output: mmap() | |
2240 | ||
2241 | Events: | |
2242 | * (type: tracepoint) [enabled] | |
2243 | ||
2244 | - channel0: [enabled] | |
2245 | ||
2246 | Attributes: | |
2247 | overwrite mode: 0 | |
2248 | subbufers size: 262144 | |
2249 | number of subbufers: 4 | |
2250 | switch timer interval: 0 | |
2251 | read timer interval: 200 | |
2252 | output: mmap() | |
2253 | ||
2254 | Events: | |
2255 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2256 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2257 | ||
2258 | </COMMAND_OUTPUT> | |
2259 | ||
2260 | <COMMAND_INPUT> | |
2261 | lttng enable-event ust* -u -s mysession -c mychannel --tracepoint | |
2262 | </COMMAND_INPUT> | |
2263 | <COMMAND_RESULT> | |
2264 | 0 | |
2265 | </COMMAND_RESULT> | |
2266 | <COMMAND_OUTPUT> | |
2267 | UST event ust* created in channel mychannel | |
2268 | </COMMAND_OUTPUT> | |
2269 | ||
2270 | <COMMAND_INPUT> | |
2271 | lttng list mysession | |
2272 | </COMMAND_INPUT> | |
2273 | <COMMAND_RESULT> | |
2274 | 0 | |
2275 | </COMMAND_RESULT> | |
2276 | <COMMAND_OUTPUT> | |
2277 | Tracing session mysession: [inactive] | |
2278 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2279 | ||
2280 | === Domain: UST global === | |
2281 | ||
2282 | Channels: | |
2283 | ------------- | |
2284 | - mychannel: [enabled] | |
2285 | ||
2286 | Attributes: | |
2287 | overwrite mode: 1 | |
2288 | subbufers size: 16384 | |
2289 | number of subbufers: 4 | |
2290 | switch timer interval: 100 | |
2291 | read timer interval: 200 | |
2292 | output: mmap() | |
2293 | ||
2294 | Events: | |
2295 | ust* (type: tracepoint) [enabled] | |
2296 | ||
2297 | - mychannel2: [enabled] | |
2298 | ||
2299 | Attributes: | |
2300 | overwrite mode: 0 | |
2301 | subbufers size: 32768 | |
2302 | number of subbufers: 2 | |
2303 | switch timer interval: 100 | |
2304 | read timer interval: 200 | |
2305 | output: mmap() | |
2306 | ||
2307 | Events: | |
2308 | * (type: tracepoint) [enabled] | |
2309 | ||
2310 | - channel0: [enabled] | |
2311 | ||
2312 | Attributes: | |
2313 | overwrite mode: 0 | |
2314 | subbufers size: 262144 | |
2315 | number of subbufers: 4 | |
2316 | switch timer interval: 0 | |
2317 | read timer interval: 200 | |
2318 | output: mmap() | |
2319 | ||
2320 | Events: | |
2321 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2322 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2323 | ||
2324 | </COMMAND_OUTPUT> | |
2325 | ||
2326 | <COMMAND_INPUT> | |
2327 | lttng enable-event ust* -u -s mysession --tracepoint | |
2328 | </COMMAND_INPUT> | |
2329 | <COMMAND_RESULT> | |
2330 | 0 | |
2331 | </COMMAND_RESULT> | |
2332 | <COMMAND_OUTPUT> | |
2333 | UST event ust* created in channel channel0 | |
2334 | </COMMAND_OUTPUT> | |
2335 | ||
2336 | <COMMAND_INPUT> | |
2337 | lttng list mysession | |
2338 | </COMMAND_INPUT> | |
2339 | <COMMAND_RESULT> | |
2340 | 0 | |
2341 | </COMMAND_RESULT> | |
2342 | <COMMAND_OUTPUT> | |
2343 | Tracing session mysession: [inactive] | |
2344 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2345 | ||
2346 | === Domain: UST global === | |
2347 | ||
2348 | Channels: | |
2349 | ------------- | |
2350 | - mychannel: [enabled] | |
2351 | ||
2352 | Attributes: | |
2353 | overwrite mode: 1 | |
2354 | subbufers size: 16384 | |
2355 | number of subbufers: 4 | |
2356 | switch timer interval: 100 | |
2357 | read timer interval: 200 | |
2358 | output: mmap() | |
2359 | ||
2360 | Events: | |
2361 | ust* (type: tracepoint) [enabled] | |
2362 | ||
2363 | - mychannel2: [enabled] | |
2364 | ||
2365 | Attributes: | |
2366 | overwrite mode: 0 | |
2367 | subbufers size: 32768 | |
2368 | number of subbufers: 2 | |
2369 | switch timer interval: 100 | |
2370 | read timer interval: 200 | |
2371 | output: mmap() | |
2372 | ||
2373 | Events: | |
2374 | * (type: tracepoint) [enabled] | |
2375 | ||
2376 | - channel0: [enabled] | |
2377 | ||
2378 | Attributes: | |
2379 | overwrite mode: 0 | |
2380 | subbufers size: 262144 | |
2381 | number of subbufers: 4 | |
2382 | switch timer interval: 0 | |
2383 | read timer interval: 200 | |
2384 | output: mmap() | |
2385 | ||
2386 | Events: | |
2387 | ust* (type: tracepoint) [enabled] | |
2388 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2389 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2390 | ||
2391 | </COMMAND_OUTPUT> | |
2392 | ||
2393 | <COMMAND_INPUT> | |
2394 | lttng enable-event u* -u -s mysession --tracepoint | |
2395 | </COMMAND_INPUT> | |
2396 | <COMMAND_RESULT> | |
2397 | 0 | |
2398 | </COMMAND_RESULT> | |
2399 | <COMMAND_OUTPUT> | |
2400 | UST event u* created in channel channel0 | |
2401 | </COMMAND_OUTPUT> | |
2402 | ||
2403 | <COMMAND_INPUT> | |
2404 | lttng list mysession | |
2405 | </COMMAND_INPUT> | |
2406 | <COMMAND_RESULT> | |
2407 | 0 | |
2408 | </COMMAND_RESULT> | |
2409 | <COMMAND_OUTPUT> | |
2410 | Tracing session mysession: [inactive] | |
2411 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2412 | ||
2413 | === Domain: UST global === | |
2414 | ||
2415 | Channels: | |
2416 | ------------- | |
2417 | - mychannel: [enabled] | |
2418 | ||
2419 | Attributes: | |
2420 | overwrite mode: 1 | |
2421 | subbufers size: 16384 | |
2422 | number of subbufers: 4 | |
2423 | switch timer interval: 100 | |
2424 | read timer interval: 200 | |
2425 | output: mmap() | |
2426 | ||
2427 | Events: | |
2428 | ust* (type: tracepoint) [enabled] | |
2429 | ||
2430 | - mychannel2: [enabled] | |
2431 | ||
2432 | Attributes: | |
2433 | overwrite mode: 0 | |
2434 | subbufers size: 32768 | |
2435 | number of subbufers: 2 | |
2436 | switch timer interval: 100 | |
2437 | read timer interval: 200 | |
2438 | output: mmap() | |
2439 | ||
2440 | Events: | |
2441 | * (type: tracepoint) [enabled] | |
2442 | ||
2443 | - channel0: [enabled] | |
2444 | ||
2445 | Attributes: | |
2446 | overwrite mode: 0 | |
2447 | subbufers size: 262144 | |
2448 | number of subbufers: 4 | |
2449 | switch timer interval: 0 | |
2450 | read timer interval: 200 | |
2451 | output: mmap() | |
2452 | ||
2453 | Events: | |
2454 | u* (type: tracepoint) [enabled] | |
2455 | ust* (type: tracepoint) [enabled] | |
2456 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2457 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2458 | ||
2459 | </COMMAND_OUTPUT> | |
2460 | ||
2461 | ||
2462 | <COMMAND_INPUT> | |
2463 | lttng enable-event myevent1 -u -s mysession --loglevel TRACE_WARNING | |
2464 | </COMMAND_INPUT> | |
2465 | <COMMAND_RESULT> | |
2466 | 0 | |
2467 | </COMMAND_RESULT> | |
2468 | <COMMAND_OUTPUT> | |
2469 | UST event myevent1 created in channel channel0 | |
2470 | </COMMAND_OUTPUT> | |
2471 | ||
2472 | <COMMAND_INPUT> | |
2473 | lttng list mysession | |
2474 | </COMMAND_INPUT> | |
2475 | <COMMAND_RESULT> | |
2476 | 0 | |
2477 | </COMMAND_RESULT> | |
2478 | <COMMAND_OUTPUT> | |
2479 | Tracing session mysession: [inactive] | |
2480 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2481 | ||
2482 | === Domain: UST global === | |
2483 | ||
2484 | Channels: | |
2485 | ------------- | |
2486 | - mychannel: [enabled] | |
2487 | ||
2488 | Attributes: | |
2489 | overwrite mode: 1 | |
2490 | subbufers size: 16384 | |
2491 | number of subbufers: 4 | |
2492 | switch timer interval: 100 | |
2493 | read timer interval: 200 | |
2494 | output: mmap() | |
2495 | ||
2496 | Events: | |
2497 | ust* (type: tracepoint) [enabled] | |
2498 | ||
2499 | - mychannel2: [enabled] | |
2500 | ||
2501 | Attributes: | |
2502 | overwrite mode: 0 | |
2503 | subbufers size: 32768 | |
2504 | number of subbufers: 2 | |
2505 | switch timer interval: 100 | |
2506 | read timer interval: 200 | |
2507 | output: mmap() | |
2508 | ||
2509 | Events: | |
2510 | * (type: tracepoint) [enabled] | |
2511 | ||
2512 | - channel0: [enabled] | |
2513 | ||
2514 | Attributes: | |
2515 | overwrite mode: 0 | |
2516 | subbufers size: 262144 | |
2517 | number of subbufers: 4 | |
2518 | switch timer interval: 0 | |
2519 | read timer interval: 200 | |
2520 | output: splice() | |
2521 | ||
2522 | Events: | |
2523 | myevent1 (loglevel: TRACE_WARNING (4)) (type: tracepoint) [enabled] | |
2524 | u* (type: tracepoint) [enabled] | |
2525 | ust* (type: tracepoint) [enabled] | |
2526 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2527 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2528 | ||
2529 | </COMMAND_OUTPUT> | |
2530 | ||
2531 | <COMMAND_INPUT> | |
2532 | lttng enable-event myevent2 -u -s mysession --loglevel-only TRACE_DEBUG_FUNCTION | |
2533 | </COMMAND_INPUT> | |
2534 | <COMMAND_RESULT> | |
2535 | 0 | |
2536 | </COMMAND_RESULT> | |
2537 | <COMMAND_OUTPUT> | |
2538 | UST event myevent2 created in channel channel0 | |
2539 | </COMMAND_OUTPUT> | |
2540 | ||
2541 | <COMMAND_INPUT> | |
2542 | lttng list mysession | |
2543 | </COMMAND_INPUT> | |
2544 | <COMMAND_RESULT> | |
2545 | 0 | |
2546 | </COMMAND_RESULT> | |
2547 | <COMMAND_OUTPUT> | |
2548 | Tracing session mysession: [inactive] | |
2549 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2550 | ||
2551 | === Domain: UST global === | |
2552 | ||
2553 | Channels: | |
2554 | ------------- | |
2555 | - mychannel: [enabled] | |
2556 | ||
2557 | Attributes: | |
2558 | overwrite mode: 1 | |
2559 | subbufers size: 16384 | |
2560 | number of subbufers: 4 | |
2561 | switch timer interval: 100 | |
2562 | read timer interval: 200 | |
2563 | output: mmap() | |
2564 | ||
2565 | Events: | |
2566 | ust* (type: tracepoint) [enabled] | |
2567 | ||
2568 | - mychannel2: [enabled] | |
2569 | ||
2570 | Attributes: | |
2571 | overwrite mode: 0 | |
2572 | subbufers size: 32768 | |
2573 | number of subbufers: 2 | |
2574 | switch timer interval: 100 | |
2575 | read timer interval: 200 | |
2576 | output: mmap() | |
2577 | ||
2578 | Events: | |
2579 | * (type: tracepoint) [enabled] | |
2580 | ||
2581 | - channel0: [enabled] | |
2582 | ||
2583 | Attributes: | |
2584 | overwrite mode: 0 | |
2585 | subbufers size: 262144 | |
2586 | number of subbufers: 4 | |
2587 | switch timer interval: 0 | |
2588 | read timer interval: 200 | |
2589 | output: splice() | |
2590 | ||
2591 | Events: | |
2592 | myevent2 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] | |
2593 | myevent1 (loglevel: TRACE_WARNING (4)) (type: loglevel) [enabled] | |
2594 | u* (type: tracepoint) [enabled] | |
2595 | ust* (type: tracepoint) [enabled] | |
2596 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2597 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2598 | ||
2599 | </COMMAND_OUTPUT> | |
2600 | ||
2601 | <COMMAND_INPUT> | |
2602 | lttng enable-event myevent0 -u -s mysession -c mychannel --loglevel-only TRACE_DEBUG_FUNCTION | |
2603 | </COMMAND_INPUT> | |
2604 | <COMMAND_RESULT> | |
2605 | 0 | |
2606 | </COMMAND_RESULT> | |
2607 | <COMMAND_OUTPUT> | |
2608 | UST event myevent0 created in channel mychannel | |
2609 | </COMMAND_OUTPUT> | |
2610 | ||
2611 | <COMMAND_INPUT> | |
2612 | lttng list mysession | |
2613 | </COMMAND_INPUT> | |
2614 | <COMMAND_RESULT> | |
2615 | 0 | |
2616 | </COMMAND_RESULT> | |
2617 | <COMMAND_OUTPUT> | |
2618 | Tracing session mysession: [inactive] | |
2619 | Trace path: /home/user/lttng-traces/mysession-20120314-132824 | |
2620 | ||
2621 | === Domain: UST global === | |
2622 | ||
2623 | Channels: | |
2624 | ------------- | |
2625 | - mychannel: [enabled] | |
2626 | ||
2627 | Attributes: | |
2628 | overwrite mode: 1 | |
2629 | subbufers size: 16384 | |
2630 | number of subbufers: 4 | |
2631 | switch timer interval: 100 | |
2632 | read timer interval: 200 | |
2633 | output: mmap() | |
2634 | ||
2635 | Events: | |
2636 | myevent0 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] | |
2637 | ust* (type: tracepoint) [enabled] | |
2638 | ||
2639 | - mychannel2: [enabled] | |
2640 | ||
2641 | Attributes: | |
2642 | overwrite mode: 0 | |
2643 | subbufers size: 32768 | |
2644 | number of subbufers: 2 | |
2645 | switch timer interval: 100 | |
2646 | read timer interval: 200 | |
2647 | output: mmap() | |
2648 | ||
2649 | Events: | |
2650 | * (type: tracepoint) [enabled] | |
2651 | ||
2652 | - channel0: [enabled] | |
2653 | ||
2654 | Attributes: | |
2655 | overwrite mode: 0 | |
2656 | subbufers size: 262144 | |
2657 | number of subbufers: 4 | |
2658 | switch timer interval: 0 | |
2659 | read timer interval: 200 | |
2660 | output: splice() | |
2661 | ||
2662 | Events: | |
2663 | myevent2 (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint) [enabled] | |
2664 | myevent1 (loglevel: TRACE_WARNING (4)) (type: loglevel) [enabled] | |
2665 | u* (type: tracepoint) [enabled] | |
2666 | ust* (type: tracepoint) [enabled] | |
2667 | ust_tests_hello:tptest_sighandler (type: tracepoint) [enabled] | |
2668 | ust_tests_hello:tptest (type: tracepoint) [enabled] | |
2669 | ||
2670 | </COMMAND_OUTPUT> | |
2671 | ||
2672 | ||
2673 | </SCENARIO> | |
2674 | ||
2675 | ||
d132bcc7 | 2676 |