Re: [LAD] a *simple* ring buffer, comments pls?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Wednesday, July 13, 2011 - 1:46 pm

On 07/13/2011 11:09 AM, Tim Blechmann wrote:

> in fact, testing is not the best approach for verifying lock-free data

To me, testing on real devices is needed, it's a pragmatic approach. But I agree
it doesn't solve the entire problem.

That said, what about simulation? One could for example implement a minimal
emulator for the abstract CPU and memory model described in
linux/Documentation/memory-barriers.txt, and test lock-free algorithms on this.

I personally think that's a good approach, in the spirit of unit testing. I'm
not talking about creating a full-fleged CPU emulator, just a minimal one, with
a simple custom language suitable for writing test suites.

Not only ringbuffers could be tested this way, but also other algorithms. But
all in all, it could be quite a lot of work I think. Maybe that would be a good
thesis subject ;)

--
Olivier
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] a *simple* ring buffer, comments pls?, Tim Blechmann, (Wed Jul 13, 9:09 am)
Re: [LAD] a *simple* ring buffer, comments pls?, Olivier Guilyardi, (Wed Jul 13, 1:46 pm)
Re: [LAD] a *simple* ring buffer, comments pls?, Paul Davis, (Wed Jul 13, 1:51 pm)
Re: [LAD] a *simple* ring buffer, comments pls?, Gabriel Beddingfield, (Wed Jul 13, 2:28 pm)
Re: [LAD] a *simple* ring buffer, comments pls?, Paul Davis, (Wed Jul 13, 2:36 pm)
Re: [LAD] a *simple* ring buffer, comments pls?, Olivier Guilyardi, (Wed Jul 13, 2:27 pm)