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

2024-11-04 Thread Peter Jung
to execute the "module_install" step? Thanks, Han On Sat, Nov 2, 2024 at 12:53 PM Peter Jung wrote: On 02.11.24 20:46, Peter Jung wrote: On 02.11.24 18:51, Rong Xu wrote: Add the build support for using Clang's AutoFDO. Building the kernel with AutoFDO does not reduce the optim

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

2024-11-04 Thread Peter Jung
M=1 CLANG_AUTOFDO_PROFILE=$(pwd)/perf.afdo" \ makepkg -s --skipinteg --skippgp 6. install and reboot The above steps succeeded. You mentioned the error happens at "module_install", can you instruct me how to execute the "module_install" step? Thanks, Han On Sa

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

2024-11-05 Thread Peter Jung
I have tested your provided method, but the AutoFDO profile (lld does not get lto-sample-profile=$pathtoprofile passed) I see. You also turned on ThinLTO, which I didn't, so the profile was only used during compilation, not passed to lld. Thanks, Han On Mon, Nov 4, 2024 at 9:31 A

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

2024-11-05 Thread Peter Jung
You were right - reverting commit: https://github.com/bminor/binutils-gdb/commit/b20ab53f81db7eefa0db00d14f06c04527ac324c from the 2.43 branch does fix the packaging. I will forward this to an issue at their bugzilla. On 05.11.24 15:33, Peter Jung wrote: Hi Rong, Glad that you were able to

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

2024-11-05 Thread Peter Jung
Here the bugreport, in case someone wants to track it: https://sourceware.org/bugzilla/show_bug.cgi?id=32340 On 05.11.24 15:56, Peter Jung wrote: You were right - reverting commit: https://github.com/bminor/binutils-gdb/commit/ b20ab53f81db7eefa0db00d14f06c04527ac324c from the 2.43 branch

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

2024-11-02 Thread Peter Jung
gested-by: Nick Desaulniers Suggested-by: Stephane Eranian Tested-by: Yonghong Song Tested-by: Yabin Cui Tested-by: Nathan Chancellor Reviewed-by: Kees Cook Tested-by: Peter Jung

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

2024-11-02 Thread Peter Jung
On 02.11.24 20:46, Peter Jung wrote: On 02.11.24 18:51, 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 frequen