LBR, BTM, or BTS records may have incorrect branch "from" information afer an
authorMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:38:27 +0000 (08:38 +0000)
committerMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:38:27 +0000 (08:38 +0000)
commita950d57c9fcf0b82e9b625398c24bf9c70717c0f
tree4e134c6c917481e48b40a11dab30c03f8e5b885d
parent2ae8c8e7ce51bf38de54147e6f33bb847a3b6506
LBR, BTM, or BTS records may have incorrect branch "from" information afer an
EIST transition, T-states, C1E, or Adaptive Thermal Throttling (AAJ122).

This results in sporadic test fails. Disable btrace on those processors.

gdb/
* common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
and signal.h.
(linux_supports_btrace): Add kernel and
cpuid check.
(kernel_supports_btrace): New function.
(cpu_supports_btrace): New function.
(intel_supports_btrace): New function.
gdb/ChangeLog
gdb/common/linux-btrace.c