mbox series

[PATCHv3,bpf-next,0/3] kallsyms: Optimize the search for module symbols by livepatch and bpf

Message ID 20230116101009.23694-1-jolsa@kernel.org (mailing list archive)
Headers show
Series kallsyms: Optimize the search for module symbols by livepatch and bpf | expand

Message

Jiri Olsa Jan. 16, 2023, 10:10 a.m. UTC
hi,
sending new version of [1] patchset posted originally by Zhen Lei.
It contains 2 changes that improove search performance for livepatch
and bpf.

v3 changes:
  - fixed off by 1 issue, simplified condition, added acks [Song]
  - added module attach as subtest [Andrii]

v2 changes:
  - reworked the bpf change and meassured the performance
  - adding new selftest to benchmark kprobe multi module attachment
  - skipping patch 3 as requested by Zhen Lei
  - added Reviewed-by for patch 1 [Petr Mladek]

thanks,
jirka


[1] https://lore.kernel.org/bpf/20221230112729.351-1-thunder.leizhen@huawei.com/
---
Jiri Olsa (2):
      selftests/bpf: Add serial_test_kprobe_multi_bench_attach_kernel/module tests
      bpf: Change modules resolving for kprobe multi link

Zhen Lei (1):
      livepatch: Improve the search performance of module_kallsyms_on_each_symbol()

 include/linux/module.h                                     |  6 ++++--
 kernel/livepatch/core.c                                    | 10 +---------
 kernel/module/kallsyms.c                                   | 13 ++++++++++++-
 kernel/trace/bpf_trace.c                                   | 93 +++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------
 kernel/trace/ftrace.c                                      |  2 +-
 tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c | 19 ++++++++++++++-----
 6 files changed, 79 insertions(+), 64 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 20, 2023, 1:30 a.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Mon, 16 Jan 2023 11:10:06 +0100 you wrote:
> hi,
> sending new version of [1] patchset posted originally by Zhen Lei.
> It contains 2 changes that improove search performance for livepatch
> and bpf.
> 
> v3 changes:
>   - fixed off by 1 issue, simplified condition, added acks [Song]
>   - added module attach as subtest [Andrii]
> 
> [...]

Here is the summary with links:
  - [PATCHv3,bpf-next,1/3] livepatch: Improve the search performance of module_kallsyms_on_each_symbol()
    https://git.kernel.org/bpf/bpf-next/c/07cc2c931e8e
  - [PATCHv3,bpf-next,2/3] selftests/bpf: Add serial_test_kprobe_multi_bench_attach_kernel/module tests
    https://git.kernel.org/bpf/bpf-next/c/edac4b5b185e
  - [PATCHv3,bpf-next,3/3] bpf: Change modules resolving for kprobe multi link
    https://git.kernel.org/bpf/bpf-next/c/6a5f2d6ee8d5

You are awesome, thank you!