perf tools: Support CPU id matching for x86 v2
authorAndi Kleen <ak@linux.intel.com>
Thu, 15 Sep 2016 22:24:42 +0000 (15:24 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Oct 2016 22:58:01 +0000 (19:58 -0300)
commitf33d1227197e0fe9d3682c5a766fdc74559da78e
tree834a0d5665ed87ea43dac7a0d60fc42db4dc72b3
parentce88f27ccc724fa8e6766fdd4140768931f42f88
perf tools: Support CPU id matching for x86 v2

Implement the code to match CPU types to mapfile types for x86 based on
CPUID. This extends an existing similar function, but changes it to use
the x86 mapfile cpu description.  This allows to resolve event lists
generated by jevents.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1473978296-20712-6-git-send-email-sukadev@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/header.c