On 03/14/2013 07:44 PM, Andi Kleen wrote:
> On Thu, Mar 14, 2013 at 08:33:43AM -0500, Maynard Johnson wrote:
>> On 03/12/2013 05:10 PM, Youquan Song wrote:
>>> run "opcontrol -l" at Ivybridge EP processor, it does not detect the CPU.
>>> oprofile: available events for CPU type "Intel Architectural Perfmon"
>>> and also does not show the perf event list.
>>> After add the patch, it shows Ivybridge perf event list and the correct CPU:
>>> oprofile: available events for CPU type "Intel Ivy Bridge microarchitecture"
>> Andi or Suravee . . . could one of you please ack this patch.
> Acked-by: Andi Kleen <ak@...>
Thanks. Patch committed.
>>> Signed-off-by: Youquan Song <youquan.song@...>
>>> libop/op_hw_specific.h | 1 +
>>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>> diff --git a/libop/op_hw_specific.h b/libop/op_hw_specific.h
>>> index 913ae1d..7b9c97c 100644
>>> --- a/libop/op_hw_specific.h
>>> +++ b/libop/op_hw_specific.h
>>> @@ -142,6 +142,7 @@ static inline op_cpu op_cpu_specific_type(op_cpu cpu_type)
>>> case 0x2d:
>>> return CPU_SANDYBRIDGE;
>>> case 0x3a:
>>> + case 0x3e:
>>> return CPU_IVYBRIDGE;
>>> case 0x3c:
>>> case 0x46: