Re: [PATCH] scripts: add script for translating stack dump function offsets

From: Linus Torvalds
Date: Fri Sep 16 2016 - 15:26:44 EST


On Fri, Sep 16, 2016 at 12:17 PM, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> I think that issue is solved by addr2line's '--inline' option, which the
> script uses:

Oh, well, even better. I clearly don't know addr2line well enough, and
having a script that does this correctly automatically is clearly what
*I* need too.

>> So both the function offset
>> filtering and the type filtering could definitely make a difference.
>
> Yeah, good ideas. That would help reduce some of the false duplicates,
> though they are quite rare. I'll see what I can do.

Yeah, in practice the false duplicates almost never happen. We do have
duplicate function names, but they tend to be for simple things.

And the call trace often makes it obvious which particular function it
is for the human that is reading the output, but since it should be
easy to cut down on the potential duplicates, I think it's a good
thing to do.

Linus