linux_dsm_epyc7002/tools/testing/radix-tree/linux
Matthew Wilcox 847d357635 radix tree test suite: track preempt_count
Rather than simply NOP out preempt_enable() and preempt_disable(), keep
track of preempt_count and display it regularly in case either the test
suite or the code under test is forgetting to balance the enables &
disables.  Only found a test-case that was forgetting to re-enable
preemption, but it's a possibility worth checking.

Link: http://lkml.kernel.org/r/1480369871-5271-39-git-send-email-mawilcox@linuxonhyperv.com
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-14 16:04:09 -08:00
..
bitops radix tree test harness 2016-03-17 15:09:34 -07:00
bitops.h radix tree test harness 2016-03-17 15:09:34 -07:00
bug.h tools: add WARN_ON_ONCE 2016-12-14 16:04:09 -08:00
cpu.h Revert "radix tree test suite: fix compilation" 2016-12-09 10:41:42 -08:00
export.h radix tree test harness 2016-03-17 15:09:34 -07:00
gfp.h radix tree test suite: allow GFP_ATOMIC allocations to fail 2016-12-14 16:04:09 -08:00
init.h radix-tree: add test for radix_tree_locate_item() 2016-05-20 17:58:30 -07:00
kernel.h radix-tree: add support for multi-order iterating 2016-05-20 17:58:30 -07:00
kmemleak.h radix tree test harness 2016-03-17 15:09:34 -07:00
mempool.h radix tree test harness 2016-03-17 15:09:34 -07:00
notifier.h Revert "radix tree test suite: fix compilation" 2016-12-09 10:41:42 -08:00
percpu.h radix tree test harness 2016-03-17 15:09:34 -07:00
preempt.h radix tree test suite: track preempt_count 2016-12-14 16:04:09 -08:00
radix-tree.h radix tree test harness 2016-03-17 15:09:34 -07:00
rcupdate.h radix tree test harness 2016-03-17 15:09:34 -07:00
slab.h radix tree test suite: allow GFP_ATOMIC allocations to fail 2016-12-14 16:04:09 -08:00
types.h tools: add WARN_ON_ONCE 2016-12-14 16:04:09 -08:00