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
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 |
_______________________________________________
gem5-users mailing list
[email protected]http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users