tests/plugin: add a hotblocks plugin
commita208ba09bdcde1fd6b11793f3d76f3dd22792f87
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 20 May 2019 15:14:44 +0000 (20 16:14 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 28 Oct 2019 15:12:38 +0000 (28 15:12 +0000)
tree9267850325c6f133076bd45127047371960f63d9
parent3089e74e6710ee531dd961cbc373718f99e74afc
tests/plugin: add a hotblocks plugin

This is a simple plugin to track which translation blocks are call
most often. As we don't have a view of the internals of TCG we can
only work by the address of the start of the block so we also need to
tracks how often the address is translated.

As there will be multiple blocks starting at the same address. We can
try and work around this by futzing the value to feed to the hash with
the insn count.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/plugin/Makefile
tests/plugin/hotblocks.c [new file with mode: 0644]