You are viewing paulmck

Tired of ads? Upgrade to paid account and never see ads again!

Previous Entry | Next Entry

Transactional Memory Everywhere: Debugging

The usual debugging operations such as breakpoints work normally within lock-based critical sections and from RCU read-side critical sections. However, in initial transactional-memory hardware implementations an exception within a transaction will abort that transaction, which in turn means that breakpoints abort all enclosing transactions.

So how can transactions be debugged?


Sep. 20th, 2009 03:31 am (UTC)
Excellent point!
Debugging print{f,k} is indeed another good example of a debugging technique that works naturally with lock-based critical sections, but not so much with transactions.

As long as you aren't using (say) printk() to debug inside one of printk()'s critical sections. Of course, using printk() to debug printk() even outside of all of printk()'s critical sections is fraught with peril!