Re: [PATCH] scripts/decode_stacktrace.sh: canonicalize basepath and modpath

2016-11-21 Thread Kirill A. Shutemov
On Mon, Nov 21, 2016 at 06:57:26PM +0300, Konstantin Khlebnikov wrote: > On Mon, Nov 21, 2016 at 2:29 PM, Kirill A. Shutemov > wrote: > > I use decode_stacktrace.sh as > > > > $ ./scripts/decode_stacktrace.sh vmlinux . . > > > > It means basepath is equal to "." and decode_stacktrace stips dot fro

Re: [PATCH] scripts/decode_stacktrace.sh: canonicalize basepath and modpath

2016-11-21 Thread Konstantin Khlebnikov
On Mon, Nov 21, 2016 at 2:29 PM, Kirill A. Shutemov wrote: > I use decode_stacktrace.sh as > > $ ./scripts/decode_stacktrace.sh vmlinux . . > > It means basepath is equal to "." and decode_stacktrace stips dot from > the filepath instead of actual basepath. Not very helpful. This doesn't work if

[PATCH] scripts/decode_stacktrace.sh: canonicalize basepath and modpath

2016-11-21 Thread Kirill A. Shutemov
I use decode_stacktrace.sh as $ ./scripts/decode_stacktrace.sh vmlinux . . It means basepath is equal to "." and decode_stacktrace stips dot from the filepath instead of actual basepath. Not very helpful. Let's fix this. Canonicalize modepath too while I'm there. Signed-off-by: Kirill A. Shute