Gentoo Archives: gentoo-commits

From: "Andrew Savchenko (bircoph)" <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/oprofile/files: oprofile-1.0.0-athlon.patch
Date: Mon, 01 Dec 2014 06:40:04
Message-Id: 20141201063959.B6338B446@oystercatcher.gentoo.org
1 bircoph 14/12/01 06:39:59
2
3 Added: oprofile-1.0.0-athlon.patch
4 Log:
5 Version bump to 1.0.0 per bug 530754
6
7 Signed-off-by: Andrew Savchenko <bircoph@g.o>
8 (Portage version: 2.2.14/cvs/Linux i686, signed Manifest commit with key 565953B95372756C)
9
10 Revision Changes Path
11 1.1 dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch?rev=1.1&content-type=text/plain
15
16 Index: oprofile-1.0.0-athlon.patch
17 ===================================================================
18 Fix AMD Athlon CPU family recognition.
19 See upstream bug 275 for details:
20 https://sourceforge.net/p/oprofile/bugs/275/
21 --- oprofile-1.0.0/libop/op_cpu_type.c.orig 2014-09-12 18:39:47.000000000 +0400
22 +++ oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
23 @@ -538,10 +538,13 @@
24 family = cpu_family(eax);
25
26 /* These family does not exist in the past.*/
27 - if (family < 0x0f || family == 0x13)
28 + if (family < 0x0f && family != 0x6 || family == 0x13)
29 return ret;
30
31 switch (family) {
32 + case 0x6:
33 + ret = op_get_cpu_number("i386/athlon");
34 + break;
35 case 0x0f:
36 ret = op_get_cpu_number("x86-64/hammer");
37 break;