[PATCH 1/3] kprobes: unify insn caches

2013-08-21 Thread Heiko Carstens
The two insn caches (insn, and optinsn) each have an own mutex and alloc/free functions (get_[opt]insn_slot() / free_[opt]insn_slot()). Since I need yet another insn cache which satifies dma allocations, unify and simplify the current implementation: - Move the per insn cache mutex into struct

[PATCH 1/3] kprobes: unify insn caches

2013-08-21 Thread Heiko Carstens
The two insn caches (insn, and optinsn) each have an own mutex and alloc/free functions (get_[opt]insn_slot() / free_[opt]insn_slot()). Since I need yet another insn cache which satifies dma allocations, unify and simplify the current implementation: - Move the per insn cache mutex into struct