Farshid,

To make sure that the build is picking up your changes, you could just take
out the printing of pkt->getAddr() temporarily, and then change the text of
the message to something like:

DPRINTF(CommMonitor, "Farshid: Forwarded read request\n");

And see if it picks up that change.

You may already realize this - I can't tell from your response - but the
Addr is defined as a uint64_t and would need the appropriate format code
sent to printf.

-Patrick

On Fri, Oct 31, 2014 at 1:10 PM, Farshid Hajhashemi <
[email protected]> wrote:

> Patrick,
> ِِYes and pkt is an instantiated PacketPtr, a little above my DPRINTF line.
> I also left an intentional syntax error to find out if that appears at
> output file, but it actually had no impact and the output file is the same.
> how could it be possible? does really this comm_monitor.cc file do
> something when i run the build command?
> Regards,
> Farshid
>
> On Fri, Oct 31, 2014 at 9:04 PM, Patrick <[email protected]> wrote:
>
>> Farshid,
>>
>> The PacketPtr::getAddr function returns an Addr.
>>
>> -Patrick
>>
>> On Fri, Oct 31, 2014 at 10:15 AM, Farshid Hajhashemi via gem5-users <
>> [email protected]> wrote:
>>
>>> Hi,
>>> I have modified a DPRINTF in comm_monitor.cc file under /build/ARM/mem
>>> this way:
>>>
>>> DPRINTF(CommMonitor, "Forwarded read request\n");        =======>
>>> DPRINTF(CommMonitor, "Forwarded read request %s \n", pkt->getAddr());
>>>
>>> just like a previous post here:
>>> https://www.mail-archive.com/[email protected]/msg09302.html
>>>
>>>
>>> but the trace output file still is printed like it was before(nothing
>>> has been added). below is a sample of the output file:
>>>
>>> 11000: system.monitor2: Forwarded read request
>>> 66250: system.monitor2: Latency: 55250
>>> 66250: system.monitor2: Received read response
>>> 108000: system.monitor2: Forwarded read request
>>> .........................
>>>
>>> Am i doing something wrong?
>>> Regards,
>>> Farshid
>>>
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>
>
>
>
>
>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to