Thread context swtich

7 views
Skip to first unread message

Etem

unread,
Apr 16, 2012, 9:13:13 AM4/16/12
to DynamoRIO Users
Hello,

Is there a mechanism in DR that it notifies the client whenever a
thread context swtich occurs?
What I want to do is finding the partial running times for each
thread.
For example, the (scheduler) context is changing from Thread 1 to
Thread 2, and I want to notified at this point.

--
Etem

Derek Bruening

unread,
Apr 16, 2012, 9:55:14 AM4/16/12
to dynamor...@googlegroups.com
On Mon, Apr 16, 2012 at 9:13 AM, Etem <etemd...@gmail.com> wrote:
Is there a mechanism in DR that it notifies the client whenever a
thread context swtich occurs?

No.  The underlying OS controls thread scheduling.

For example, the (scheduler) context is changing from Thread 1 to
Thread 2, and I want to notified at this point.

That doesn't sound like a thread context switch.  That sounds like the the app is changing which threads perform which work.  You would want to find where it does that and wrap that point.

- Derek

Reply all
Reply to author
Forward
0 new messages