x86_call_depth_emit_accounting
extern int x86_call_depth_emit_accounting(u8 **pprog, void *func, void *ip);
ip += x86_call_depth_emit_accounting(&prog, func, ip);
ip += x86_call_depth_emit_accounting(&prog, func, ip);
x86_call_depth_emit_accounting(&prog, NULL, image);
ip += x86_call_depth_emit_accounting(pprog, func, ip);