profiling functions called in interrupt context