I have the code on http://code.google.com/p/qemu-trace/. I currently have memory trace, branch trace and some special instructions traces ready ( unverified though). we should discuss about what is the best way to do this btw.
Xin On Wed, Sep 12, 2012 at 10:09 AM, Xin Tong <xerox.time.t...@gmail.com> wrote: > On Wed, Sep 12, 2012 at 6:14 AM, Lluís Vilanova <vilan...@ac.upc.edu> wrote: >> Xin Tong writes: >> >>> i do not know. could be similar. I am doing architecture research. i >>> need traces of memory access for programming running under a full >>> system environment, so i wrote this. >> >>> i do nto seem to be able to access the linked provided from the link >>> you give me though. >> >>> https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki >> >> Well, if you tried to access it during the last few days, we've been having >> some >> issues with the server. >> >> It should all work now. >> >> The main idea is to have an API similar in spirit to that of PIN [1]. You can >> have a look at the instrumentation docs [2] for some simple examples. >> >> I had some plans to modify QEMU's address translation mechanism to provide a >> performant mechanism to retrieve physical addresses (traces of virtual >> addresses >> are already supported), but that will have to wait until I finish some other >> unrelated tasks. >> >> >> [1] http://pintool.org >> [2] >> https://projects.gso.ac.upc.edu/projects/qemu-dbi/repository/entry/docs/instrumentation.txt#L202 > > By the way Luis. this is exactly what i am doing. i am writing up a > ISPASS paper for this as well. I am also using PIN to verify the > instrumentation interface. > > Xin > >> >> Lluis >> >> >> >>> On Tue, Sep 11, 2012 at 6:52 PM, 陳韋任 (Wei-Ren Chen) >>> <che...@iis.sinica.edu.tw> wrote: >>>>> I have created a set of instrument API on QEMU. one can write client >>>>> programs that compile into shared library. the shared library is then >>>>> loaded into qemu and extract statistics out of QEMU. >>>> >>>> Instrument API? Same as what Liuis did? >>>> >>>> Regards, >>>> chenwj >>>> >>>> [1] http://lists.gnu.org/archive/html/qemu-devel/2012-09/msg00379.html >>>> >>>> -- >>>> Wei-Ren Chen (陳韋任) >>>> Computer Systems Lab, Institute of Information Science, >>>> Academia Sinica, Taiwan (R.O.C.) >>>> Tel:886-2-2788-3799 #1667 >>>> Homepage: http://people.cs.nctu.edu.tw/~chenwj >> >> >> -- >> "And it's much the same thing with knowledge, for whenever you learn >> something new, the whole world becomes that much richer." >> -- The Princess of Pure Reason, as told by Norton Juster in The Phantom >> Tollbooth