lttng-dev Archive on lore.kernel.org
 help / color / Atom feed
* lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
@ 2020-05-28 11:51 Lukasz Domowy via lttng-dev
  2020-05-28 11:51 ` [lttng-dev] " Lukasz Domowy via lttng-dev
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lukasz Domowy via lttng-dev @ 2020-05-28 11:51 UTC (permalink / raw)
  To: lttng-dev

Hello,

First - of all: thank you very much for efforts to develop and
maintain LTTng. It's very useful tool!
I used it so far on PowerPC targets and now I try to run it on ARM:
Cyclone5 ARMv7 CPU.

When trying to run LTTng I get:

# lttng list --kernel
[ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
Error: Unable to list kernel events: Kernel tracer not available
Error: Command error

Do you have any hints how to fix it?

I found https://bugs.lttng.org/issues/1173 but enabling
CONFIG_ARM_MODULE_PLTS did not help.

I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:

# lttng -V
lttng (LTTng Trace Control) 2.10.7 - KeKriek

All options recommended from documentation are enabled:
root@cyclone5:~# zcat /proc/config.gz | grep -i modules
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_MODULES_USE_ELF_REL=y
CONFIG_MODULES=y
CONFIG_MODULES_TREE_LOOKUP=y
# Xtables combined modules
# User Modules And Translation Layers
root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y
root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
CONFIG_HIGH_RES_TIMERS=y
root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
CONFIG_TRACEPOINTS=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y

Thank you in advance!

Best regards,
Lukasz

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

* [lttng-dev] lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
  2020-05-28 11:51 lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range Lukasz Domowy via lttng-dev
@ 2020-05-28 11:51 ` Lukasz Domowy via lttng-dev
  2020-05-28 13:31 ` Jonathan Rajotte-Julien via lttng-dev
  2020-05-28 13:31 ` Mathieu Desnoyers via lttng-dev
  2 siblings, 0 replies; 6+ messages in thread
From: Lukasz Domowy via lttng-dev @ 2020-05-28 11:51 UTC (permalink / raw)
  To: lttng-dev

Hello,

First - of all: thank you very much for efforts to develop and
maintain LTTng. It's very useful tool!
I used it so far on PowerPC targets and now I try to run it on ARM:
Cyclone5 ARMv7 CPU.

When trying to run LTTng I get:

