When using perf report
, I don\'t see any symbols for my program, instead I get output like this:
$ perf record /path/to/racket ints.rkt 10000
$ pe
you can check the value of kptr_restrict by cat /proc/kallsyms
. If the addresses of the symbols in the result are all 0x000000, you can fix it by command echo 0 > sys/kernel/kptr_restrict
. After this , you may get a wanted result of the perf report
In my case the solution was to delete the elf files which contained cached symbols from previous builds and were messing things up.
They are in ~/.debug/ folder