109
edits
Joel Reymont (talk | contribs) |
Joel Reymont (talk | contribs) No edit summary |
||
| Line 816: | Line 816: | ||
sudo ./cold.sh static-init.d | sudo ./cold.sh static-init.d | ||
</pre> | </pre> | ||
= Shark tips and tricks = | |||
=== CHUD signposts on Snow Leopard === | |||
There are no CHUD header files on Snow Leopard. If you're only interest is in emitting signposts, the easiest thing for you to do is switch to the syscall method instead. That'll also mean you won't have to link against the CHUD framework. The full details are in the Shark User Guide, but in brief: | |||
<pre> | |||
int err = syscall(SYS_kdebug_trace, APPSDBG_CODE(DBG_MACH_CHUD, <your code number>) | <type>, arg1, arg2, arg3, arg4); | |||
</pre> | |||
Types are DBG_FUNC_START, DBG_FUNC_END and DBG_FUNC_NONE (for point signposts). | |||
Don't forget to include <sys/kdebug.h> and <sys/syscall.h> for the necessary macros and function. | |||
= DTrace tips and tricks = | = DTrace tips and tricks = | ||
edits