Re: [Gems-users] Tracing TLB Misses


Date: Mon, 20 Nov 2006 13:09:32 -0600
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Tracing TLB Misses
I think this probably wasn't meant for the gems-users list =).
I logged in and changed Luke's password to something else. I'll give Luke the new password personally.

Regards,
Dan Gibson

Philip Garcia wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

okay, I set you up an account on my workstation 3632-10.ece.wisc.edu. The username is lyen and the password is lyen2006. I have also gone ahead and added a symlink to gems in your directory called luke-simics. I have tested, and opal appears to compile fine in there. in simics/home/MOESI_CMP_directory there's a runme script i've been launching simics with that sets the parameters, and loads the image. I should be able to stop by a bit after 3. One of my labmates is giving a practice defense, and so I want to goto that for a bit before I run off.

Phil
On Nov 20, 2006, at 10:19 AM, Luke Yen wrote:

Hi Nikolas,

The way to do this is to register an exception callback so that Simics
can inform you whenever it is about to take an exception, and when
the exception completes:

    SIM_hap_register_callback("Core_Exception", (cb_func_no_t)
ctrl_exception_start, (void *) NULL);
  SIM_hap_register_callback("Core_Exception_Return", (cb_func_no_t)
ctrl_exception_done, (void *) NULL);

   You can do this using a Python script (independent of Opal or Ruby,
useful if you just want to profile without loading those modules). or do
this using C code in Ruby or Opal.

Then Simics will call ctrl_exception_start() before each exception (including TLB), and ctrl_exception_done() after each exception completes. Arguments for
the callback functions are:

  void ctrl_exception_start(void* desc, void* cpu, integer_t val)

where val is the exception number. Again you can implement the callback
functions in python or C code.

  Regards,
  Luke

On Mon, 20 Nov 2006 nikolaos@xxxxxxxxxx wrote:

Hi all,

I need to trace TLB misses (both D-TLB and I-TLB), and searching through the source code I found the pseq_t::postException function. Would it be correct to use this function to trace when the Fast_Data_Access_MMU_Miss (0x68) and Fast_Instruction_Access_MMU_Miss (0x64) exceptions happen? Is postException
called for all exceptions that happen in Opal-Ruby?

Thanks a lot,

Nikolas Galanis
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFYfstkSK2LwjyZ3wRAsR8AKCJu93TkgsgrJrKhx7lypU2EFt5PACffiCZ
bMX75GDTsrFFV2bPydmsF/A=
=zLbw
-----END PGP SIGNATURE-----
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


--
http://www.cs.wisc.edu/~gibson [esc]:wq!

[← Prev in Thread] Current Thread [Next in Thread→]