Re: [PATCH v6 1/7] Add AutoFDO support for Clang build

2024-10-28 Thread Kees Cook
On Fri, Oct 25, 2024 at 10:14:03PM -0700, Rong Xu wrote: > Add the build support for using Clang's AutoFDO. Building the kernel > with AutoFDO does not reduce the optimization level from the > compiler. AutoFDO uses hardware sampling to gather information about > the frequency of execution of diffe

[PATCH v6 1/7] Add AutoFDO support for Clang build

2024-10-25 Thread Rong Xu
Add the build support for using Clang's AutoFDO. Building the kernel with AutoFDO does not reduce the optimization level from the compiler. AutoFDO uses hardware sampling to gather information about the frequency of execution of different code paths within a binary. This information is then used to