Random addresses getting printed undefinitely while booting kernel on armv7

47 views Asked by At

Similar to ftrace, I have a function which prints addresses of all functions getting called while booting kernel on armv7 board. Addresses are printed properly before setup_arch function call in start_kernel function, but after that random addresses are getting printed. I think its the problem of spinlock since these addresses when mapped referred to functions like _raw_spin_lock_irqsave and add_preempt_count. It might not be spinlock problem. Any suggestions on how to solve it?

1

There are 1 answers

1
levengli On

Based on your comment, the question is how to disable spin_locks in order to clarify log files.

While disabling locks on a multicore system has an impact an may cause the system to err to the extent of crashing - it is possible to do so.

include/linux/spinlock.h shows that spin_locks can be disabled by compiling the kernel with CONFIG_SMP and CONFIG_DEBUG_SPINLOCK undefined.