scripts/gdb: add helper and convenience function to look up tasks
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:47:10 +0000 (13:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <jan.kiszka@siemens.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/tasks.py
scripts/gdb/vmlinux-gdb.py