Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-04 Thread Ard Biesheuvel
On Sat, 4 Jul 2020 at 14:09, Will Deacon wrote: > > On Fri, Jul 03, 2020 at 05:47:24PM -0700, Saravana Kannan wrote: > > On Thu, Jul 2, 2020 at 8:30 AM Ard Biesheuvel wrote: > > > On Tue, 23 Jun 2020 at 03:27, Saravana Kannan > > > wrote: > > > > diff --git a/arch/arm64/kernel/module-plts.c >

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-04 Thread Will Deacon
On Fri, Jul 03, 2020 at 05:47:24PM -0700, Saravana Kannan wrote: > On Thu, Jul 2, 2020 at 8:30 AM Ard Biesheuvel wrote: > > On Tue, 23 Jun 2020 at 03:27, Saravana Kannan wrote: > > > diff --git a/arch/arm64/kernel/module-plts.c > > > b/arch/arm64/kernel/module-plts.c > > > index 65b08a74aec6..0c

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-03 Thread Saravana Kannan
On Thu, Jul 2, 2020 at 8:30 AM Ard Biesheuvel wrote: > > On Tue, 23 Jun 2020 at 03:27, Saravana Kannan wrote: > > > > When loading a module, module_frob_arch_sections() tries to figure out > > the number of PLTs that'll be needed to handle all the RELAs. While > > doing this, it tries to dedupe P

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-02 Thread Ard Biesheuvel
On Tue, 23 Jun 2020 at 03:27, Saravana Kannan wrote: > > When loading a module, module_frob_arch_sections() tries to figure out > the number of PLTs that'll be needed to handle all the RELAs. While > doing this, it tries to dedupe PLT allocations for multiple > R_AARCH64_CALL26 relocations to the

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-07-02 Thread Catalin Marinas
On Mon, 22 Jun 2020 18:18:02 -0700, Saravana Kannan wrote: > When loading a module, module_frob_arch_sections() tries to figure out > the number of PLTs that'll be needed to handle all the RELAs. While > doing this, it tries to dedupe PLT allocations for multiple > R_AARCH64_CALL26 relocations to t

Re: [PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-06-23 Thread Will Deacon
On Mon, Jun 22, 2020 at 06:18:02PM -0700, Saravana Kannan wrote: > When loading a module, module_frob_arch_sections() tries to figure out > the number of PLTs that'll be needed to handle all the RELAs. While > doing this, it tries to dedupe PLT allocations for multiple > R_AARCH64_CALL26 relocation

[PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-06-22 Thread Saravana Kannan
When loading a module, module_frob_arch_sections() tries to figure out the number of PLTs that'll be needed to handle all the RELAs. While doing this, it tries to dedupe PLT allocations for multiple R_AARCH64_CALL26 relocations to the same symbol. It does the same for R_AARCH64_JUMP26 relocations.