x86, bts: add selftest for BTS
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 13 Mar 2009 09:45:07 +0000 (10:45 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Mar 2009 10:57:20 +0000 (11:57 +0100)
commit8a327f6d1b05f5ce16572b4413a5df1d0e872283
tree7903a0b4725bea86dba942003d5f6048077271d0
parentbc44fb5f7d3e764ed7698c835a1a0f35aba2eb3d
x86, bts: add selftest for BTS

Perform a selftest of branch trace store when a cpu is initialized.

WARN and disable branch trace store support if the selftest fails.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
LKML-Reference: <20090313104507.A30125@sedona.ch.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig.debug
arch/x86/kernel/Makefile
arch/x86/kernel/ds.c
arch/x86/kernel/ds_selftest.c [new file with mode: 0644]
arch/x86/kernel/ds_selftest.h [new file with mode: 0644]