Bug #1173
Updated by Jonathan Rajotte Julien over 5 years ago
hardware: i.mx6 quad (Arm v7) components used: poky/branch: https://github.com/RobertBerger/poky/tree/2019-01-16-thud-2.6.1-pre-release layer, which adds 4.19.13 kernel + new lttng components: https://github.com/RobertBerger/meta-mainline/tree/thud-training-v4.19.x/multi-v7-ml kernel: <pre> target# uname -a Linux multi-v7-ml 4.19.13-custom-ml-debug #1 SMP Wed Jan 16 20:05:50 UTC 2019 armv7l armv7l armv7l GNU/Linux </pre> <pre> target# gcc --version gcc (GCC) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </pre> <pre> host# bitbake-layers show-recipes | grep -A1 lttng lttng-modules: multi-v7-ml 2.10.8 -- lttng-tools: multi-v7-ml 2.10.5 -- lttng-ust: multi-v7-ml 2:2.10.2 </pre> -------------------------------------- Session on serial console (so we can see kernel complaints as well) on target: <pre> root@multi-v7-ml:/# export SESSION="test_session" root@multi-v7-ml:/# lttng create ${SESSION} Spawning a session daemon [ 81.444493] lttng_kretprobes: loading out-of-tree module taints kernel. [ 81.451767] lttng_kretprobes: section 4 reloc 5 sym 'strlen': relocation 28 out of range (0xbf0700a0 -> 0xc10a761c) Session test_session created. Traces will be written in /home/root/lttng-traces/test_session-20190122-114319 root@multi-v7-ml:/# lsmod Module Size Used by rtc_da9063 16384 0 da9062_core 16384 0 rtc_snvs 16384 1 root@multi-v7-ml:/# lttng list Available tracing sessions: 1) test_session (/home/root/lttng-traces/test_session-20190122-114319) [inactive] Trace path: /home/root/lttng-traces/test_session-20190122-114319 Use lttng list <session_name> for more details root@multi-v7-ml:/# lttng enable-event --kernel sched_switch,sched_process_fork [ 150.804796] lttng_kretprobes: section 4 reloc 5 sym 'strlen': relocation 28 out of range (0xbf0770a0 -> 0xc10a761c) Error: Event sched_switch: Kernel tracer not available (channel channel0, session test_session) [ 150.971757] lttng_kretprobes: section 4 reloc 5 sym 'strlen': relocation 28 out of range (0xbf07e0a0 -> 0xc10a761c) Error: Event sched_process_fork: Kernel tracer not available (channel channel0, session test_session) </pre> Kernel tracer nor available - so I guess there is no point to try more stuff here. What would you suggest? <pre> root@multi-v7-ml:/# lttng list ${SESSION} Tracing session test_session: [inactive] Trace path: /home/root/lttng-traces/test_session-20190122-114319 root@multi-v7-ml:/# lttng start Error: No channel found in the session </pre> Am I doing something wrong or do I need some kernel/lttng_modules fixes? BTW I tried first with whatever comes with my Yocto 2.6.1 pre-release and then upgraded to the latest and greatest lttng I could find on openembedded-core (master).