Skip to contentSkip to conversation

selftests/bpf: Optimize kallsyms cache

PATCH Applied Rong Tao 2 participants 2 messages Sep 7, 2023 – Sep 8, 2023

Subsystems (2)
lore
Share & tools
lore

Rong Tao

author
#0 lore raw

v12 cover selftests/bpf: Optimize kallsyms cache

From: Rong Tao <[email protected]>

We need to optimize the kallsyms cache, including optimizations for the number of symbols limit, and, some test cases add new kernel symbols (such as testmods) and we need to refresh kallsyms (reload or refresh).

Rong Tao (2):
selftests/bpf: trace_helpers.c: optimize kallsyms cache selftests/bpf: trace_helpers.c: Add a global ksyms initialization
mutex

 samples/bpf/Makefile                          |   4 +
 .../selftests/bpf/prog_tests/fill_link_info.c |   2 +-
 .../prog_tests/kprobe_multi_testmod_test.c    |  20 ++-
 tools/testing/selftests/bpf/trace_helpers.c   | 134 +++++++++++++-----
 tools/testing/selftests/bpf/trace_helpers.h   |   8 +-
 5 files changed, 122 insertions(+), 46 deletions(-)
Signature · 1 line
2.41.0
#1 lore raw
This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:

Hello:

This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:

Quoted 6 lines · On Thu, 7 Sep 2023 09:59:12 +0800 you wrote:

From: Rong Tao <[email protected]>

We need to optimize the kallsyms cache, including optimizations for the number of symbols limit, and, some test cases add new kernel symbols (such as testmods) and we need to refresh kallsyms (reload or refresh).

Quoted 6 lines

Rong Tao (2):
selftests/bpf: trace_helpers.c: optimize kallsyms cache selftests/bpf: trace_helpers.c: Add a global ksyms initialization
mutex

[...]

Here is the summary with links:
- [bpf-next,v12,1/2] selftests/bpf: trace_helpers.c: optimize kallsyms cache

    https://git.kernel.org/bpf/bpf-next/c/c698eaebdf47
  - [bpf-next,v12,2/2] selftests/bpf: trace_helpers.c: Add a global ksyms initialization mutex
    https://git.kernel.org/bpf/bpf-next/c/a28b1ba25934

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html