If you see [unknown]
, the following might be useful assuming you're using --call-stack dwarf
:
-
Note that
--call-graph dwarf,1024
(where1024
is the stack size) dumps first 1024 bytes of the stack to the record file, then use DWARF debug information to deduce the frames later.This is quite inefficient (because it dumps the whole stack instead of just the addresses for each sample), but more importantly, if the stack is too deep (1024 bytes is insufficient) then the result is [unknown] frames.
So, either try increasing it to
dwarf,65528
(which is the maximum on my machine), or if it still doesn't work,--call-graph lbr
or--call-graph fp
(the last one may need recompile).
Other things to try: