[poky] Pandaboard booting with Yocto with LTTng support
Anna Dushistova
anna.dushistova at gmail.com
Fri Jan 4 02:50:05 PST 2013
Here is what I have in my local.conf(which is a little too much, but
seems to be working):
KERNEL_CONFIG_TRACEPOINTS="y"
KERNEL_CONFIG_HAVE_ARCH_TRACEHOOK="y"
KERNEL_CONFIG_TRACE_IRQFLAGS="y"
KERNEL_CONFIG_STACKTRACE="y"
KERNEL_CONFIG_FRAME_POINTER="y"
KERNEL_CONFIG_NOP_TRACER="y"
KERNEL_CONFIG_TRACER_MAX_TRACE="y"
KERNEL_CONFIG_EVENT_TRACING="y"
KERNEL_CONFIG_EVENT_POWER_TRACING_DEPRECATED="y"
KERNEL_CONFIG_CONTEXT_SWITCH_TRACER="y"
KERNEL_CONFIG_TRACING="y"
KERNEL_CONFIG_GENERIC_TRACER="y"
KERNEL_CONFIG_FTRACE="y"
KERNEL_CONFIG_FUNCTION_TRACER="y"
KERNEL_CONFIG_FUNCTION_GRAPH_TRACER="y"
KERNEL_CONFIG_IRQSOFF_TRACER="y"
KERNEL_CONFIG_PREEMPT_TRACER="y"
KERNEL_CONFIG_SCHED_TRACER="y"
KERNEL_CONFIG_FTRACE_SYSCALLS="y"
KERNEL_CONFIG_BRANCH_PROFILE_NONE="y"
KERNEL_CONFIG_STACK_TRACER="y"
KERNEL_CONFIG_BLK_DEV_IO_TRACE="y"
KERNEL_CONFIG_KPROBES="y"
KERNEL_CONFIG_KPROBE_EVENT="y"
KERNEL_CONFIG_DYNAMIC_FTRACE="y"
KERNEL_CONFIG_FUNCTION_PROFILER="y"
KERNEL_CONFIG_FTRACE_MCOUNT_RECORD="y"
KERNEL_CONFIG_FTRACE_SELFTEST="y"
KERNEL_CONFIG_FTRACE_STARTUP_TEST="y"
KERNEL_CONFIG_EVENT_TRACE_TEST_SYSCALLS="y"
KERNEL_CONFIG_RING_BUFFER_BENCHMARK="y"
Also, see if your lttng modules got into your rootfs. It seems like
they are not present.
Or located somewhere lttng cannot find them. I would try to install
them manually(insmod or modprobe)
just to make sure.
Anna.
On Fri, Jan 4, 2013 at 9:17 AM, Ali, Nasir <Nasir_Ali at mentor.com> wrote:
> Hi Anna,
>
> I have enabled the following in defconfig file. Apart from these I don't know what other configuration I need to enable for kernel tracing.
>
> CONFIG_MODULES=y
> CONFIG_KALLSYMS=y
> CONFIG_HIGH_RES_TIMERS=y
> CONFIG_FTRACE=y
> CONFIG_TRACEPOINTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> CONFIG_HAVE_PERF_EVENTS=y
> CONFIG_EVENT_TRACING=y
> CONFIG_KPROBES=y
> CONFIG_KRETPROBES=y
>
> Best Regards,
> Nasir
> ________________________________________
> From: Anna Dushistova [anna.dushistova at gmail.com]
> Sent: Thursday, January 03, 2013 9:20 PM
> To: Ali, Nasir
> Cc: poky at yoctoproject.org
> Subject: Re: [poky] Pandaboard booting with Yocto with LTTng support
>
> Hello,
>
> Does your kernel image have tracing enabled?
>
> Anna.
>
> On Thu, Jan 3, 2013 at 4:06 PM, Ali, Nasir <Nasir_Ali at mentor.com> wrote:
>> Hi,
>>
>> I need to have LTTng kernel tracer support in Panda-board. I have
>> successfully built Yocto with LTTng support for Pandaboard and also
>> successfully booted with these images but LTTng kernel tracer doesn't work
>> for me. I have built with the following steps:
>>
>> Pull the Yocto sources from git: git clone --branch <release_name>
>> git://git.yoctoproject.org/poky
>> Pull meta-ti layer from git:git clone --branch <release_name>
>> git://git.yoctoproject.org/meta-ti
>> Run the environment setup script (oe-init-build-env)
>> Add the machine name (MACHINE ?= "pandaboard") in local.conf file
>> Add a line (BBMASK = "meta-ti/recipes-misc") at the end in local.conf file
>> for resolving meta-ti dependencies
>> Add a line (IMAGE_INSTALL_append = " dropbear") at the end in local.conf
>> file for 'ssh' support if it required.
>> Add a line (CORE_IMAGE_EXTRA_INSTALL = "lttng2-ust lttng-modules
>> lttng-tools") at the end in local.conf file for LTTng2.
>> Add meta-ti layer path in 'bblayers.conf' file
>> Start building with bitbake core-image-minimal
>>
>>
>> Then booted successfully but LTTng kernel tracer doesn't work.
>>
>>
>> root at pandaboard:~# lttng list -k
>> Spawning a session daemon
>> FATAL: Module lttng-tracer not found.
>> Error: Unable to load module lttng-tracer
>> Error: Unable to remove module lttng-tracer
>> Warning: No kernel tracer available
>> FATAL: Module lttng-tracer not found.
>> Error: Unable to load module lttng-tracer
>> Error: Unable to remove module lttng-tracer
>> Warning: No kernel tracer available
>> Error: Unable to list kernel events
>>
>> Could you please anybody guide me about this issue.
>>
>> Best Regards,
>> Nasir
>>
>> _______________________________________________
>> poky mailing list
>> poky at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>>
More information about the poky
mailing list