Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jmerkey@...>
Cc: Stefan Richter <stefanr@...>, <paulmck@...>, Peter Zijlstra <peterz@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, David Howells <dhowells@...>
Date: Thursday, August 21, 2008 - 9:37 am

On Thursday 21 August 2008 22:26, jmerkey@wolfmountaingroup.com wrote:


It is not the same as volatile type. What it does is tell the compiler
to clobber all registers or temporaries. This something pretty well
defined and hard to get wrong compared to volatile type.



Linux barriers aren't going to force a load to be emitted, if it can be
optimized away. If it optimized away a store, then I'd like to see a
test case.



The point is not whether it is possible to work with volatile types, but
that we tend not to use them in Linux to deal with concurrency.

Also, barriers seem to work fine for everybody else, so I think it is
likely you either aren't using them correctly, or have other bugs in the
code.



You should disable preempt before getting the processor id. Can't see any
other possible bugs, but you should be able to see from the disassembly
pretty easily.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:43 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:48 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 10:02 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 11:22 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger , Nick Piggin, (Thu Aug 21, 9:37 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:06 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:21 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:30 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:53 am)