Re: [Gems-users] Thread assignment to cores


Date: Thu, 15 Oct 2009 20:32:10 -0400
From: sjafri@xxxxxxxxxx
Subject: Re: [Gems-users] Thread assignment to cores
Not sure but check out this function:

void SimicsHypervisor::modePrivilegeToUser


Gets called by simics when a core moves from privileged mode to user(i think). 
You can identify a context switch in there by comparing tids


Ali


Quoting niranjan soundararajan <niranjan83@xxxxxxxxx>:

> Hello,
> 
> On a context switch (thread blocks or completes execution or timer
> interrupt), I need to disable a core for certain period. Is that possible
> without involving kernel changes?
> I know SIM_stall disables a core but is it possible to identify a context
> switch and prevent a new context from being assigned to the core .
> 
> Thank you,
> Niranjan
> 


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