kernel/scripts/gdb/linux/timerlist.py
.. .. @@ -73,7 +73,7 @@ 73 73 ts = cpus.per_cpu(tick_sched_ptr, cpu) 74 74 75 75 text = "cpu: {}\n".format(cpu) 76 - for i in xrange(max_clock_bases):76 + for i in range(max_clock_bases):77 77 text += " clock {}:\n".format(i) 78 78 text += print_base(cpu_base['clock_base'][i]) 79 79 .. .. @@ -158,6 +158,8 @@ 158 158 num_bytes = (nr_cpu_ids + 7) / 8 159 159 buf = utils.read_memoryview(inf, bits, num_bytes).tobytes() 160 160 buf = binascii.b2a_hex(buf) 161 + if type(buf) is not str:162 + buf=buf.decode()161 163 162 164 chunks = [] 163 165 i = num_bytes