Kernel tracer not available with lttng compiled in
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
We will need more information.
What version of lttng are we speaking of here?
What kernel version/tree?
Exactly how did you build your kernel with lttng-modules built-in?
Did you follow this?:
https://github.com/lttng/lttng-modules/blob/master/README.md#kernel-built-in-support
Cheers
Quoted 79 lines · Kjeld Flarup via lttng-dev
Hello
I'm trying to get lttng working on an Power PC board
~ # lttng create my-kernel-session --output=/tmp/my-kernel-trace Spawning a session daemon
Session my-kernel-session created.
Traces will be written in/tmp/my-kernel-trace
~ # lttng list --kernel
Error: Unable to list kernel events: Kernel tracer not available
Error: Command errorNow ALL that I can find when googling this error is that the kernel modules is not loaded. However I'm not using modules, but compile everything in.
Here is a small extract of what is enabled in my kernel. I have attached the full
/proc/config.gzAm I missing something?
CONFIG_NOP_TRACER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_TRACER_MAX_TRACE=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_GENERIC_TRACER=yCONFIG_FUNCTION_TRACER=yCONFIG_FUNCTION_GRAPH_TRACER=yCONFIG_IRQSOFF_TRACER=yCONFIG_PREEMPT_TRACER=yCONFIG_SCHED_TRACER=y
#CONFIG_HWLAT_TRACERis not setCONFIG_TRACER_SNAPSHOT=yCONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
#CONFIG_STACK_TRACERis not set
CONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_FTRACE=yCONFIG_FTRACE_SYSCALLS=yCONFIG_DYNAMIC_FTRACE=yCONFIG_FTRACE_MCOUNT_RECORD=y
#CONFIG_FTRACE_STARTUP_TESTis not set
CONFIG_EVENT_TRACING=yCONFIG_PERF_EVENTS=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_KRETPROBES=y
CONFIG_HIGH_RES_TIMERS=yCONFIG_TRACEPOINTS=yCONFIG_TRACE_IRQFLAGS_SUPPORT=y
#CONFIG_TRACE_SINKis not setCONFIG_TRACE_IRQFLAGS=yCONFIG_TRACE_CLOCK=yCONFIG_TRACE_PREEMPT_TOGGLE=yCONFIG_TRACER_SNAPSHOT=yCONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
#CONFIG_TRACEPOINT_BENCHMARKis not set
#CONFIG_TRACE_EVAL_MAP_FILEis not setCONFIG_KALLSYMS=y
#CONFIG_KALLSYMS_ALLis not setCONFIG_KALLSYMS_BASE_RELATIVE=yRegards
Kjeld Flarup
DEIF A/S, R&D Platform Software_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 2 lines
Jonathan Rajotte-Julien EfficiOS
A message that is not in the archive (sent off-list or not yet received): 20190905134826.GA15223@joraj-alpa
Thanks for Your reply
I didn't notice the buildin support in the Readme. I think this will bring me further.
Regards
Kjeld Flarup
R&D Platform Software
________________________________________
From: Jonathan Rajotte-Julien <[email protected]>
Sent: Thursday, September 5, 2019 3:48:26 PM
To: Kjeld Flarup
Cc: [email protected]
Subject: Re: [lttng-dev] Kernel tracer not available with lttng compiled in
Hi,
We will need more information.
What version of lttng are we speaking of here?
What kernel version/tree?
Exactly how did you build your kernel with lttng-modules built-in?
Did you follow this?:
https://github.com/lttng/lttng-modules/blob/master/README.md#kernel-built-in-support
Cheers
Quoted 75 lines · Kjeld Flarup via lttng-dev
Hello
I'm trying to get lttng working on an Power PC board
~ # lttng create my-kernel-session --output=/tmp/my-kernel-trace Spawning a session daemon
Session my-kernel-session created.
Traces will be written in/tmp/my-kernel-trace
~ # lttng list --kernel
Error: Unable to list kernel events: Kernel tracer not available
Error: Command errorNow ALL that I can find when googling this error is that the kernel modules is not loaded. However I'm not using modules, but compile everything in.
Here is a small extract of what is enabled in my kernel. I have attached the full
/proc/config.gzAm I missing something?
CONFIG_NOP_TRACER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_TRACER_MAX_TRACE=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_GENERIC_TRACER=yCONFIG_FUNCTION_TRACER=yCONFIG_FUNCTION_GRAPH_TRACER=yCONFIG_IRQSOFF_TRACER=yCONFIG_PREEMPT_TRACER=yCONFIG_SCHED_TRACER=y
#CONFIG_HWLAT_TRACERis not setCONFIG_TRACER_SNAPSHOT=yCONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
#CONFIG_STACK_TRACERis not set
CONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_FTRACE=yCONFIG_FTRACE_SYSCALLS=yCONFIG_DYNAMIC_FTRACE=yCONFIG_FTRACE_MCOUNT_RECORD=y
#CONFIG_FTRACE_STARTUP_TESTis not set
CONFIG_EVENT_TRACING=yCONFIG_PERF_EVENTS=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_KRETPROBES=y
CONFIG_HIGH_RES_TIMERS=yCONFIG_TRACEPOINTS=yCONFIG_TRACE_IRQFLAGS_SUPPORT=y
#CONFIG_TRACE_SINKis not setCONFIG_TRACE_IRQFLAGS=yCONFIG_TRACE_CLOCK=yCONFIG_TRACE_PREEMPT_TOGGLE=yCONFIG_TRACER_SNAPSHOT=yCONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
#CONFIG_TRACEPOINT_BENCHMARKis not set
#CONFIG_TRACE_EVAL_MAP_FILEis not setCONFIG_KALLSYMS=y
#CONFIG_KALLSYMS_ALLis not setCONFIG_KALLSYMS_BASE_RELATIVE=yRegards
Kjeld Flarup
DEIF A/S, R&D Platform Software
Quoted 4 lines
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Jonathan Rajotte-Julien
EfficiOS