btrace: identify cpu
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 14 Feb 2014 08:25:40 +0000 (09:25 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 9 Feb 2015 08:49:15 +0000 (09:49 +0100)
commitafb778a2a85ab4ac883638e309442f454f158692
tree25392f2c9c4b0f060a122d23adf023e183b3f29e
parent7d5c24b3ae60b6cfa41ebf9329b2f7832053b0f6
btrace: identify cpu

Add a struct for identifying a processor and use it in linux-btrace.c when
identifying the processor we're running on.

We will need this feature for the new btrace format.

2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>

* common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
* nat/linux-btrace.c: (btrace_this_cpu): New.
(cpu_supports_bts): Call btrace_this_cpu.
(intel_supports_bts): Add cpu parameter.
gdb/ChangeLog
gdb/common/btrace-common.h
gdb/nat/linux-btrace.c