#include <arm/profile.h>

arm/profile.h Kernel.framework

Block interrupts during mcount so that those interrupts can also be counted (as soon as we get done with the current counting). On the arm platfom, can't do splhigh/splx as those are C routines and can recursively invoke mcount.
3 macros

macroMCOUNT_INIT

#define MCOUNT_INIT 

macroMCOUNT_ENTER

#define MCOUNT_ENTER 
s = splhigh();

macroMCOUNT_EXIT

#define MCOUNT_EXIT 
(void) splx(s);