How to let perf stat support hardware event like “branches”, “branch-misses” in KVM

一个人想着一个人 提交于 2020-05-09 07:32:07

问题


I want to evaluate the performance of one process by "branch-misses" hardware event. But when I used perf stat to get "branch-misses" data, it always return 0 just because my os is in KVM. Because it's trouble for me to get one real machine to do the test. So I want to know that is there any method to get "branch-misses" by "perf stat" when I am in KVM. I'm really need your help. Thanks a lot.

来源:https://stackoverflow.com/questions/60810494/how-to-let-perf-stat-support-hardware-event-like-branches-branch-misses-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!