Re: Question about spinlock in linux kernel

From: Erik Mouw
Date: Wed Jun 06 2007 - 16:23:27 EST


On Thu, Jun 07, 2007 at 12:40:58AM +0800, jidong xiao wrote:
> I found there is such a kernel symbol ".text.lock.spinlock",
> for example,
> # cat /proc/kallsyms | grep spinlock
> ffffffff8011e440 T bust_spinlocks
> ffffffff802d00fc t .text.lock.spinlock
> ffffffff8832ae20 d state_spinlock [nfs]
> but I can not find that who exported such a symbol?I am wondering
> where is this kernel originated from? I mean, if I faced any oops,
> which shows RIP is for example:
> RIP: 0010:[<ffffffff8031a4d9>] <ffffffff8031a4d9>{.text.lock.spinlock+0}
> then how can i locate the oops?it seems that .text.lock.spinlock is
> neither a function name, nor a variable name, so i am confused, who
> can help me out of here? Any advises is really really appreciated!

It's the name of the ELF section that holds the spinlocks. I wouldn't
know how you could get the name of a particular spinlock from there.


Erik

--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature