diff options
author | Mark Brown <broonie@kernel.org> | 2020-10-29 00:36:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-29 00:36:35 +0300 |
commit | ce038aeaee68f2e41c732b4b91c7185a1cac14b5 (patch) | |
tree | baa463fe66186edf19b3ca65d002f66dd75f09a1 /scripts/gdb/linux/tasks.py | |
parent | 6d6bc54ab4f2404d46078abc04bf4dee4db01def (diff) | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-ce038aeaee68f2e41c732b4b91c7185a1cac14b5.tar.xz |
Merge tag 'v5.10-rc1' into asoc-5.10
Linux 5.10-rc1
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
-rw-r--r-- | scripts/gdb/linux/tasks.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 0301dc1e0138..17ec19e9b5bf 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py @@ -73,11 +73,12 @@ class LxPs(gdb.Command): super(LxPs, self).__init__("lx-ps", gdb.COMMAND_DATA) def invoke(self, arg, from_tty): + gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM")) for task in task_lists(): - gdb.write("{address} {pid} {comm}\n".format( - address=task, - pid=task["pid"], - comm=task["comm"].string())) + gdb.write("{} {:^5} {}\n".format( + task.format_string().split()[0], + task["pid"].format_string(), + task["comm"].string())) LxPs() |