Message ID | 20221102084921.1615-2-thunder.leizhen@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3494366wru; Wed, 2 Nov 2022 01:54:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ORr+mne/dJ4lXtc6mKcsd5wv1sUka+kgtgnJK5sKdPh1nozYBhq4rgt3Xga6cuFvYA29f X-Received: by 2002:a17:906:6a13:b0:7ad:b598:9a52 with SMTP id qw19-20020a1709066a1300b007adb5989a52mr21022689ejc.205.1667379255443; Wed, 02 Nov 2022 01:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667379255; cv=none; d=google.com; s=arc-20160816; b=r5wiDkE33qb3sINrA3N0Fyw/B8DuTgyImVa10Sf1Hgh1KymWyOLrm2xyCaQsw4wrrh uyEslQnMMVit7ulgEyFo4dIg3NhblwQvRcfDMbANoKFH3J724Xjzv6jwK+fUpOa8dY/Y /bHSdU51gKIFF/PSK54cYoeFIr/lrRzpBQhmAllq78XsHRKF2X6LQXfdqXrlUq6+yZmj jo1nOyVLysDwq3qr/QCXCKAg9We+oNwCqtO3UZMbLsbVNlWg/FuyXgKdcGVceS7Dqavy kOiHq8fCJKGJIVzsBw4YF05qeovx2zd5NrZzC/WGHpuRQ9GlbG4qKEYNGMimS/FQyC8U D3oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=27ivNInO1WNZHSaFBcLCEgzvlo2LVYUDZnP7WEvjbqs=; b=FVoqFn9dxgFJEDHVJ4T72t1rR9raXlZcC4SMVE3xnODN0qkjecWj0iIlQ+wRv8WXVN /6BS2XUUW67cpw3HuXFdwC+1Yhy9BgzziD+5RpL9nn4hxMkb43BPVh14Zx0wwqGQDoia NLLPexLHaOvoPRpFm1c3qPS0HZKhAwAvBaFEK2YzoOLw/mFpZ8Edfb7CE6sO1NdGUHX5 hI6DriFlxZ+QUQF4+1hxu5fe6GXxIKj/0dOYmlaM0AJS0gNmXiOegSt2C1vgiRcp1JL2 b8ZmBXT/6H1h/J/vUzEIa3DdJkCWitwy64Lq0DYTLiEaAnMPuC/Gl31UhfEjnN3dGxQj QIaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg39-20020a170907a42700b00730870cb4b6si16489716ejc.621.2022.11.02.01.53.51; Wed, 02 Nov 2022 01:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbiKBIub (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Wed, 2 Nov 2022 04:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiKBIu3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Nov 2022 04:50:29 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DC925E8C; Wed, 2 Nov 2022 01:50:27 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N2LFB28ZwzmVZb; Wed, 2 Nov 2022 16:50:22 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 2 Nov 2022 16:50:26 +0800 Received: from thunder-town.china.huawei.com (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 2 Nov 2022 16:50:24 +0800 From: Zhen Lei <thunder.leizhen@huawei.com> To: Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com>, <live-patching@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Masahiro Yamada <masahiroy@kernel.org>, Alexei Starovoitov <ast@kernel.org>, Jiri Olsa <jolsa@kernel.org>, Kees Cook <keescook@chromium.org>, Andrew Morton <akpm@linux-foundation.org>, "Luis Chamberlain" <mcgrof@kernel.org>, <linux-modules@vger.kernel.org>, "Steven Rostedt" <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com> CC: Zhen Lei <thunder.leizhen@huawei.com>, David Laight <David.Laight@ACULAB.COM> Subject: [PATCH v8 1/9] scripts/kallsyms: rename build_initial_tok_table() Date: Wed, 2 Nov 2022 16:49:13 +0800 Message-ID: <20221102084921.1615-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 In-Reply-To: <20221102084921.1615-1-thunder.leizhen@huawei.com> References: <20221102084921.1615-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748373870169606139?= X-GMAIL-MSGID: =?utf-8?q?1748373870169606139?= |
Series |
kallsyms: Optimizes the performance of lookup symbols
|
|
Commit Message
Zhen Lei
Nov. 2, 2022, 8:49 a.m. UTC
Except for the function build_initial_tok_table(), no token abbreviation is used elsewhere. $ cat scripts/kallsyms.c | grep tok | wc -l 33 $ cat scripts/kallsyms.c | grep token | wc -l 31 Here, it would be clearer to use the full name. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by: Petr Mladek <pmladek@suse.com> --- scripts/kallsyms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 03fa07ad45d95b8..ab105bdde4efe4f 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -573,7 +573,7 @@ static void forget_symbol(const unsigned char *symbol, int len) } /* do the initial token count */ -static void build_initial_tok_table(void) +static void build_initial_token_table(void) { unsigned int i; @@ -698,7 +698,7 @@ static void insert_real_symbols_in_table(void) static void optimize_token_table(void) { - build_initial_tok_table(); + build_initial_token_table(); insert_real_symbols_in_table();