QEMU-based CPU Instruction Frequency Analysis

Weizhen SUN,Meilin ZHANG,Yong XIANG,Yingming MAO,Ruidong CAO
DOI: https://doi.org/10.3778/j.issn.1002-8331.1512-0355
2017-01-01
Abstract:It is instructive for the design and optimization of CPU instruction to collect computer instruction streams and calculate the frequency of each kind of instruction in different application environments. Aiming at the problems of low efficiency and slow speed in the existing methods of calculation instruction frequency, a new method is proposed. The main idea of this method is to perform a script to record user behavior on the QEMU emulator and use the QEMU plug-in to obtain the instruction stream in the simulation of CPU. Analysis performance is promoted by using block-based statistics. Experimental results show that the proposed method can track and obtain the instruction stream and analyze the frequency of each instruction more efficiently. And the results of the analysis are visualized.
What problem does this paper attempt to address?