This is the first series of patches related to the TCGCodeQuality GSoC project More at https://wiki.qemu.org/Features/TCGCodeQuality
It adds an option to instrument TBs and collects their execution frequency. The execution frequency is then store/accumulated in an auxiliary structure every time a tb_flush or a read happens. [Qemu-Devel][PATCH 1/3] Adding an optional tb execution counter. [Qemu-Devel][PATCH 2/3] Saving counters between tb_flush events. [Qemu-Devel][PATCH 3/3] Adding command line option to linux-user.