All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel tracer not available with lttng compiled in
@ 2019-09-05 12:23 Kjeld Flarup via lttng-dev
  0 siblings, 0 replies; 3+ messages in thread
From: Kjeld Flarup via lttng-dev @ 2019-09-05 12:23 UTC (permalink / raw)
  To: lttng-dev

[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]

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 error

Now 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.gz
Am I missing something?

CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_TRACER_MAX_TRACE=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_GENERIC_TRACER=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_IRQSOFF_TRACER=y
CONFIG_PREEMPT_TRACER=y
CONFIG_SCHED_TRACER=y
# CONFIG_HWLAT_TRACER is not set
CONFIG_TRACER_SNAPSHOT=y
CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
# CONFIG_STACK_TRACER is not set

CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not set


CONFIG_EVENT_TRACING=y
CONFIG_PERF_EVENTS=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y

CONFIG_KRETPROBES=y

CONFIG_HIGH_RES_TIMERS=y
CONFIG_TRACEPOINTS=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_TRACE_SINK is not set
CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACE_CLOCK=y
CONFIG_TRACE_PREEMPT_TOGGLE=y
CONFIG_TRACER_SNAPSHOT=y
CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y



Regards
Kjeld Flarup
DEIF A/S, R&D Platform Software



[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 16052 bytes --]

[-- Attachment #3: 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

* Re: Kernel tracer not available with lttng compiled in
       [not found] ` <20190905134826.GA15223@joraj-alpa>
@ 2019-09-06  7:30   ` Kjeld Flarup via lttng-dev
  0 siblings, 0 replies; 3+ messages in thread
From: Kjeld Flarup via lttng-dev @ 2019-09-06  7:30 UTC (permalink / raw)
  To: lttng-dev

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 <jonathan.rajotte-julien@efficios.com>
Sent: Thursday, September 5, 2019 3:48:26 PM
To: Kjeld Flarup
Cc: lttng-dev@lists.lttng.org
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

On Thu, Sep 05, 2019 at 12:23:40PM +0000, Kjeld Flarup via lttng-dev wrote:
> 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 error
>
> Now 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.gz
> Am I missing something?
>
> CONFIG_NOP_TRACER=y
> CONFIG_HAVE_FUNCTION_TRACER=y
> CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
> CONFIG_TRACER_MAX_TRACE=y
> CONFIG_CONTEXT_SWITCH_TRACER=y
> CONFIG_GENERIC_TRACER=y
> CONFIG_FUNCTION_TRACER=y
> CONFIG_FUNCTION_GRAPH_TRACER=y
> CONFIG_IRQSOFF_TRACER=y
> CONFIG_PREEMPT_TRACER=y
> CONFIG_SCHED_TRACER=y
> # CONFIG_HWLAT_TRACER is not set
> CONFIG_TRACER_SNAPSHOT=y
> CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
> # CONFIG_STACK_TRACER is not set
>
> CONFIG_HAVE_KPROBES_ON_FTRACE=y
> CONFIG_HAVE_DYNAMIC_FTRACE=y
> CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
> CONFIG_FTRACE=y
> CONFIG_FTRACE_SYSCALLS=y
> CONFIG_DYNAMIC_FTRACE=y
> CONFIG_FTRACE_MCOUNT_RECORD=y
> # CONFIG_FTRACE_STARTUP_TEST is not set
>
>
> CONFIG_EVENT_TRACING=y
> CONFIG_PERF_EVENTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
>
> CONFIG_KRETPROBES=y
>
> CONFIG_HIGH_RES_TIMERS=y
> CONFIG_TRACEPOINTS=y
> CONFIG_TRACE_IRQFLAGS_SUPPORT=y
> # CONFIG_TRACE_SINK is not set
> CONFIG_TRACE_IRQFLAGS=y
> CONFIG_TRACE_CLOCK=y
> CONFIG_TRACE_PREEMPT_TOGGLE=y
> CONFIG_TRACER_SNAPSHOT=y
> CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
> # CONFIG_TRACEPOINT_BENCHMARK is not set
> # CONFIG_TRACE_EVAL_MAP_FILE is not set
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ALL is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
>
>
>
> Regards
> Kjeld Flarup
> DEIF A/S, R&D Platform Software
>
>


> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


--
Jonathan Rajotte-Julien
EfficiOS

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel tracer not available with lttng compiled in
       [not found] <94d50c14661146d4b8dcf57123c12c8b@deif.com>
@ 2019-09-05 13:48 ` Jonathan Rajotte-Julien
       [not found] ` <20190905134826.GA15223@joraj-alpa>
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Rajotte-Julien @ 2019-09-05 13:48 UTC (permalink / raw)
  To: Kjeld Flarup; +Cc: lttng-dev

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

On Thu, Sep 05, 2019 at 12:23:40PM +0000, Kjeld Flarup via lttng-dev wrote:
> 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 error
> 
> Now 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.gz
> Am I missing something?
> 
> CONFIG_NOP_TRACER=y
> CONFIG_HAVE_FUNCTION_TRACER=y
> CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
> CONFIG_TRACER_MAX_TRACE=y
> CONFIG_CONTEXT_SWITCH_TRACER=y
> CONFIG_GENERIC_TRACER=y
> CONFIG_FUNCTION_TRACER=y
> CONFIG_FUNCTION_GRAPH_TRACER=y
> CONFIG_IRQSOFF_TRACER=y
> CONFIG_PREEMPT_TRACER=y
> CONFIG_SCHED_TRACER=y
> # CONFIG_HWLAT_TRACER is not set
> CONFIG_TRACER_SNAPSHOT=y
> CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
> # CONFIG_STACK_TRACER is not set
> 
> CONFIG_HAVE_KPROBES_ON_FTRACE=y
> CONFIG_HAVE_DYNAMIC_FTRACE=y
> CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
> CONFIG_FTRACE=y
> CONFIG_FTRACE_SYSCALLS=y
> CONFIG_DYNAMIC_FTRACE=y
> CONFIG_FTRACE_MCOUNT_RECORD=y
> # CONFIG_FTRACE_STARTUP_TEST is not set
> 
> 
> CONFIG_EVENT_TRACING=y
> CONFIG_PERF_EVENTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> 
> CONFIG_KRETPROBES=y
> 
> CONFIG_HIGH_RES_TIMERS=y
> CONFIG_TRACEPOINTS=y
> CONFIG_TRACE_IRQFLAGS_SUPPORT=y
> # CONFIG_TRACE_SINK is not set
> CONFIG_TRACE_IRQFLAGS=y
> CONFIG_TRACE_CLOCK=y
> CONFIG_TRACE_PREEMPT_TOGGLE=y
> CONFIG_TRACER_SNAPSHOT=y
> CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=y
> # CONFIG_TRACEPOINT_BENCHMARK is not set
> # CONFIG_TRACE_EVAL_MAP_FILE is not set
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ALL is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
> 
> 
> 
> Regards
> Kjeld Flarup
> DEIF A/S, R&D Platform Software
> 
> 


> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Jonathan Rajotte-Julien
EfficiOS

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-06  7:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05 12:23 Kernel tracer not available with lttng compiled in Kjeld Flarup via lttng-dev
     [not found] <94d50c14661146d4b8dcf57123c12c8b@deif.com>
2019-09-05 13:48 ` Jonathan Rajotte-Julien
     [not found] ` <20190905134826.GA15223@joraj-alpa>
2019-09-06  7:30   ` Kjeld Flarup via lttng-dev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.