On Fri, Jul 08, 2022 at 09:10:54AM +0000, Emmanuel Dreyfus wrote: > On Thu, Jul 07, 2022 at 12:53:33AM +0000, Emmanuel Dreyfus wrote: > > This is NetBSD 9.2_STABLE on amd64. If the kernel is built with > > profiling (either config -p, or makeoptions PROF="-pg" and options > > GPROF), it crashes at boot with this panic: > > > > panic: patchfunc: sizes do not match (from=0xffffffff80f0d720) > > Here is a workaround, but perhaps the concept of patching the > binary is to be questioned. Is it just to save the performance > of a boolean test?
I think it's more than this; it's to use the right instruction on the right CPU. But I don't remember the details -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --