scripts/gdb: add helper and convenience function to look up tasks
authorJan Kiszka <[email protected]>
Tue, 17 Feb 2015 21:47:10 +0000 (13:47 -0800)
committerLinus Torvalds <[email protected]>
Tue, 17 Feb 2015 22:34:54 +0000 (14:34 -0800)
commit4752871081ba4fbb3c539488a95e77d8011bfe49
treede170ba5e2b63cecfd29a1b53353a096bb6691c2
parent7704d58a8509c65e3f7e4407ca2e5fa6360349c1
scripts/gdb: add helper and convenience function to look up tasks

Add the helper task_by_pid that can look up a task by its PID.  Also
export it as a convenience function.

Signed-off-by: Jan Kiszka <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jason Wessel <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ben Widawsky <[email protected]>
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/gdb/linux/tasks.py
scripts/gdb/vmlinux-gdb.py