projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7362042
)
scripts/gdb: fix lx-timerlist for HRTIMER_MAX_CLOCK_BASES printing
author
Peng Liu
<liupeng17@lenovo.com>
Tue, 21 Mar 2023 06:20:04 +0000
(14:20 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:39:31 +0000
(16:39 -0700)
HRTIMER_MAX_CLOCK_BASES is of enum type hrtimer_base_type. To print it as
an integer, HRTIMER_MAX_CLOCK_BASES should be converted first.
Link:
https://lkml.kernel.org/r/TYCP286MB214640FF0E7F04AC3926A39EC6819@TYCP286MB2146.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Peng Liu <liupeng17@lenovo.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gdb/linux/timerlist.py
patch
|
blob
|
history
diff --git
a/scripts/gdb/linux/timerlist.py
b/scripts/gdb/linux/timerlist.py
index 8281da068c5b3c4de41b3bb150f2d6a1b4b72b3e..249f0e804b249c881aa7225fb36e056f37e8e4bb 100644
(file)
--- a/
scripts/gdb/linux/timerlist.py
+++ b/
scripts/gdb/linux/timerlist.py
@@
-188,7
+188,8
@@
class LxTimerList(gdb.Command):
max_clock_bases = gdb.parse_and_eval("HRTIMER_MAX_CLOCK_BASES")
text = "Timer List Version: gdb scripts\n"
- text += "HRTIMER_MAX_CLOCK_BASES: {}\n".format(max_clock_bases)
+ text += "HRTIMER_MAX_CLOCK_BASES: {}\n".format(
+ max_clock_bases.type.fields()[max_clock_bases].enumval)
text += "now at {} nsecs\n".format(ktime_get())
for cpu in cpus.each_online_cpu():