Dynamic Binary Instrumentation
Hi there,
Given that right now I don't have enough time to write the paper that should accompany this work, I've decided to open it up so that whoever is interested can have access to it.
You can get some instructions here:
https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki
Code is split in different patch series, and I've tried to make it as painlessly as possible to add new events, as well as tried to have the current ones be as less intrusive as possible on the existing code.
The optimal outcome would be to integrate the added infrastructure upstream, so that people can benefit from it out of the box, but I'm sure this will take some iterations (if it's ever accepted).
Missing:
* Code has not been rebased on the latest QEMU version (I've a local branch where I started porting it to per-directory makefiles).
* Some of features I have locally are not yet published in that repo.
* Some commit messages and series covers need to be rewritten to reflect the current state of the code.
* Some code needs polishing.
Happy hacking,
Lluis
Signature · 4 lines
"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
Hi Liuis,
Quoted 9 lines · Lluís Vilanova
Hi there,
Given that right now I don't have enough time to write the paper that should accompany this work, I've decided to open it up so that whoever is interested can have access to it.
You can get some instructions here:
The website is down. :/ Would you like to take a look on that?
Thanks.
Regards,
chenwj
Signature · 5 lines
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
Sorry, it's up again. The server is low on RAM and Linux' OOM killer kicks in sometimes.
Lluis
Quoted 24 lines · 陳韋任 (Wei-Ren Chen)
Hi Liuis,
Quoted 9 lines · Lluís Vilanova
Hi there,
Given that right now I don't have enough time to write the paper that should accompany this work, I've decided to open it up so that whoever is interested can have access to it.
You can get some instructions here:
The website is down. :/ Would you like to take a look on that?
Thanks.Regards,
chenwjSignature · 5 lines
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
Signature · 4 lines
"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
Quoted 2 lines · Lluís Vilanova
Sorry, it's up again. The server is low on RAM and Linux' OOM killer kicks in sometimes.
Thanks. I am playing around your qemu-dbi, and has error below.
$ make LINK i386-softmmu/qemu-system-i386 translate.o: In function `trace_tcg_instr__before': /tmp/chenwj/qemu-dbi/trace/tcg-instr-internal.h:134: undefined reference to `trace_tcg_vbbl_before'
Seems some files or functions are missing? Also, do you consider move your repo to github or other more reliable server?
Regards,
chenwj
P.S. Attach is a minor patch which fix a typo (I guess).
Signature · 5 lines
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
docs/instrumentation.txt +1 -1
@@ -39,7 +39,7 @@ property, if any) in the events listed in the "trace-events" file. In order to avoid modifying the QEMU sources, you can simply create a new trace-events file with your modifications: - cp /path/to/qemu-source/ /tmp/trace-events + cp /path/to/qemu-source/trace-events /tmp/trace-events sed -i -e "s/qemu_vmalloc(/instrument qemu_vmalloc(/g" /tmp/trace-events sed -i -e "s/disable tcg vbbl_before(/instrument tcg vbbl(/g" /tmp/trace-events sed -i -e "s/disable tcg vinstr_before_before(/instrument tcg vinstr_before(/g" /tmp/trace-events
Quoted 10 lines · 陳韋任 (Wei-Ren Chen)
Quoted 2 lines · Lluís Vilanova
Sorry, it's up again. The server is low on RAM and Linux' OOM killer kicks in sometimes.
Thanks. I am playing around your qemu-dbi, and has error below.
$ make LINK i386-softmmu/qemu-system-i386 translate.o: In function `trace_tcg_instr__before': /tmp/chenwj/qemu-dbi/trace/tcg-instr-internal.h:134: undefined reference to `trace_tcg_vbbl_before'
How did you configure it?
After applying a small build patch, this works for me:
cp ~/qemu-dbi/trace-events ~/ sed -i -e "s/disable tcg vmem(/instrument tcg vmem(/g" trace-events mkdir -p ~/qemu-dbi-build cd ~/qemu-dbi-build ~/qemu-src/configure --with-trace-events=../trace-events --with-trace-instrument=dynamic --prefix=/tmp/qemu-install --enable-trace-backend=stderr --target-list="i386-softmmu" make make install
I've update the repo with the aforementioned patch.
Quoted 2 lines
Seems some files or functions are missing? Also, do you consider move your repo to github or other more reliable server?
I might do it in the future, but for now my todo is full enough with other tasks :)
Quoted 1 line
P.S. Attach is a minor patch which fix a typo (I guess).
Right, I should proofread the docs.
Thanks,
Lluis
Signature · 4 lines
"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