Joey Klonowski <jklonow...@g.hmc.edu> writes:
> Hi all,
>
> I'm trying to edit the qemu source code so I can use qemu as a profiler for a
> benchmark of ARM programs. A good start would be counting loads, stores, int
> ops, float ops and branch instructions used by each of the binary files. I
> have two (related) questions:
>
> 1. Where in the qemu implementation would be best to count instructions? My
> first thought is to count TCG instructions before they are sent for
> translation into host code, although it could maybe be done before translation
> from ARM to TCG instructions as well.
>
> 2. What's the corresponding folder/file(s) in the source code where I can add
> code for profiling?
>
> Thanks,
>
> Joey

Once upon a time we added some instruction counting and simple cache/tlb
simulation to QEMU. You could take a look at

git://brigitte.kvy.fi/git/qemu.git
git://brigitte.kvy.fi/git/libqemu.git

and compare the prof_qemu/* branches to origin/master. Unfortunately the
changes are a bit old.

--
Antti P Miettinen
http://www.iki.fi/~ananaza/


Reply via email to