Hi Ali,


I have dig into the source code checked every appearance of "enable_context_switch_stats_dump" and "enableContextSwitchStatsDump" and found the only place where i could toggle it was: 

enable_context_switch_stats_dump = Param.Bool(True, "enable stats/task info dumping at context switch boundaries") in ArmSystem.py. 


After doing this as shown above, in the config.ini file I still get this as : enable_context_switch_stats_dump=false.


Can you please guide me about this?


2ndly, It would be so nice of you, If you kindly give me the steps of applying the given patch to my disk image "linux-arm-ael.img" file?


lastly, will the output of my interest be in system.tasks.txt in the output directory? as it say here: http://gem5.org/Streamline ??? do i need to use any trace/debug flag for it?


Thank you Ali for your response. It was really useful.


Best regards,


--------- 원본 메일 ---------
보낸사람: Ali Saidi <[email protected]>
받는사람 : tod <[email protected]>
날짜: 2013년 5월 11일 토요일, 23시 35분 33초 +0900
제목: Re: [gem5-users] gem5 FS mode and threads
There is an parameter to the ArmSystem object called enable_context_switch_stats_dump which you'd need to set to true.

To get the vales you mentioned the simulator needs to know where to look for them, so you need to add some symbols to a newly compiled version of the kernel. Something like:

http://repo.gem5.org/linux-patches/file/0ab58d9bd9a5/m5/m5struct.diff

Ali


On Apr 29, 2013, at 6:58 AM, tod <[email protected]> wrote:

Hi,
More specifically, I am considering ARM and have the following questions:

How to dump stats at context switches? I know it is something about callback for __switch_to(), but how and what exactly?

How to dump process info (pid, tgid, task name, cpu id, etc.) at context switches ?

Thanks for reading, I would appreciate any help..

best,

--------- 원본 메일 ---------
보낸사람: Ali Saidi <[email protected]>
받는사람 : gem5 users mailing list <[email protected]>
날짜: 2013년 4월 24일 수요일, 11시 18분 45초 +0900
제목: Re: [gem5-users] gem5 FS mode and threads
Depends on what you're after. You can have gem5 create an ever on linux's __switch_to function and see what thread is running on which core by inspecting some kernel data structures. This is done for Alpha and for ARM.

Ali



On Apr 23, 2013, at 6:16 AM, tod <[email protected]> wrote:

hi everyone!

what information can we get about threads execution (using pthread) in gem5 FS mode? And how?

can anybody comment about it?

best.

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

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






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

Reply via email to