Message ID | tencent_F04BD6C8A5A70AD82BCCE820E2B2419CD006@qq.com |
---|---|
Headers | show
Return-Path: <linux-kselftest-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8A92CA1000 for <linux-kselftest@archiver.kernel.org>; Tue, 5 Sep 2023 16:07:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238936AbjIEQHL (ORCPT <rfc822;linux-kselftest@archiver.kernel.org>); Tue, 5 Sep 2023 12:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354750AbjIEOFB (ORCPT <rfc822;linux-kselftest@vger.kernel.org>); Tue, 5 Sep 2023 10:05:01 -0400 Received: from out203-205-221-173.mail.qq.com (out203-205-221-173.mail.qq.com [203.205.221.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B11B198 for <linux-kselftest@vger.kernel.org>; Tue, 5 Sep 2023 07:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1693922690; bh=j++hW7hBYNWYYglVpF7psTQmZPPLAOIfD9k/RR4Upqo=; h=From:To:Cc:Subject:Date; b=j/IQUsC/EESb1q4AeQqU+dalDf3SFgdICLJLidLNdHH/dmA7L6uu2NoJ69b1WRI78 YCf1YOqU697fkBXLLMfHENx5MzIrz5rTTFGcXJy+m69qGDCB9AMvh2mUarg9xB7ZIs 2XAfURCSWuMxSat+50a+2rLQ9QkQG5JHLXHuuBZE= Received: from rtoax.lan ([120.245.114.157]) by newxmesmtplogicsvrszc2-0.qq.com (NewEsmtp) with SMTP id 12C80033; Tue, 05 Sep 2023 22:04:44 +0800 X-QQ-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q65RZqSIu35JcLgT2tZ4oEc+vE9AFc7Mebs5asUE5 X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Rong Tao <rtoax@foxmail.com> To: olsajiri@gmail.com, andrii@kernel.org, daniel@iogearbox.net, sdf@google.com Cc: Rong Tao <rongtao@cestc.cn>, Alexei Starovoitov <ast@kernel.org>, Martin KaFai Lau <martin.lau@linux.dev>, Song Liu <song@kernel.org>, Yonghong Song <yonghong.song@linux.dev>, John Fastabend <john.fastabend@gmail.com>, KP Singh <kpsingh@kernel.org>, Hao Luo <haoluo@google.com>, Jiri Olsa <jolsa@kernel.org>, Mykola Lysenko <mykolal@fb.com>, Shuah Khan <shuah@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Yafang Shao <laoar.shao@gmail.com>, bpf@vger.kernel.org (open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)), linux-kernel@vger.kernel.org (open list), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH bpf-next v11 0/2] selftests/bpf: Optimize kallsyms cache Date: Tue, 5 Sep 2023 22:04:17 +0800 X-OQ-MSGID: <cover.1693922135.git.rongtao@cestc.cn> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kselftest.vger.kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org |
Series |
selftests/bpf: Optimize kallsyms cache
|
expand
|
From: Rong Tao <rongtao@cestc.cn> 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 | 136 +++++++++++++----- tools/testing/selftests/bpf/trace_helpers.h | 9 +- 5 files changed, 126 insertions(+), 45 deletions(-)