x86, bts: detect size of DS fields
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 13 Mar 2009 09:42:18 +0000 (10:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 13 Mar 2009 10:57:19 +0000 (11:57 +0100)
commitbc44fb5f7d3e764ed7698c835a1a0f35aba2eb3d
tree4d1c5e8d7cca598ca410e2e9892828af309a86a4
parent62a394eb77a1ddea73273f53ed8c3ccf6e04f2fb
x86, bts: detect size of DS fields

Impact: more robust DS feature enumeration

Detect the size of the pointer-type fields in the DS area
configuration via the DTES64 features rather than based on
the cpuid.

Rename a variable to denote that size to reflect that it only
covers the pointer-type fields.

Add more boot-time diagnostics giving the detected size and
the sizes of BTS and PEBS records.

Use the size of the BTS/PEBS record to indicate that the
respective feature is not available (if the record size is zero).

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
LKML-Reference: <20090313104218.A30096@sedona.ch.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ds.c