- Joined
- Jul 30, 2007
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hi,
A have a question about tracing context switch events on Mac OS 10.5 based on dtrace. I would like to ask a more general question about Mach and then describe my specific question.
My generl question about Mach is: Does all system call of Darwin finally call some mach_kernel methods? I'm new to Mac and not very clear about the relationship between Mach and Darwin.
My specific question about tracing context switch events is to figure out the right dtrace probes I shall enable. Since I cannot find sched provider on Mac OS 10.5, I want to turn to find the corresponding mach_kernel calls and enable them according to fbt provider. I found a mach_kernel naming thread_switch but I'm not sure whether other mach_kernel methods will result in the context switch. Or other system calls besides mach_kernel calls?
Any ideas about these two questions are appreciated.
A have a question about tracing context switch events on Mac OS 10.5 based on dtrace. I would like to ask a more general question about Mach and then describe my specific question.
My generl question about Mach is: Does all system call of Darwin finally call some mach_kernel methods? I'm new to Mac and not very clear about the relationship between Mach and Darwin.
My specific question about tracing context switch events is to figure out the right dtrace probes I shall enable. Since I cannot find sched provider on Mac OS 10.5, I want to turn to find the corresponding mach_kernel calls and enable them according to fbt provider. I found a mach_kernel naming thread_switch but I'm not sure whether other mach_kernel methods will result in the context switch. Or other system calls besides mach_kernel calls?
Any ideas about these two questions are appreciated.