Hi MinKyu Lee,

If you want to do this “properly”, I would suggest to use ProbePoints. There is 
a good infrastructure for getting this type of information, and the interface 
is very generic. You could create probe points in the CPU objects, and then 
register your custom probe to get the information. Have a look at the ArmPMU 
class which effectively relies on this to populate the performance counters.

Andreas

From: 이민규 <[email protected]<mailto:[email protected]>>
Reply-To: 이민규 <[email protected]<mailto:[email protected]>>, gem5 users 
mailing list <[email protected]<mailto:[email protected]>>
Date: Friday, 12 June 2015 02:26
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] To get O3CPU ptr in memory system.


Hello,



I'm using detailed cpu model to simulation and want to get cpu information 
(ipc, committed inst, and ..) in memory system. so, i get cpu pointer as follow:

system()->getThreadContext(0)->getCpuPtr()

But this pointer is baseCPU pointer, the baseCPU pointer does not have such 
info.  I want to FullO3CPU pointer.

How to get FullO3CPU pointer?



Thank you,

MinKyu Lee




[http://mail.naver.com/readReceipt/notify/?img=Us%2BrWrw5M62Yar35M6w0MotlF6KrFx3CFAuqF4twpop4Fo2ZKoJCpoKZKxtlpoigMX%2B0MoUX74lR74lcWNFlbX30WLloWrdQar%2B0WxER%2BBF0bNFgprkRFLlTb4b%3D.gif]

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to