scripts/gdb: add internal helper and convenience function for per-cpu lookup
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Feb 2015 21:47:21 +0000 (13:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:54 +0000 (14:34 -0800)
commitfe7f9ed98dad611ceaf17403f1c5bfd016eadcaa
tree469d69f6e6ede329e2e09e513117915aebc7447d
parenta4d86792c78d23257ab8ddd29ca16ce597361403
scripts/gdb: add internal helper and convenience function for per-cpu lookup

This function allows to obtain a per-cpu variable, either of the current
or an explicitly specified CPU.

Note: sparc64 version is untested.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: "David S. Miller" <davem@davemloft.net>
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/cpus.py [new file with mode: 0644]
scripts/gdb/vmlinux-gdb.py