[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Using qemu to profile ARM binaries

From: Antti P Miettinen
Subject: Re: [Qemu-devel] Using qemu to profile ARM binaries
Date: Sat, 30 Jun 2012 22:37:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Joey Klonowski <address@hidden> 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


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

Antti P Miettinen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]