]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep/selftest: Add wait context selftests
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 8 Dec 2020 10:31:12 +0000 (18:31 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Jan 2021 10:20:16 +0000 (11:20 +0100)
commit9dce693382b94083744614013c5725f8a643b3f5
treedd13f92fe9e396ab33b06b7406cb48b2a1cf0cb6
parent74d97f485f1127728ba7984e4f3575acdaa981cf
lockdep/selftest: Add wait context selftests

These tests are added for two purposes:

* Test the implementation of wait context checks and related
annotations.

* Semi-document the rules for wait context nesting when
PROVE_RAW_LOCK_NESTING=y.

The test cases are only avaible for PROVE_RAW_LOCK_NESTING=y, as wait
context checking makes more sense for that configuration.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201208103112.2838119-5-boqun.feng@gmail.com
lib/locking-selftest.c