diff options
author | 2020-12-11 17:48:50 +0000 | |
---|---|---|
committer | 2020-12-11 17:48:50 +0000 | |
commit | 58f7553fa424fd0fd74e8b796d50c66014cebebe (patch) | |
tree | 8aecb1d047b1df2abbfa1ef323d2a724a6a61c77 /scripts/gdb/linux/tasks.py | |
parent | Merge remote-tracking branch 'spi/for-5.9' into spi-linus (diff) | |
parent | spi: Limit the spi device max speed to controller's max speed (diff) | |
download | linux-dev-58f7553fa424fd0fd74e8b796d50c66014cebebe.tar.xz linux-dev-58f7553fa424fd0fd74e8b796d50c66014cebebe.zip |
Merge remote-tracking branch 'spi/for-5.10' into spi-linus
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() |