Re: [PATCH] livepatch: match symbols exactly in klp_find_object_symbol()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 13, 2023 at 8:16 AM Petr Mladek <pmladek@xxxxxxxx> wrote:
>

[...]

>
> I agree that it is a slow path.
>
> Well, Zhen put a lot of effort into the optimization. I am not sure
> what was the primary motivation. But it would be harsh to remove it
> without asking.
>
> Zhen, what was the motivation for the speedup of kallsyms, please?
>

I took a closer look at the code. kallsyms_on_each_match_symbol()
is only used by livepatch. So indeed it doesn't make sense to drop
all the optimizations by Zhen.

I got another solution for this. Will send it shortly.

Thanks,
Song

>
> > OTOH, this version is simpler and should work just as
> > well.
>
> Sure. But we should double check Zhen's motivation.
>
> Anyway, iterating over all symbols costs a lot. See also
> the commit f5bdb34bf0c9314548f2d ("livepatch: Avoid CPU hogging
> with cond_resched").




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux