This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 8/9] btrace: identify cpu
- From: Pedro Alves <palves at redhat dot com>
- To: Markus Metzger <markus dot t dot metzger at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 05 Feb 2015 19:31:50 +0100
- Subject: Re: [PATCH v4 8/9] btrace: identify cpu
- Authentication-results: sourceware.org; auth=none
- References: <1423150072-21229-1-git-send-email-markus dot t dot metzger at intel dot com> <1423150072-21229-9-git-send-email-markus dot t dot metzger at intel dot com>
On 02/05/2015 04:27 PM, Markus Metzger wrote:
> 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-05 Markus Metzger <markus.t.metzger@intel.com>
>
> gdb/
> * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
> * nat/linux-btrace.c: Include x86-cpuid.h.
This looks stale.
> (btrace_this_cpu): New.
> (cpu_supports_bts): Call btrace_this_cpu.
> (intel_supports_bts): Add cpu parameter.
Thanks,
Pedro Alves