Debug Deuce STM

61 views
Skip to first unread message

Vincent Ni

unread,
Mar 15, 2013, 10:42:56 AM3/15/13
to deuce-stm-...@googlegroups.com
Hi all,

What should I do to debug the instrumentation part of the DeuceSTM (such as org.deuce.transform.asm)? Since deuceSTM is imported to target program as a jar file, I can't somehow figure out how DeuceSTM instruments the class files of target program. Can anyone help me? Thanks!

Guy Korland

unread,
Mar 15, 2013, 11:55:32 AM3/15/13
to deuce-stm-...@googlegroups.com
You can run Deuce in Offlinemode - see http://www.deucestm.org/documentation/getting-started
This way you can review the result of Deuce instrumentation. 

Guy


On Fri, Mar 15, 2013 at 4:42 PM, Vincent Ni <vince...@gmail.com> wrote:
Hi all,

What should I do to debug the instrumentation part of the DeuceSTM (such as org.deuce.transform.asm)? Since deuceSTM is imported to target program as a jar file, I can't somehow figure out how DeuceSTM instruments the class files of target program. Can anyone help me? Thanks!

--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deuce-stm-develo...@googlegroups.com.
To post to this group, send email to deuce-stm-...@googlegroups.com.
Visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Vincent Ni

unread,
Mar 15, 2013, 1:39:57 PM3/15/13
to deuce-stm-...@googlegroups.com
Yes, I can see the result of Deuce instrumentation using offline mode. But I still can't figure out the workflow of the Deuce. What I want to see is the whole procedure of the instrumentation (such as entry point, calling relationship).


On Friday, March 15, 2013 11:55:32 AM UTC-4, Guy Korland wrote:
You can run Deuce in Offlinemode - see http://www.deucestm.org/documentation/getting-started
This way you can review the result of Deuce instrumentation. 

Guy


On Fri, Mar 15, 2013 at 4:42 PM, Vincent Ni <vince...@gmail.com> wrote:
Hi all,

What should I do to debug the instrumentation part of the DeuceSTM (such as org.deuce.transform.asm)? Since deuceSTM is imported to target program as a jar file, I can't somehow figure out how DeuceSTM instruments the class files of target program. Can anyone help me? Thanks!

--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deuce-stm-developers+unsub...@googlegroups.com.

Guy Korland

unread,
Mar 15, 2013, 5:33:19 PM3/15/13
to deuce-stm-...@googlegroups.com
You can just debug it if you want. The code is open sourced on GitHub.

On Fri, Mar 15, 2013 at 7:39 PM, Vincent Ni <vince...@gmail.com> wrote:
Yes, I can see the result of Deuce instrumentation using offline mode. But I still can't figure out the workflow of the Deuce. What I want to see is the whole procedure of the instrumentation (such as entry point, calling relationship).



Regards,
Guy Korland

Vincent Ni

unread,
Mar 16, 2013, 10:07:47 AM3/16/13
to deuce-stm-...@googlegroups.com
That's the part that I am not familiar with. Could you explain how to debug the whole procedure of the instrumentation? For instance, "java -jar deuceAgent.jar my.jar out_my.jar", what I mean here is debugging to see how deuceAgent instruments the my.jar. I don't want to debug the generated file out_my.jar.

F. Miguel Gamboa de Carvalho

unread,
Mar 16, 2013, 11:51:14 AM3/16/13
to deuce-stm-...@googlegroups.com
I can describe to you the process that I use to debug the Deuce engine in the Eclipse IDE.

1. Download the source code from the Github and create a new project in the Eclipse for DeuceStm.
2. From that project creates the corresponding deuceAgent.jar.
3. Create a 2nd project in the Eclipse for the application that you will tranactify with the @Atomic annotaion. E.g. MyApp
4. Add the DeuceSTM Eclipse project to the "Build path" of the previous project MyApp.
5. In the VM parameters of the run configuration of the project MyApp you must include: -javaagent:deuceAgent.jar
6. After that you can run MyApp in debug mode and stop in the breakpoints that you  toggle in the   Eclipse DeuceSTM project. The entry point is in the Agent class.

I hope it helps you.


--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deuce-stm-develo...@googlegroups.com.

Guy Korland

unread,
Mar 16, 2013, 2:39:32 PM3/16/13
to deuce-stm-...@googlegroups.com
you can run it in Eclipse or any other IDE or connect using remote debug.


--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deuce-stm-develo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages