How can I get perf to find symbols in my program

后端 未结 8 1619
醉梦人生
醉梦人生 2021-01-30 09:24

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         


        
8条回答
  •  终归单人心
    2021-01-30 09:51

    Make sure that you compile the program using -g option along with gcc(cc) so that debugging information is produced in the operating system's native format. Try to do the following and check if there are debug symbols present in the symbol table.

    $objdump -t your-elf 
    $readelf -a your-elf
    $nm -a your-elf
    

提交回复
热议问题