Hacker News new | ask | show | jobs
by titzer 1219 days ago
Why is profiling done in the kernel for userspace stacks?
1 comments

because this is about PMU based sampling, which involves triggering interrupts at some interval and doing the sampling while handling the interrupt
Other than overhead, what is the advantage as opposed to handling the interrupt in the kernel and then delivering a signal to userspace? After all, isn't this the role of SIGPROF?