the loadKernel function reads in the kernel and builds a symbol table looking for the bsd_ast and current_thread symbols here:
https://code.google.com/p/rsc/source/browse/cmd/pprof_mac_fi...
then the "apply" func writes the modified binary instructions code:
the loadKernel function reads in the kernel and builds a symbol table looking for the bsd_ast and current_thread symbols here:
https://code.google.com/p/rsc/source/browse/cmd/pprof_mac_fi...
then the "apply" func writes the modified binary instructions code:
https://code.google.com/p/rsc/source/browse/cmd/pprof_mac_fi...