Re: [PATCH v6 4/7] Add markers for text_unlikely and text_hot sections

Kees Cook
2024-10-28T23:56:53Z

On Fri, Oct 25, 2024 at 10:14:06PM -0700, Rong Xu wrote:
> Add markers like __hot_text_start, __hot_text_end, __unlikely_text_start,
> and __unlikely_text_end which will be included in System.map. These markers
> indicate how the compiler groups functions, providing valuable information
> to developers about the layout and optimization of the code.
>
> Co-developed-by: Han Shen <shenhan@google.com>
> Signed-off-by: Han Shen <shenhan@google.com>

Yup, this is good.

Reviewed-by: Kees Cook <kees@kernel.org>

--
Kees Cook