Created
June 28, 2016 06:27
-
-
Save vjanandr/1db6a6a9d93e6b3f2ac30a05aadcf06b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux(debug)# | |
Linux(debug)# clear | |
Linux(debug)# lttng create | |
Session auto-20170823-003745 created. | |
Traces will be written in /root/lttng-traces/auto-20170823-003745 | |
Linux(debug)# lttng enable-event -u 'tp_0:*' | |
UST event tp_0:* created in channel channel0 | |
Linux(debug)# | |
Linux(debug)# lttng start | |
Tracing started for session auto-20170823-003745 | |
Linux(debug)# lttng list auto-20170823-003745 | |
Tracing session auto-20170823-003745: [active] | |
Trace path: /root/lttng-traces/auto-20170823-003745 | |
=== Domain: UST global === | |
Buffer type: per UID | |
Channels: | |
------------- | |
- channel0: [enabled] | |
Attributes: | |
overwrite mode: 0 | |
subbufers size: 131072 | |
number of subbufers: 4 | |
switch timer interval: 0 | |
read timer interval: 0 | |
trace file count: 0 | |
trace file size (bytes): 0 | |
output: mmap() | |
Events: | |
tp_0:* (type: tracepoint) [enabled] | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# cd /root | |
Linux(debug)# ./lttng | |
lttng-traces/ lttng_benchmark.bin | |
Linux(debug)# ./lttng_benchmark.bin | |
Time to log using lttng with 5 arguments is: 1894063 microseconds | |
Linux(debug)# lttng stop | |
Waiting for data availability. | |
Tracing stopped for session auto-20170823-003745 | |
Linux(debug)# lttng view | wc -l | |
1000000 | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# lttng destroy | |
Session auto-20170823-003745 destroyed | |
Linux(debug)# cd lttng-traces | |
Linux(debug)# ls | |
auto-20170823-003745 | |
Linux(debug)# rm -rf * | |
Linux(debug)# cd | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# lttng create | |
Session auto-20170823-003907 created. | |
Traces will be written in /root/lttng-traces/auto-20170823-003907 | |
Linux(debug)#lttng enable-channel --userspace --num-subbuf 16 --subbuf-size 1024k test_channel | |
UST channel test_channel enabled for session auto-20170823-003907 | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# lttng enable-event -u -c test_channel 'tp_0:*' | |
UST event tp_0:* created in channel test_channel | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# lttng start | |
Tracing started for session auto-20170823-003907 | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# cd /root | |
Linux(debug)# ./lttng_benchmark.bin | |
Time to log using lttng with 5 arguments is: 1882393 microseconds | |
Linux(debug)# lttng list auto-20170823-003907 | |
Tracing session auto-20170823-003907: [active] | |
Trace path: /root/lttng-traces/auto-20170823-003907 | |
=== Domain: UST global === | |
Buffer type: per UID | |
Channels: | |
------------- | |
- test_channel: [enabled] | |
Attributes: | |
overwrite mode: 0 | |
subbufers size: 1048576 | |
number of subbufers: 16 | |
switch timer interval: 0 | |
read timer interval: 0 | |
trace file count: 0 | |
trace file size (bytes): 0 | |
output: mmap() | |
Events: | |
tp_0:* (type: tracepoint) [enabled] | |
Linux(debug)# lttng stop | |
Waiting for data availability. | |
Tracing stopped for session auto-20170823-003907 | |
Linux(debug)# | |
Linux(debug)# | |
Linux(debug)# lttng view | wc -l | |
1000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment