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

2020-06-17 Thread Saravana Kannan
On Wed, Jun 17, 2020 at 7:05 AM Will Deacon wrote: > > Hi all, > > On Wed, Jun 17, 2020 at 10:17:33AM +0200, Ard Biesheuvel wrote: > > On Tue, 16 Jun 2020 at 23:40, Will Deacon wrote: > > > On Fri, Jun 05, 2020 at 03:22:57PM -0700, Saravana Kannan wrote: > > > > This gives significant reduction

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

2020-06-17 Thread Will Deacon
Hi all, On Wed, Jun 17, 2020 at 10:17:33AM +0200, Ard Biesheuvel wrote: > On Tue, 16 Jun 2020 at 23:40, Will Deacon wrote: > > On Fri, Jun 05, 2020 at 03:22:57PM -0700, Saravana Kannan wrote: > > > This gives significant reduction in module load time for modules with > > > large number of

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

2020-06-17 Thread Ard Biesheuvel
On Tue, 16 Jun 2020 at 23:40, Will Deacon wrote: > > On Fri, Jun 05, 2020 at 03:22:57PM -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

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

2020-06-16 Thread Saravana Kannan
On Tue, Jun 16, 2020 at 2:40 PM Will Deacon wrote: > > On Fri, Jun 05, 2020 at 03:22:57PM -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

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

2020-06-16 Thread Will Deacon
On Fri, Jun 05, 2020 at 03:22:57PM -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

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

2020-06-05 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