How can I get perf to find symbols in my program

后端 未结 8 1609
醉梦人生
醉梦人生 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:47

    I had this problem too, I couldn't see any userspace symbol, but I saw some kernel symbols. I thought this was a symbol loading issue. After tried all the possible solutions I could find, I still couldn't get it work.

    Then I faintly remember that

    ulimit -u unlimited

    is needed. I tried and it magically worked.

    I found from this wiki that this command is needed when you use too many file descriptors.

    https://perf.wiki.kernel.org/index.php/Tutorial#Troubleshooting_and_Tips

    my final command was

    perf record -F 999 -g ./my_program

    didn't need --call-graph

提交回复
热议问题