XNU


DTrace and Mac OS X PDF Print E-mail
Written by Alexander Stavonin   
Saturday, 13 February 2010 05:43

Introduction.

The main article's goal is the complete overview of DTrace from its architecture to DTrace scripts development and libdtrace library use. This article provides examples of DTrace scripts that can be used for software optimization and collecting information about applications in real time. All examples were tested in Mac OS C 10.6.

Last Updated on Tuesday, 08 June 2010 02:07
Read more...
 
How to obtain processes list PDF Print E-mail
Written by Alexander Stavonin   
Friday, 22 January 2010 14:42

There are two ways for processes list obtaining on Mac OS X (at least, I know two ways).

Let's start from the first way, which is easier but potentially has bugs. In BSD part (it is BSD part which manages processes in Mac OS X) of XNU kernel there is kinfo_proc structure that contains a lot of processes information including such information like process’ PID and name.

Last Updated on Saturday, 23 January 2010 13:19
Read more...