|
@@ -73,7 +73,7 @@ def print_cpu(hrtimer_bases, cpu, max_clock_bases):
|
|
|
ts = cpus.per_cpu(tick_sched_ptr, cpu)
|
|
|
|
|
|
text = "cpu: {}\n".format(cpu)
|
|
|
- for i in xrange(max_clock_bases):
|
|
|
+ for i in range(max_clock_bases):
|
|
|
text += " clock {}:\n".format(i)
|
|
|
text += print_base(cpu_base['clock_base'][i])
|
|
|
|
|
@@ -158,6 +158,8 @@ def pr_cpumask(mask):
|
|
|
num_bytes = (nr_cpu_ids + 7) / 8
|
|
|
buf = utils.read_memoryview(inf, bits, num_bytes).tobytes()
|
|
|
buf = binascii.b2a_hex(buf)
|
|
|
+ if type(buf) is not str:
|
|
|
+ buf=buf.decode()
|
|
|
|
|
|
chunks = []
|
|
|
i = num_bytes
|