问题
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