I am a little unfamiliar with the code you are looking at, but my idea
would be to find whoever is setting the packet source. is there a
"setSrc" somewhere? If so, locate those points, and then add your own
extra information in there so that you can maybe say "getSrcName"
later...

On Sat, Apr 18, 2009 at 11:16 PM, ef <[email protected]> wrote:
> Hello,
>
> I am trying to find out in the L2 cache which memory object has sent a
> request. For example I want to know whether an L1 Data Cache or an L1
> Instruction Cache has sent a request to the L2.
>
> Right now I am working under cache_impl.hh. Is there a way in this file to
> decrypt pkt->getSrc(), as this number is only a integer. So what I want to
> do is take pkt->getSrc() and retrieve the actual name of the module of that
> source.
>
> So lets say L2 gets a packet from source 5, I want to know what the name of
> that module is! I exhaustively searched the code, the only thing I could
> think of is using some functions from src/mem/bus.cc & bus.hh, but not sure
> if thats even possible or correct, that should be a very very last resort.
> The other method is brute force where I print a Cache trace, and manually
> decode srcs to the actual module.
>
> My question is, aside from the brute force method, is this possible, or are
> there easier ways?
>
> Thanks!
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>



-- 
----------
Korey L Sewell
Graduate Student - PhD Candidate
Computer Science & Engineering
University of Michigan
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to