News for hackers. Stuff that matters.
Re:Ask HN: Why the Linux Kernel doesn't have unit tests? by artursapek on Friday November 25, 2022 @09:52AM (#33742877)
> that syscall is called some 10^12 times per second globally?

wow. that blows my mind. is that the most frequently invoked piece of code in the world?

Re:Ask HN: Why the Linux Kernel doesn't have unit tests? by sph on Friday November 25, 2022 @10:20AM (#33743135)
Probably the context switch logic (save registers, switch to ring 0 mode, etc.) in the kernel might be. That's called for every syscall, up to thousands of times per second per active core.

It would be cool to know which is the most frequently called piece of code in the world. Maybe something that hasn't been changed in decades.

Re:Ask HN: Why the Linux Kernel doesn't have unit tests? by artursapek on Friday November 25, 2022 @10:29AM (#33743240)
I'm not qualified to do it, but someone should write a blog post figuring this out