hc
2024-02-19 890e1df1bec891d9203724541e81f8fbe5183388
kernel/scripts/gdb/linux/timerlist.py
....@@ -73,7 +73,7 @@
7373 ts = cpus.per_cpu(tick_sched_ptr, cpu)
7474
7575 text = "cpu: {}\n".format(cpu)
76
- for i in xrange(max_clock_bases):
76
+ for i in range(max_clock_bases):
7777 text += " clock {}:\n".format(i)
7878 text += print_base(cpu_base['clock_base'][i])
7979
....@@ -158,6 +158,8 @@
158158 num_bytes = (nr_cpu_ids + 7) / 8
159159 buf = utils.read_memoryview(inf, bits, num_bytes).tobytes()
160160 buf = binascii.b2a_hex(buf)
161
+ if type(buf) is not str:
162
+ buf=buf.decode()
161163
162164 chunks = []
163165 i = num_bytes