Jump to content

Execution Trace Generation


R.Adiga

Recommended Posts

Hi Roman Popov,

I'm just exploring if there are any ways to generate trace for the list of functions that are called during the simulation. My idea is to utilize this execution trace to debug the model to make sure that the sequence of activities that needs to be performed are in order.

I can do this using step by step debugging, but it consumes lot of time. If there are any ways to generate a text file with a list of function call details, this would help.

Thanks,

R.Adiga 

Link to comment
Share on other sites

Hi Adiga,

at the end, SystemC simulations are plain C++ programs. Therefore, you can use any program trace tool that meets your needs.  One example could be the Linux perf tool, see https://perf.wiki.kernel.org.

Your favorite SystemC simulator may have additional analysis features.  You might want to ask your vendor about this.

Hope that helps,
 Philipp

Link to comment
Share on other sites

  • 2 weeks later...

Hello @R.Adiga,

I have developed something similar you can have a look here: https://github.com/AmeyaVS/trace-ninja (Still under development but basic functionality implemented for getting traces).

If you are developing on Linux I would suggest of having a look here: https://github.com/namhyung/uftrace , which offers much better tracing capabilities and lower latencies.

Both the methodologies are dependent on using GCC toolchain for building the SystemC library.

The only advantage you get on using my project is that it would work under Cygwin/Windows with GCC compiler (Not tested under MinGW).

Regards,

Ameya Vikram Singh

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...