Skip to content

Commit bf93155

Browse files
author
Andi Kleen
committed
toplev: Report CFL/KBL as CFL/KBL instead of Skylake
For #339
1 parent 28fd7a3 commit bf93155

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tl_output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, logfile, version, cpu, args):
6161
self.version = version
6262
self.unitlen = 12
6363
self.belowlen = 0
64-
self.version = "%s on %s [%s]" % (version, cpu.name, cpu.cpu)
64+
self.version = "%s on %s [%s]" % (version, cpu.name, cpu.true_name)
6565
self.curname = ""
6666
self.curname_nologf = ""
6767
self.printedversion = set()

toplev.py

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
("icl", (126, )),
6363
)
6464

65+
cpu_extra_name = {
66+
142: "kbl",
67+
158: "cfl",
68+
}
69+
6570
tsx_cpus = ("hsw", "hsx", "bdw", "skl", "skx", "clx", "icl")
6671

6772
fixed_to_num = {
@@ -673,6 +678,7 @@ def check_ratio(l):
673678
return 0 - MAX_ERROR < l < 1 + MAX_ERROR
674679

675680
cpu = tl_cpu.CPU(known_cpus, nocheck=event_nocheck, env=env)
681+
cpu.true_name = cpu_extra_name[cpu.model] if cpu.model in cpu_extra_name else cpu.cpu
676682

677683
if args.xlsx and not forced_per_socket and cpu.sockets == 1:
678684
args.per_socket = False

0 commit comments

Comments
 (0)