内核开发时有时候出现Oops,例如一个野指针会导致内核崩溃,如运行时出现以下log:现在有三种方法可以找出具体出现野指针的地方
5.438972] bells bells: wm5102-aif1 <-> samsung-i2s.0 mapping ok
[ 5.443812] bells bells: Failed to add route OPCLK->Sub CLK_SYS
[ 5.450499] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[ 5.457770] pgd = c0004000
[ 5.460504] [00000010] *pgd=00000000
[ 5.463959] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 5.469249] CPU: 3 Not tainted (3.4.5-g092c4c5 #75)
[ 5.474457] PC is at snd_soc_dai_set_sysclk+0x10/0x84
[ 5.479481] LR is at bells_late_probe+0x60/0x198
[ 5.484133] pc : [<c040faa0>] lr : [<c0424030>] psr: 60000013
[ 5.484139] sp : d683bd58 ip : d683bd80 fp : d683bd7c
[ 5.495579] r10: 00000000 r9 : c08a41f8 r8 : 00000000
[ 5.500723] r7 : d62bf400 r6 : 000000