lkml.org 
[lkml]   [2016]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] scripts/decode_stacktrace.sh: canonicalize basepath and modpath
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
> <kirill.shutemov@linux.intel.com> 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 basepath is some non-existenting directory.
> In my case this usually path in pbulder container.

What about "readlink -m"? It should be good enough for you too.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2016-11-21 19:49    [W:0.031 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site