Hi all,

I am trying to get the software thread-ids per memory access in an
application. After some research I found out that this might be implemented
in ALPHA system. SO I modified the code a little bit to get the memory
trace per thread.

in src/mem/request.hh
I included additional variables to hold thread related info.

in src/cpu/simple/atomic.cc
in AtomicSimpleCPU::init() I tried to get thread_info and put it in request

Linux::ThreadInfo threadInfo(tc);
    ifetch_req.setThreadInfo(threadInfo.curTaskName(),
threadInfo.curTaskPID(), threadInfo.curTaskStart(),
threadInfo.curThreadInfo());
...

After that I print those info in corresponding trace flags. These values
are;
curTaskName() = ""
curTaskPID() = 0
curTaskStart() = 0
curThreadInfo() = 0

I think they do not provide any real info considering my application has
omp 4 threads.

My questions are;

1. Where is this functionality is implemented in ALPHA mode?
2. Any pointers on how I can get these values from kernel?

Any help on the matter is greatly appreciated.
Regards.

Mehmet
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to