Hacker News new | past | comments | ask | show | jobs | submit login

Hardware breakpoints don't work if the kernel is doing the writes, because the kernel won't let you enable them globally so they trigger outside of your program.



If you use a decent kernel like Linux, there is an API to do that from userspace without requiring you to reboot your kernel under a debugger.


I don't think I'm familiar with that API. What is it?


It's part of perf_event, available since 2.6.33.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: