Hi Majid,

I'm not sure if there is a way to do it from the command line in an efficient 
manner, but I've just been adding the debug print statements inside if 
statements, for instance in your case you could move the debug's print 
statements for 'Cache' inside an if statement that checks for the address you 
are looking for:

if (pkt->getAddr()==0xABCD) {
   DPRINTF(Cache, "%s: write %s\n", __func__, tgt_pkt->print());
}

This might not be an elegant solution, but it worked for what I was doing...

Another alternative (or addition to above) is to make your own debug print 
statement so you're not changing the 'Cache' debug print statement, which I 
also ended up doing (basically just copied the 'Cache' debug statement but used 
an if statement like above)...

Hope that helps, but if someone else has a better solution, I'd be interested 
to see it as well.

Respectfully,

Jason Z.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to