HowTo build client on linux system

24 views
Skip to first unread message

Pasqua+LE

unread,
Sep 8, 2010, 5:27:39 AM9/8/10
to DynamoRIO Users
Hello
searching on the web I not found a simple diagram that explains step
by step how to create a client for linux dinamoryo.

I would to try compiling the sample fils empty.c renamed empty_Pas.c
but did not succeed.

This because I'm trying to create a client that is permit to simulate
N watchpoint.

Tanks for the help you can give me
Pasquale

Zhao Qin

unread,
Sep 8, 2010, 10:26:10 AM9/8/10
to dynamor...@googlegroups.com
did you build the client in samples successfully?
If you do, what you need is to repeat the process of building the sample, starting from cmake, (remove CMakeCache file first).
Because you changed the source file name, the cmake need recreate the makefile.

Qin


--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To post to this group, send email to dynamor...@googlegroups.com.
To unsubscribe from this group, send email to dynamorio-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dynamorio-users?hl=en.




--
http://people.csail.mit.edu/qin_zhao/

Zhao Qin

unread,
Sep 8, 2010, 12:23:45 PM9/8/10
to dynamor...@googlegroups.com

This because I'm trying to create a client that is permit to simulate
N watchpoint.
 
To simulate watchpoint, you need inspect every memory access, and you might need use the shadow memory.




--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To post to this group, send email to dynamor...@googlegroups.com.
To unsubscribe from this group, send email to dynamorio-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dynamorio-users?hl=en.




--
http://people.csail.mit.edu/qin_zhao/

Pasquale Spica

unread,
Sep 9, 2010, 2:11:12 AM9/9/10
to dynamor...@googlegroups.com
There is some sample client that does it, that showing how to create a watchpoint using dinamoRyo?
Which to begin to create a new client?

thanks
a lot
Pasquale

2010/9/8 Zhao Qin <qin....@gmail.com>

Zhao Qin

unread,
Sep 9, 2010, 10:33:47 AM9/9/10
to dynamor...@googlegroups.com
There is no sample that does exact what you want, you may want to have a look at memtrace sample for how to get memory reference address.
Alternatively, you might want to have a look at shadow memory for it.
I would suggest you to read my papers (http://people.csail.mit.edu/qin_zhao/) about shadow memory and watchpoint:
"How to do a million watchpoints: Efficient Debugging Using Dynamic Instrumentation" (cc 2008)
http://groups.csail.mit.edu/commit/papers/08/zhao-cc-2008.pdf
and
"Umbra: Efficient and Scalable Memory Shadowing." (cgo 2010)
http://groups.csail.mit.edu/commit/papers/2010/zhao-cgo10-umbra.pdf

For creating a new client of single file, you only need add the file directly and repeat the process starting from cmake to recreate the Makefile.

If you want to create a client with multiple files, you need change the CMakeLists.txt a little.

Best Regards
Qin
Reply all
Reply to author
Forward
0 new messages