# lttng list --kernel
[ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
Error: Unable to list kernel events: Kernel tracer not available
Error: Command error

Do you have any hints how to fix it?

I found https://bugs.lttng.org/issues/1173 but enabling
CONFIG_ARM_MODULE_PLTS did not help.

I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:

# lttng -V
lttng (LTTng Trace Control) 2.10.7 - KeKriek

All options recommended from documentation are enabled:
root@cyclone5:~# zcat /proc/config.gz | grep -i modules
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_MODULES_USE_ELF_REL=y
CONFIG_MODULES=y
CONFIG_MODULES_TREE_LOOKUP=y
# Xtables combined modules
# User Modules And Translation Layers
root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y
root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
CONFIG_HIGH_RES_TIMERS=y
root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
CONFIG_TRACEPOINTS=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y

Thank you in advance!

Best regards,
Lukasz
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
  2020-05-28 11:51 lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range Lukasz Domowy via lttng-dev
  2020-05-28 11:51 ` [lttng-dev] " Lukasz Domowy via lttng-dev
@ 2020-05-28 13:31 ` Jonathan Rajotte-Julien via lttng-dev
  2020-05-28 13:31   ` [lttng-dev] " Jonathan Rajotte-Julien via lttng-dev
  2020-05-28 13:31 ` Mathieu Desnoyers via lttng-dev
  2 siblings, 1 reply; 6+ messages in thread
From: Jonathan Rajotte-Julien via lttng-dev @ 2020-05-28 13:31 UTC (permalink / raw)
  To: Lukasz Domowy; +Cc: lttng-dev

Hi Lukasz,

Is the problem reproducible on the qemu arm target (yocto) ?

On Thu, May 28, 2020 at 01:51:12PM +0200, Lukasz Domowy via lttng-dev wrote:
> Hello,
> 
> First - of all: thank you very much for efforts to develop and
> maintain LTTng. It's very useful tool!
> I used it so far on PowerPC targets and now I try to run it on ARM:
> Cyclone5 ARMv7 CPU.
> 
> When trying to run LTTng I get:
> 
> # lttng list --kernel
> [ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
> relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
> Error: Unable to list kernel events: Kernel tracer not available
> Error: Command error
> 
> Do you have any hints how to fix it?
> 
> I found https://bugs.lttng.org/issues/1173 but enabling
> CONFIG_ARM_MODULE_PLTS did not help.
> 
> I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:
> 
> # lttng -V
> lttng (LTTng Trace Control) 2.10.7 - KeKriek
> 
> All options recommended from documentation are enabled:
> root@cyclone5:~# zcat /proc/config.gz | grep -i modules
> CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
> CONFIG_MODULES_USE_ELF_REL=y
> CONFIG_MODULES=y
> CONFIG_MODULES_TREE_LOOKUP=y
> # Xtables combined modules
> # User Modules And Translation Layers
> root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
> CONFIG_HIGH_RES_TIMERS=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
> CONFIG_TRACEPOINTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> 
> Thank you in advance!
> 
> Best regards,
> Lukasz
> _______________________________________________
> 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] 6+ messages in thread

* Re: [lttng-dev] lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
  2020-05-28 13:31 ` Jonathan Rajotte-Julien via lttng-dev
@ 2020-05-28 13:31   ` Jonathan Rajotte-Julien via lttng-dev
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Rajotte-Julien via lttng-dev @ 2020-05-28 13:31 UTC (permalink / raw)
  To: Lukasz Domowy; +Cc: lttng-dev

Hi Lukasz,

Is the problem reproducible on the qemu arm target (yocto) ?

On Thu, May 28, 2020 at 01:51:12PM +0200, Lukasz Domowy via lttng-dev wrote:
> Hello,
> 
> First - of all: thank you very much for efforts to develop and
> maintain LTTng. It's very useful tool!
> I used it so far on PowerPC targets and now I try to run it on ARM:
> Cyclone5 ARMv7 CPU.
> 
> When trying to run LTTng I get:
> 
> # lttng list --kernel
> [ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
> relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
> Error: Unable to list kernel events: Kernel tracer not available
> Error: Command error
> 
> Do you have any hints how to fix it?
> 
> I found https://bugs.lttng.org/issues/1173 but enabling
> CONFIG_ARM_MODULE_PLTS did not help.
> 
> I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:
> 
> # lttng -V
> lttng (LTTng Trace Control) 2.10.7 - KeKriek
> 
> All options recommended from documentation are enabled:
> root@cyclone5:~# zcat /proc/config.gz | grep -i modules
> CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
> CONFIG_MODULES_USE_ELF_REL=y
> CONFIG_MODULES=y
> CONFIG_MODULES_TREE_LOOKUP=y
> # Xtables combined modules
> # User Modules And Translation Layers
> root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
> CONFIG_HIGH_RES_TIMERS=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
> CONFIG_TRACEPOINTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> 
> Thank you in advance!
> 
> Best regards,
> Lukasz
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Jonathan Rajotte-Julien
EfficiOS
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
  2020-05-28 11:51 lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range Lukasz Domowy via lttng-dev
  2020-05-28 11:51 ` [lttng-dev] " Lukasz Domowy via lttng-dev
  2020-05-28 13:31 ` Jonathan Rajotte-Julien via lttng-dev
@ 2020-05-28 13:31 ` Mathieu Desnoyers via lttng-dev
  2020-05-28 13:31   ` [lttng-dev] " Mathieu Desnoyers via lttng-dev
  2 siblings, 1 reply; 6+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-05-28 13:31 UTC (permalink / raw)
  To: Lukasz Domowy; +Cc: lttng-dev

----- On May 28, 2020, at 7:51 AM, lttng-dev lttng-dev@lists.lttng.org wrote:

> Hello,
> 
> First - of all: thank you very much for efforts to develop and
> maintain LTTng. It's very useful tool!
> I used it so far on PowerPC targets and now I try to run it on ARM:
> Cyclone5 ARMv7 CPU.
> 
> When trying to run LTTng I get:
> 
> # lttng list --kernel
> [ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
> relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
> Error: Unable to list kernel events: Kernel tracer not available
> Error: Command error
> 
> Do you have any hints how to fix it?

Hrm, there is very little handcrafted assembly within the lttng_lib_ring_buffer.ko
module. Especially not large chunks of handcrafted assembly. I suspect a compiler
issue.

From a freshly booted system, if you issue "modprobe lttng_lib_ring_buffer",
so you get the same error ?

Also, what is your exact compiler version ?

Thanks,

Mathieu


> 
> I found https://bugs.lttng.org/issues/1173 but enabling
> CONFIG_ARM_MODULE_PLTS did not help.
> 
> I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:
> 
> # lttng -V
> lttng (LTTng Trace Control) 2.10.7 - KeKriek
> 
> All options recommended from documentation are enabled:
> root@cyclone5:~# zcat /proc/config.gz | grep -i modules
> CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
> CONFIG_MODULES_USE_ELF_REL=y
> CONFIG_MODULES=y
> CONFIG_MODULES_TREE_LOOKUP=y
> # Xtables combined modules
> # User Modules And Translation Layers
> root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
> CONFIG_HIGH_RES_TIMERS=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
> CONFIG_TRACEPOINTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> 
> Thank you in advance!
> 
> Best regards,
> Lukasz
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

* Re: [lttng-dev] lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range
  2020-05-28 13:31 ` Mathieu Desnoyers via lttng-dev
@ 2020-05-28 13:31   ` Mathieu Desnoyers via lttng-dev
  0 siblings, 0 replies; 6+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-05-28 13:31 UTC (permalink / raw)
  To: Lukasz Domowy; +Cc: lttng-dev

----- On May 28, 2020, at 7:51 AM, lttng-dev lttng-dev@lists.lttng.org wrote:

> Hello,
> 
> First - of all: thank you very much for efforts to develop and
> maintain LTTng. It's very useful tool!
> I used it so far on PowerPC targets and now I try to run it on ARM:
> Cyclone5 ARMv7 CPU.
> 
> When trying to run LTTng I get:
> 
> # lttng list --kernel
> [ 2012.822578] lttng_lib_ring_buffer: section 24 reloc 0 sym '':
> relocation 42 out of range (0x7f05827c -> 0xc0cd7358)
> Error: Unable to list kernel events: Kernel tracer not available
> Error: Command error
> 
> Do you have any hints how to fix it?

Hrm, there is very little handcrafted assembly within the lttng_lib_ring_buffer.ko
module. Especially not large chunks of handcrafted assembly. I suspect a compiler
issue.

From a freshly booted system, if you issue "modprobe lttng_lib_ring_buffer",
so you get the same error ?

Also, what is your exact compiler version ?

Thanks,

Mathieu


> 
> I found https://bugs.lttng.org/issues/1173 but enabling
> CONFIG_ARM_MODULE_PLTS did not help.
> 
> I use LTTng from Yocto 3.0.2 with custom kernel 4.14.134-rt63-rt:
> 
> # lttng -V
> lttng (LTTng Trace Control) 2.10.7 - KeKriek
> 
> All options recommended from documentation are enabled:
> root@cyclone5:~# zcat /proc/config.gz | grep -i modules
> CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
> CONFIG_MODULES_USE_ELF_REL=y
> CONFIG_MODULES=y
> CONFIG_MODULES_TREE_LOOKUP=y
> # Xtables combined modules
> # User Modules And Translation Layers
> root@cyclone5:~# zcat /proc/config.gz | grep -i kallsyms
> CONFIG_KALLSYMS=y
> # CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
> CONFIG_KALLSYMS_BASE_RELATIVE=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i high_res_timers
> CONFIG_HIGH_RES_TIMERS=y
> root@cyclone5:~# zcat /proc/config.gz | grep -i tracepoints
> CONFIG_TRACEPOINTS=y
> CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
> 
> Thank you in advance!
> 
> Best regards,
> Lukasz
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 11:51 lttng_lib_ring_buffer: section 24 reloc 0 sym '': relocation 42 out of range Lukasz Domowy via lttng-dev
2020-05-28 11:51 ` [lttng-dev] " Lukasz Domowy via lttng-dev
2020-05-28 13:31 ` Jonathan Rajotte-Julien via lttng-dev
2020-05-28 13:31   ` [lttng-dev] " Jonathan Rajotte-Julien via lttng-dev
2020-05-28 13:31 ` Mathieu Desnoyers via lttng-dev
2020-05-28 13:31   ` [lttng-dev] " Mathieu Desnoyers via lttng-dev

lttng-dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lttng-dev/0 lttng-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lttng-dev lttng-dev/ https://lore.kernel.org/lttng-dev \
		lttng-dev@lists.lttng.org
	public-inbox-index lttng-dev

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.lttng.lists.lttng-dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git