Skip to contentSkip to conversation

__raw_*lock for Xenaomai 2.01 on ppc

Xenomai-help Anders Blomdell 2 participants 4 messages Nov 21, 2005 – Nov 22, 2005

lore
Share & tools
lore
#0 lore raw

Is it by design or mistake that I get the following undefined symbols on a PowerPC

# insmod xeno_nucleus.ko
xeno_nucleus: Unknown symbol __raw_read_lock
xeno_nucleus: Unknown symbol __raw_write_unlock
xeno_nucleus: Unknown symbol __raw_read_unlock
xeno_nucleus: Unknown symbol __raw_write_lock

unless the kernel is compiled with:

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SPINLOCK=y

Regards

Anders Blomdell

#1 lore raw
Quoted 8 lines · Anders Blomdell

Is it by design or mistake that I get the following undefined symbols on a PowerPC

# insmod xeno_nucleus.ko
xeno_nucleus: Unknown symbol __raw_read_lock
xeno_nucleus: Unknown symbol __raw_write_unlock
xeno_nucleus: Unknown symbol __raw_read_unlock
xeno_nucleus: Unknown symbol __raw_write_lock
Quoted 10 lines

unless the kernel is compiled with:

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SPINLOCK=y

Regards

Anders Blomdell

Patch version, please.

Quoted 5 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
Quoted 8 lines
Quoted 8 lines

Is it by design or mistake that I get the following undefined symbols on a PowerPC

# insmod xeno_nucleus.ko
xeno_nucleus: Unknown symbol __raw_read_lock
xeno_nucleus: Unknown symbol __raw_write_unlock
xeno_nucleus: Unknown symbol __raw_read_unlock
xeno_nucleus: Unknown symbol __raw_write_lock
Quoted 5 lines
Quoted 4 lines

unless the kernel is compiled with:

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SPINLOCK=y

Patch version, please.

xenomai-2.0.1/arch/ppc/patches/adeos-ipipe-2.6.14-ppc-1.0-06.patch

The problem probably is that the EXPORT_SYMBOL are done in lib/spinlock_debug.c, which is only compiled if CONFIG_DEBUG_SPINLOCK=y

Regards

Anders Blomdell

#3 lore raw
Quoted 10 lines · Anders Blomdell
Quoted 10 lines
Quoted 10 lines

Is it by design or mistake that I get the following undefined symbols on a PowerPC

# insmod xeno_nucleus.ko
xeno_nucleus: Unknown symbol __raw_read_lock
xeno_nucleus: Unknown symbol __raw_write_unlock
xeno_nucleus: Unknown symbol __raw_read_unlock
xeno_nucleus: Unknown symbol __raw_write_lock

unless the kernel is compiled with:

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SPINLOCK=y

Patch version, please.

xenomai-2.0.1/arch/ppc/patches/adeos-ipipe-2.6.14-ppc-1.0-06.patch

The problem probably is that the EXPORT_SYMBOL are done in lib/spinlock_debug.c, which is only compiled if CONFIG_DEBUG_SPINLOCK=y

lib/debug_spinlock.c adds exports for the _raw_* symbols, not for __raw_* ones (actually, I did add those since they were missing in the vanilla kernel in the first place). At first sight, the issue looks like related to linux/spinlock_up.h not defining no-ops for those symbols in the non-debug case. Maybe another vanilla kernel issue.

Signature · 1 line
Philippe.