Skip to content

Debugging considerations

ccotter edited this page Sep 16, 2012 · 3 revisions

Memory

might_sleep() is mighty useful, and I should add more of these to functions I call. Also, consider compile options like CONFIG_DEBUG_SPINLOCK_SLEEP, etc.

Use pedantic_might_sleep(), which is just a might_sleep() enabled by a new CONFIG_DEBUG_PEDANTIC_SPINLOCK_SLEEP option.

Releasing pages

  • How do I order a put_page() and kunmap_atomic()?
  • If I write to a page, how do I correctly notify/set flags, etc indicated a dirty page?
Clone this wiki locally