* Re: Kernel trace on Linux distro called YOCTO
[not found] <MN2PR10MB3327979A543665A00CE7474E81170@MN2PR10MB3327.namprd10.prod.outlook.com>
@ 2019-06-07 21:32 ` Jonathan Rajotte-Julien
[not found] ` <20190607213233.GA2770@joraj-alpa>
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Rajotte-Julien @ 2019-06-07 21:32 UTC (permalink / raw)
To: Stanciu, Alin; +Cc: lttng-dev
Hi Alin,
If I'm not mistaken, we had a *debugging* session on IRC together regarding
this.
From what I gather it was mostly a library lookup problem for lttng-consumerd.
Please post a summary of the solution here just in case even if it does not
seem to be directly lttng's fault so far.
Cheers.
On Thu, Jun 06, 2019 at 10:21:10PM +0000, Stanciu, Alin wrote:
> Hi,
>
> I'm trying to use LTTng to trace Linux events on a Linux distro called YOCTO.
> Using the following commands, I do not get any kernel events in the LTTng trace
>
> "
> lttng create my-kernel-session --output=/tmp/my-kernel-trace
> lttng enable-channel test --kernel --subbuf-size=10000000
> lttng enable-event --kernel --all -c test
> lttng add-context -k -t vpid -t vtid -t procname
> lttng start
> "
>
> The resulting trace is empty.
>
> No matter what I try, I can't seem to get any kernel events thorough to LTTng.
>
> Using v2.8.8.
>
> Any ideas?
>
> Thanks in advance.
>
> Best Regards,
> alin stanciu
> Assistant Software Team Manager
--
Jonathan Rajotte-Julien
EfficiOS
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel trace on Linux distro called YOCTO
[not found] ` <20190607213233.GA2770@joraj-alpa>
@ 2019-06-10 17:03 ` Stanciu, Alin
0 siblings, 0 replies; 3+ messages in thread
From: Stanciu, Alin @ 2019-06-10 17:03 UTC (permalink / raw)
To: Jonathan Rajotte-Julien; +Cc: lttng-dev
[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]
Hello Jonathan,
Indeed, it was a library lookup problem, certainly not a problem with LTTng.
Attached is the solution.
Many Thanks for the help.
Kind Regards,
ALIN STANCIU
Assistant Software Team Manager
T: +44(0)1803.546.306 | M: 07518.071.507
Alin.Stanciu@spirent.com | www.spirent.com
Aspen Way, Yalberton Industrial Estate, Paignton, U.K. TQ47QR
Spirent Communications e-mail confidentiality.
This email and the information contained therein may contain private, confidential or privileged material solely meant for the intended recipient. If you are not the intended recipient review, copying or distribution is forbidden. Further, if you are not the intended recipient, please contact the sender immediately and permanently delete this email and any copies or attachments.
-----Original Message-----
From: Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
Sent: 07 June 2019 22:33
To: Stanciu, Alin <Alin.Stanciu@spirent.com>
Cc: lttng-dev@lists.lttng.org
Subject: Re: [lttng-dev] Kernel trace on Linux distro called YOCTO
Hi Alin,
If I'm not mistaken, we had a *debugging* session on IRC together regarding this.
From what I gather it was mostly a library lookup problem for lttng-consumerd.
Please post a summary of the solution here just in case even if it does not seem to be directly lttng's fault so far.
Cheers.
On Thu, Jun 06, 2019 at 10:21:10PM +0000, Stanciu, Alin wrote:
> Hi,
>
> I'm trying to use LTTng to trace Linux events on a Linux distro called YOCTO.
> Using the following commands, I do not get any kernel events in the
> LTTng trace
>
> "
> lttng create my-kernel-session --output=/tmp/my-kernel-trace lttng
> enable-channel test --kernel --subbuf-size=10000000 lttng enable-event
> --kernel --all -c test lttng add-context -k -t vpid -t vtid -t
> procname lttng start "
>
> The resulting trace is empty.
>
> No matter what I try, I can't seem to get any kernel events thorough to LTTng.
>
> Using v2.8.8.
>
> Any ideas?
>
> Thanks in advance.
>
> Best Regards,
> alin stanciu
> Assistant Software Team Manager
--
Jonathan Rajotte-Julien
EfficiOS
[-- Attachment #2: enable_kernel_tracing_history.txt --]
[-- Type: text/plain, Size: 4405 bytes --]
575 uname -r
576 4.4.113-yocto-standard
577 lttng create my-kernel-session --output=/tmp/my-kernel-trace
578 lttng enable-channel test --kernel --subbuf-size=10000000
579 lttng enable-channel test --kernel
580 lttng --version
581 lttng (LTTng Trace Control) 2.8.8 - Isseki Nicho
582 lttng enable-event --kernel --all -c test
583 lttng add-context -k -t vpid -t vtid -t procname
584 lttng start
585 mkdir test
586 rmdir test
587 lttng-sessiond -vvv
588 cd /tmp/my-kernel-trace
589 ls -l
590 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine
591 lttng stop
592 lttng destroy
593 ps aux | grep engine
594 service posapp_engine restart
595 ps aux | grep engine
596 ps aux | grep engine
597 service posapp_engine restart
598 service posapp_engine restart
599 systemctl stop lttng-sessiond.service
600 systemctl
601 service lttng-sessiond.service stop
602 service lttng-sessionde stop
603 service lttng-sessiond stop
604 service list
605 service lttng-sessiond stop
606 cd /etc/init.d/
607 ls -l
608 find . -name lttng*
609 find . -name "lttng*"
610 ps aux | grep lttng
611 kill -9 1788
612 lttng-sessiond -vvv --verbose-consumer > log.txt 2>&1 &
613 cat log.txt
614 lttng create
615 lttng enable-event -k -a
616 lttng enable-event -k -a
617 lttng start
618 sleep 1
619 lttng stop
620 cd /home/root/lttng-traces/
621 ls
622 cd auto-20190607-173618/
623 ls -l
624 pwd
625 ls -l
626 uname -r
627 uname -a
628 cd /etc/init.d/
629 ls -l
630 cat log.txt
631 cd /
632 find / -name liburcu-common.so.5
633 cp /usr/local/lib/liburcu-common.so.5 /usr/lib
634 ls -l /usr/lib
635 find / -name "libunwind*"
636 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
637 find / -name libc.so.6
638 cp /usr/local/lib/liburcu-common.so.5 /lib
639 find / -name liburcu.so.5
640 cp /usr/local/lib/liburcu.so.5 /lib
641 find / -name liblttng-ust-ctl.so.2
642 cp /usr/local/lib/liblttng-ust-ctl.so.2 /lib
643 find / -name liburcu-cds.so.5
644 cp /usr/local/lib/liburcu-cds.so.5 /lib
645 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
646 find / -name linux-vdso.so.1
647 find / -name linux-vdso.so.1
648 find / -name libxml2.so.2
649 cp /usr/local/lib/liburcu-common.so.5 /usr/lib64
650 cp /usr/local/lib/liburcu.so.5 /usr/lib64
651 cp /usr/local/lib/liblttng-ust-ctl.so.2 /usr/lib64
652 cp /usr/local/lib/liburcu-cds.so.5 /usr/lib64
653 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
654 find / -name liburcu-bp.so.5
655 cp /usr/local/lib/liburcu-bp.so.5 /usr/lib64
656 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
657 clear
658 lttng stop
659 lttng stop
660 lttng stop
661 lttng stop
662 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine/
663 find / -name lttng-sesssiond
664 find / -name lttng-sesssiond
665 find / -name lttng-*
666 find / -name lttng-*sess*
667 find / -name lttng-*sessiond*
668 ldd lttng-sessiond
669 ldd /home/root/lttng-tools-2.8.8/src/bin/lttng-sessiond
670 ldd /usr/local/bin/lttng-sessiond
671 clear
672 lttng create
673 lttng enable-event -k -a
674 lttng start
675 sleep 1
676 lttng stop
677 cd /home/root/lttng-traces/auto-20190607-175432
678 ls -l
679 find / -name log.txt
680 ps aux | grep *sessiond
681 ps aux
682 ps aux | grep *sessiond*
683 ps aux | grep *lttng*
684 lttng status
685 lttng stop
686 ps aux | grep
687 ps aux
688 ps aux | grep "lttng*"
689 kill -9 8850
690 lttng create
691 lttng enable-event -k -a
692 lttng start
693 sleep 1
694 lttng stop
695 cd /home/root/lttng-traces/auto-20190607-175725
696 ls -l
697 cd kernel/
698 ls -l
699 cd ..
700 cd ..
701 cp -avr auto-20190607-17 /mnt/spirent/posapp/share/posapp/
702 cp -avr auto-20190607-17 /mnt/spirent/posapp/share/posapp/
703 cd auto-20190607-17
704 ls -l
705 cd auto-20190607-175725/
706 ls -l
707 cd ..
708 cp -avr auto-20190607-175725/ /mnt/spirent/posapp/share/posapp/
709 lttng stop
710 lttng destroy
711 cp -avr auto-20190607-175725/ /mnt/spirent/posapp/share/posapp/
712 pwd
713 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine/
714 history > history.txt
[-- Attachment #3: enable_kernel_tracing_history.txt --]
[-- Type: text/plain, Size: 4405 bytes --]
575 uname -r
576 4.4.113-yocto-standard
577 lttng create my-kernel-session --output=/tmp/my-kernel-trace
578 lttng enable-channel test --kernel --subbuf-size=10000000
579 lttng enable-channel test --kernel
580 lttng --version
581 lttng (LTTng Trace Control) 2.8.8 - Isseki Nicho
582 lttng enable-event --kernel --all -c test
583 lttng add-context -k -t vpid -t vtid -t procname
584 lttng start
585 mkdir test
586 rmdir test
587 lttng-sessiond -vvv
588 cd /tmp/my-kernel-trace
589 ls -l
590 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine
591 lttng stop
592 lttng destroy
593 ps aux | grep engine
594 service posapp_engine restart
595 ps aux | grep engine
596 ps aux | grep engine
597 service posapp_engine restart
598 service posapp_engine restart
599 systemctl stop lttng-sessiond.service
600 systemctl
601 service lttng-sessiond.service stop
602 service lttng-sessionde stop
603 service lttng-sessiond stop
604 service list
605 service lttng-sessiond stop
606 cd /etc/init.d/
607 ls -l
608 find . -name lttng*
609 find . -name "lttng*"
610 ps aux | grep lttng
611 kill -9 1788
612 lttng-sessiond -vvv --verbose-consumer > log.txt 2>&1 &
613 cat log.txt
614 lttng create
615 lttng enable-event -k -a
616 lttng enable-event -k -a
617 lttng start
618 sleep 1
619 lttng stop
620 cd /home/root/lttng-traces/
621 ls
622 cd auto-20190607-173618/
623 ls -l
624 pwd
625 ls -l
626 uname -r
627 uname -a
628 cd /etc/init.d/
629 ls -l
630 cat log.txt
631 cd /
632 find / -name liburcu-common.so.5
633 cp /usr/local/lib/liburcu-common.so.5 /usr/lib
634 ls -l /usr/lib
635 find / -name "libunwind*"
636 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
637 find / -name libc.so.6
638 cp /usr/local/lib/liburcu-common.so.5 /lib
639 find / -name liburcu.so.5
640 cp /usr/local/lib/liburcu.so.5 /lib
641 find / -name liblttng-ust-ctl.so.2
642 cp /usr/local/lib/liblttng-ust-ctl.so.2 /lib
643 find / -name liburcu-cds.so.5
644 cp /usr/local/lib/liburcu-cds.so.5 /lib
645 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
646 find / -name linux-vdso.so.1
647 find / -name linux-vdso.so.1
648 find / -name libxml2.so.2
649 cp /usr/local/lib/liburcu-common.so.5 /usr/lib64
650 cp /usr/local/lib/liburcu.so.5 /usr/lib64
651 cp /usr/local/lib/liblttng-ust-ctl.so.2 /usr/lib64
652 cp /usr/local/lib/liburcu-cds.so.5 /usr/lib64
653 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
654 find / -name liburcu-bp.so.5
655 cp /usr/local/lib/liburcu-bp.so.5 /usr/lib64
656 ldd /usr/local/lib/lttng/libexec/lttng-consumerd
657 clear
658 lttng stop
659 lttng stop
660 lttng stop
661 lttng stop
662 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine/
663 find / -name lttng-sesssiond
664 find / -name lttng-sesssiond
665 find / -name lttng-*
666 find / -name lttng-*sess*
667 find / -name lttng-*sessiond*
668 ldd lttng-sessiond
669 ldd /home/root/lttng-tools-2.8.8/src/bin/lttng-sessiond
670 ldd /usr/local/bin/lttng-sessiond
671 clear
672 lttng create
673 lttng enable-event -k -a
674 lttng start
675 sleep 1
676 lttng stop
677 cd /home/root/lttng-traces/auto-20190607-175432
678 ls -l
679 find / -name log.txt
680 ps aux | grep *sessiond
681 ps aux
682 ps aux | grep *sessiond*
683 ps aux | grep *lttng*
684 lttng status
685 lttng stop
686 ps aux | grep
687 ps aux
688 ps aux | grep "lttng*"
689 kill -9 8850
690 lttng create
691 lttng enable-event -k -a
692 lttng start
693 sleep 1
694 lttng stop
695 cd /home/root/lttng-traces/auto-20190607-175725
696 ls -l
697 cd kernel/
698 ls -l
699 cd ..
700 cd ..
701 cp -avr auto-20190607-17 /mnt/spirent/posapp/share/posapp/
702 cp -avr auto-20190607-17 /mnt/spirent/posapp/share/posapp/
703 cd auto-20190607-17
704 ls -l
705 cd auto-20190607-175725/
706 ls -l
707 cd ..
708 cp -avr auto-20190607-175725/ /mnt/spirent/posapp/share/posapp/
709 lttng stop
710 lttng destroy
711 cp -avr auto-20190607-175725/ /mnt/spirent/posapp/share/posapp/
712 pwd
713 cd /mnt/spirent/posapp/share/posapp/software/V6_06_00/engine/
714 history > history.txt
[-- Attachment #4: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Kernel trace on Linux distro called YOCTO
@ 2019-06-06 22:21 Stanciu, Alin
0 siblings, 0 replies; 3+ messages in thread
From: Stanciu, Alin @ 2019-06-06 22:21 UTC (permalink / raw)
To: lttng-dev
[-- Attachment #1.1.1: Type: text/plain, Size: 1548 bytes --]
Hi,
I'm trying to use LTTng to trace Linux events on a Linux distro called YOCTO.
Using the following commands, I do not get any kernel events in the LTTng trace
"
lttng create my-kernel-session --output=/tmp/my-kernel-trace
lttng enable-channel test --kernel --subbuf-size=10000000
lttng enable-event --kernel --all -c test
lttng add-context -k -t vpid -t vtid -t procname
lttng start
"
The resulting trace is empty.
No matter what I try, I can't seem to get any kernel events thorough to LTTng.
Using v2.8.8.
Any ideas?
Thanks in advance.
Best Regards,
alin stanciu
Assistant Software Team Manager
T: +44(0)1803.546.306 | M: 07518.071.507
Alin.Stanciu@spirent.com<mailto:Alin.Stanciu@spirent.com> | www.spirent.com<http://www.spirent.com/>
Aspen Way, Yalberton Industrial Estate, Paignton, U.K. TQ47QR
[Spirent]<https://www.linkedin.com/company/spirent-communications/> [Spirent] <https://twitter.com/intent/user?screen_name=Spirent> [Spirent] <https://www.youtube.com/user/spirentvideos> [Spirent] <https://www.facebook.com/spirent>
[Spirent]<http://www.spirent.com/>
Spirent Communications e-mail confidentiality.
This email and the information contained therein may contain private, confidential or privileged material solely meant for the intended recipient. If you are not the intended recipient review, copying or distribution is forbidden. Further, if you are not the intended recipient, please contact the sender immediately and permanently delete this email and any copies or attachments.
[-- Attachment #1.1.2: Type: text/html, Size: 10707 bytes --]
[-- Attachment #1.2: image001.gif --]
[-- Type: image/gif, Size: 1901 bytes --]
[-- Attachment #1.3: image002.gif --]
[-- Type: image/gif, Size: 1876 bytes --]
[-- Attachment #1.4: image003.gif --]
[-- Type: image/gif, Size: 1958 bytes --]
[-- Attachment #1.5: image004.gif --]
[-- Type: image/gif, Size: 1828 bytes --]
[-- Attachment #1.6: image005.gif --]
[-- Type: image/gif, Size: 5352 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-10 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <MN2PR10MB3327979A543665A00CE7474E81170@MN2PR10MB3327.namprd10.prod.outlook.com>
2019-06-07 21:32 ` Kernel trace on Linux distro called YOCTO Jonathan Rajotte-Julien
[not found] ` <20190607213233.GA2770@joraj-alpa>
2019-06-10 17:03 ` Stanciu, Alin
2019-06-06 22:21 Stanciu, Alin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).