2007-06-06 16:41:14

by Jidong Xiao

[permalink] [raw]
Subject: Question about spinlock in linux kernel

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!

Regards
Jason Xiao


2007-06-06 20:23:26

by Erik Mouw

[permalink] [raw]
Subject: Re: Question about spinlock in linux kernel

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


Attachments:
(No filename) (1.01 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments