locking/static_keys: Provide a selftest
authorIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:42:57 +0000 (11:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:51:12 +0000 (11:51 +0200)
commit2bf9e0ab08c64ac56067555911a1ae81ebff5f96
treea24fff21bdf23d155f6a2514956f94be0578a5ce
parent579e1acb153464649781fe5555b4892c0ff84a40
locking/static_keys: Provide a selftest

The 'jump label' self-test is in reality testing static keys - rename things
accordingly.

Also prettify the code in various places while at it.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: benh@kernel.crashing.org
Cc: bp@alien8.de
Cc: davem@davemloft.net
Cc: ddaney@caviumnetworks.com
Cc: heiko.carstens@de.ibm.com
Cc: linux-kernel@vger.kernel.org
Cc: liuj97@gmail.com
Cc: luto@amacapital.net
Cc: michael@ellerman.id.au
Cc: rabin@rab.in
Cc: ralf@linux-mips.org
Cc: rostedt@goodmis.org
Cc: vbabka@suse.cz
Cc: will.deacon@arm.com
Link: http://lkml.kernel.org/r/0c091ecebd78a879ed8a71835d205a691a75ab4e.1438227999.git.jbaron@akamai.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
lib/Kconfig.debug
lib/Makefile
lib/test_jump_label.c [deleted file]
lib/test_jump_label_base.c [deleted file]
lib/test_static_key_base.c [new file with mode: 0644]
lib/test_static_keys.c [new file with mode: 0644]
tools/testing/selftests/jumplabel/Makefile [deleted file]
tools/testing/selftests/jumplabel/test_jump_label.sh [deleted file]
tools/testing/selftests/static_keys/Makefile [new file with mode: 0644]
tools/testing/selftests/static_keys/test_static_keys.sh [new file with mode: 0644]