有没有办法使用 perf 动态地“实时”监控汇编指令?我已经看到,如果我使用 perf record /perf top 然后单击记录的函数,我会看到汇编指令,但我可以直接监控特定的汇编指令,例如 rdtsc 或 clflush 例如,它们被内部进程调用的频率特定时期使用性能?
我在 Skylake 和 Haswell 上使用 Debian 9。
sudo uname -a
Linux bla 4.9.0-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
sudo /proc/config.gz
返回 command not found
。
任何帮助/想法表示赞赏。