Hi,

I am working on x86 Full System simulation. My goal is to get the process
name (eg. /root/my_prog.elf) that runs within the simulated image for the
current instruction being simulated. Also, I would like to get the PID as
well.

I tried the following under the arch/x86/TLB.cc:: translate()
Process *processPtr= tc->getProcessPtr();
print (processPtr->progName() and processPtr->pid())

However, processPtr is always null, which invokes a segfault whenever I try
to access any of the member functions. The same lines are used within this
function, however, they are only invoked in case of SysCall Emulation mode
NOT FullSystem.

I came by this VERY old thread on gem5 mailing list:
https://www.mail-archive.com/gem5-users@gem5.org/msg08815.html , but I
could not find any implementation of the ProcessInfo class.

So, is there a way that I can print the progName and the PID of the
instruction in x86 FullSystem mode?

Thanks,
~Abdelrahman



--

*Best,Abdelrahman Hussein*
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to