[gem5-users] How to collect write/read request to L2cache in multiCPU se.py configuration.

2017-03-15 Thread 没名字
Hi ,gem5 users! I am using gem5 to collect write/read request to L2cache in multiCPU se.py configuration.I want to know the info about task id,cpu id,isWrite or isRead of each request sent from the cpu to the L2cache. I see the stats.txt,but it only contains the total number of in

[gem5-users] Question about using data from other Class's member function

2017-03-15 Thread 조원
Hello, I have created member functions in the FUPool Class ( Class in src/cpu/o3 ). So, I'm trying to use data from created member functions. This is my member functions.. bool FUPool::CPU0FUanalysis() // Additional Part { int pass_opnum2 = opnum2_cpu0; int pass_opsimd = opsimd_cpu0;

Re: [gem5-users] reset stats counters

2017-03-15 Thread Summer Deng
Thank you for your answer. My real question is about the stat reset function. What is that function? Can I call that function in the cpu code (src/cpu/o3/cpu.cc)? Thanks! Best, Summer On Mar 14, 2017, at 8:08 PM, Wei Shu wrote: > Find the global variable of instruction count and make a if cond

Re: [gem5-users] reset stats counters

2017-03-15 Thread Ferran Olid
Hi Summer, There's a library in /src/python/m5 called m5op.h that you can use in your benchmark to reset stats after N ticks. I am not quite sure if you can call it from the cpu source code. You can also call it in the /configs/common/Simulation.py file, although you may need to play a bit with m5

Re: [gem5-users] reset stats counters

2017-03-15 Thread Summer Deng
Thanks for your answer! But I am running gem5 in SE mode. I believe the m5op.h libraries can only be used in FS mode. I found some functions(e.g. statdump, statreset) in src/sim/stat_control.hh. Do you know whether these function will do that? How should I call these functions? Thank you! Best

Re: [gem5-users] reset stats counters

2017-03-15 Thread Ferran Olid
Hmmm true, I have never attempted to use it in SE mode, it makes sense it would not work there. About the stat_control.hh, I've never dealed with it before so I'm afraid I can't help you now. Cheers, Ferran O. On 15/03/17 17:18, Summer Deng wrote: > Thanks for your answer! > > But I am running g

Re: [gem5-users] reset stats counters

2017-03-15 Thread Serhat Gesoglu
Hello, I believe, you can use "m5_reset_stats" in SE mode, in your program. You may want to check util/m5/m5op.h and other related files in util/m5 directory. Cheers Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Summer Deng [csummer.

[gem5-users] gem5 building error

2017-03-15 Thread Summer Deng
Hi all, Has anyone met this error before when building gem5, especially when you migrate your gem5 repository to a new platform? I want to run gem5 on a new cluster but failed to build it. (I have deleted the build folder before I start rebuilding.) I've met this error before but I forgot how I fi

Re: [gem5-users] How to collect write/read request to L2cache in multiCPU se.py configuration.

2017-03-15 Thread Serhat Gesoglu
Hello, Packet objects (MemReq), holds all the information you need. In order to have the information, you should create a memory object sitting between between l1 and l2 caches. This page explains how to do that in detail: http://learning.gem5.org/book/part2/memoryobject.html. Hope this helps

Re: [gem5-users] gem5 building error

2017-03-15 Thread Summer Deng
Okay. I figured out. That error is because Mercurial is not installed on the cluster. I've fixed it. Thanks all the same! Best, Summer On Wed, Mar 15, 2017 at 1:48 PM, Summer Deng wrote: > Hi all, > > Has anyone met this error before when building gem5, especially when you > migrate your gem5

[gem5-users] How to collect write/read request to L2cache in multiCPU se.py configuration.

2017-03-15 Thread 没名字
Hi ,gem5 users! I am using gem5 to collect write/read request to L2cache in multiCPU se.py configuration.I want to know the info about task id,cpu id,isWrite or isRead of each request sent from the cpu to the L2cache. I see the stats.txt,but it only contains the total number of in

Re: [gem5-users] reset stats counters

2017-03-15 Thread Wei Shu
Hi Summer, I know that in fs simulation, we can call m5 reset to reset all the stats by some period of ticks. But I am not sure about the se simulation. Plus, your requirement is to reset stats after some number of instructions. That's what come up in my mind. Let's see if others have better id

[gem5-users] Alpha-TLB Questions

2017-03-15 Thread 刘天义
Hi all, I have 3 questions Q1: Does the "lookup" function search the vpn in both TLB and DRAM? file: src/arch/alpha/tlb.cc function: Fault TLB::translateData(RequestPtr req, ThreadContext *tc, bool write) code: // not a physical address: need to