←back to thread

3883 points kuroguro | 1 comments | | HN request time: 0s | source
Show context
JoshMcguigan ◴[] No.26297630[source]
> Normally Luke would group the same functions together but since I don’t have debugging symbols I had to eyeball nearby addresses to guess if it’s the same place.

I really enjoyed this article, but I do have a question about this part. Why would a single function be listed at mutliple addresses?

replies(2): >>26297935 #>>26298069 #
1. tiddles ◴[] No.26298069[source]
I'd guess it's just using the value of the instruction pointer at each point it samples, and the way to resolve the function from that is to look backwards to find the symbol of the function it's in. As he has no symbols Luke has no (easy) way of knowing where functions start so it can't do this lookup.