* [Qemu-devel] Dynamic Binary Instrumentation
@ 2012-09-04 20:08 Lluís Vilanova
2012-09-21 6:42 ` 陳韋任 (Wei-Ren Chen)
0 siblings, 1 reply; 5+ messages in thread
From: Lluís Vilanova @ 2012-09-04 20:08 UTC (permalink / raw)
To: qemu-devel
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
--
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Dynamic Binary Instrumentation
2012-09-04 20:08 [Qemu-devel] Dynamic Binary Instrumentation Lluís Vilanova
@ 2012-09-21 6:42 ` 陳韋任 (Wei-Ren Chen)
2012-09-21 13:39 ` Lluís Vilanova
0 siblings, 1 reply; 5+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-09-21 6:42 UTC (permalink / raw)
To: Lluís Vilanova; +Cc: qemu-devel
Hi Liuis,
On Tue, Sep 04, 2012 at 10:08:09PM +0200, Lluís Vilanova wrote:
> 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
The website is down. :/ Would you like to take a look on that?
Thanks.
Regards,
chenwj
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Dynamic Binary Instrumentation
2012-09-21 6:42 ` 陳韋任 (Wei-Ren Chen)
@ 2012-09-21 13:39 ` Lluís Vilanova
2012-09-25 16:44 ` 陳韋任 (Wei-Ren Chen)
0 siblings, 1 reply; 5+ messages in thread
From: Lluís Vilanova @ 2012-09-21 13:39 UTC (permalink / raw)
To: 陳韋任 (Wei-Ren Chen); +Cc: qemu-devel
Sorry, it's up again. The server is low on RAM and Linux' OOM killer kicks in
sometimes.
Lluis
陳韋任 (Wei-Ren Chen) writes:
> Hi Liuis,
> On Tue, Sep 04, 2012 at 10:08:09PM +0200, Lluís Vilanova wrote:
>> 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
> The website is down. :/ Would you like to take a look on that?
> Thanks.
> Regards,
> chenwj
> --
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Dynamic Binary Instrumentation
2012-09-21 13:39 ` Lluís Vilanova
@ 2012-09-25 16:44 ` 陳韋任 (Wei-Ren Chen)
2012-09-25 19:19 ` Lluís Vilanova
0 siblings, 1 reply; 5+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-09-25 16:44 UTC (permalink / raw)
To: Lluís Vilanova; +Cc: qemu-devel, 陳韋任 (Wei-Ren Chen)
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
On Fri, Sep 21, 2012 at 03:39:32PM +0200, Lluís Vilanova wrote:
> 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).
--
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
[-- Attachment #2: qemu-dbi.patch --]
[-- Type: text/x-diff, Size: 737 bytes --]
diff --git a/docs/instrumentation.txt b/docs/instrumentation.txt
index 58ce4cb..c2e79b0 100644
--- a/docs/instrumentation.txt
+++ b/docs/instrumentation.txt
@@ -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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Dynamic Binary Instrumentation
2012-09-25 16:44 ` 陳韋任 (Wei-Ren Chen)
@ 2012-09-25 19:19 ` Lluís Vilanova
0 siblings, 0 replies; 5+ messages in thread
From: Lluís Vilanova @ 2012-09-25 19:19 UTC (permalink / raw)
To: 陳韋任 (Wei-Ren Chen); +Cc: qemu-devel
陳韋任 (Wei-Ren Chen) writes:
> On Fri, Sep 21, 2012 at 03:39:32PM +0200, Lluís Vilanova wrote:
>> 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.
> 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 :)
> P.S. Attach is a minor patch which fix a typo (I guess).
Right, I should proofread the docs.
Thanks,
Lluis
--
"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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-25 19:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 20:08 [Qemu-devel] Dynamic Binary Instrumentation Lluís Vilanova
2012-09-21 6:42 ` 陳韋任 (Wei-Ren Chen)
2012-09-21 13:39 ` Lluís Vilanova
2012-09-25 16:44 ` 陳韋任 (Wei-Ren Chen)
2012-09-25 19:19 ` Lluís Vilanova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).