tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Re: Profiling broken on x86?
On Fri, Jul 08, 2022 at 11:55:13AM +0200, Manuel Bouyer wrote:
> 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
This tests a CPU features at boot time, and replaces a generic implementation
by a CPU-optimized one.
Indeed it brings maximum performance because there is no CPU feature test
at runtime, but it comes with a price. Profilig and debugging are broken,
for instance.
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index