Re: [PATCH v2] scripts: add script for translating stack dump function offsets
From: Rabin Vincent
Date: Sat Sep 17 2016 - 04:16:23 EST
On Fri, Sep 16, 2016 at 04:26:56PM -0500, Josh Poimboeuf wrote:
> + addr2line -ie $objfile $hexaddr
Could you pass in -f and -p too to addr2line?
Before:
$ scripts/faddr2line ~/dev/kvm2/vmlinux free_reserved_area+0x90
/home/rabin/dev/linux/include/linux/compiler.h:222
/home/rabin/dev/linux/include/linux/page-flags.h:149
/home/rabin/dev/linux/include/linux/page-flags.h:154
/home/rabin/dev/linux/include/linux/page-flags.h:287
/home/rabin/dev/linux/include/linux/mm.h:1778
/home/rabin/dev/linux/include/linux/mm.h:1785
/home/rabin/dev/linux/mm/page_alloc.c:6599
After:
$ scripts/faddr2line ~/dev/kvm2/vmlinux free_reserved_area+0x90
__read_once_size at /home/rabin/dev/linux/include/linux/compiler.h:222
(inlined by) PageTail at /home/rabin/dev/linux/include/linux/page-flags.h:149
(inlined by) PageCompound at /home/rabin/dev/linux/include/linux/page-flags.h:154
(inlined by) ClearPageReserved at /home/rabin/dev/linux/include/linux/page-flags.h:287
(inlined by) __free_reserved_page at /home/rabin/dev/linux/include/linux/mm.h:1778
(inlined by) free_reserved_page at /home/rabin/dev/linux/include/linux/mm.h:1785
(inlined by) free_reserved_area at /home/rabin/dev/linux/mm/page_alloc.c:6599