Message ID | 1685326994-11987-2-git-send-email-yangtiezhu@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1241934vqr; Sun, 28 May 2023 19:41:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GM6bwRYPYcLBlRGI30RsxqvaimlMLVJWmyBzhaN/ZUQtoXOU7Q1xyp6oITdY1X4Yj9svn X-Received: by 2002:a05:6a20:428e:b0:10b:8221:3348 with SMTP id o14-20020a056a20428e00b0010b82213348mr7791983pzj.50.1685328098756; Sun, 28 May 2023 19:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685328098; cv=none; d=google.com; s=arc-20160816; b=GhR2urOC/S0tQuBSlBdFRrXYaSMJNjGeSvmhZuO8KSR5tePakTbPe6/jEPOS9aTnit Z6LAadOcs63MVhOj0L+qUXnLTuNHsYojvKaGIeJcZihPc2T0+mb/7D93CEnNpHQ96TAc HiOW1kHfAkH4yIBWHtCdZnRcThDB7kg8uDGwlhVTKx2uKShhpgNdENJgq8rMU7B2+4yO LkIyO3r064aEIXyit8cI3WWLlqIZ3AFuRUSUI98cu4qULv39vOZxQ7vdlfXOwYrhC5ZN zp8u0DCd03+i2VTaS6LpP768mfHOastQVwafAU7VQeec9JplUmZfnyMdgJrSuEFtoliZ gt3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Pvwol2EoqavQ8Z0Unq65Wc2oIkc7E9XUrglfwqiJFT8=; b=zuGdT7NTISfZt2u6WNiRIg+dS7A361JwtwZ5nTuseSRmtwbusApfhEyG62pLOe+1Pw shGOMx2VBtku5MxTRZZtX3yl2KJFObj4uiNuoTGSYfN4VyDC2gYMDBDSaBjv64n/wzkA oEnscsQBHdJnGf/bE3SAclKqbyudnngk8ypRQop4zN0T4BiL6Em3aeKBP4gt4nNiwlHJ /xcKfd50e0wVk3rUDen7lK0c1zhRK1biikZv1NRw5qUff87e7Way10QnACI/jcbWKjQ5 Q6SMD6csMNUhDSjq0FLQZloRjM/1Opt/Nw9PZbgFxyqRionRC0MsbE6IQdpSO86GdXSZ wwGQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h28-20020aa79f5c000000b0064cecf7b981si8930891pfr.311.2023.05.28.19.41.27; Sun, 28 May 2023 19:41:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230328AbjE2CXh (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Sun, 28 May 2023 22:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbjE2CXb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 28 May 2023 22:23:31 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46284AD; Sun, 28 May 2023 19:23:29 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxBvGWDHRkRxkCAA--.5009S3; Mon, 29 May 2023 10:23:18 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxRrWSDHRkNzh+AA--.9081S3; Mon, 29 May 2023 10:23:17 +0800 (CST) From: Tiezhu Yang <yangtiezhu@loongson.cn> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com> Cc: Hans-Peter Nilsson <hp@axis.com>, Alexander Kapshuk <alexander.kapshuk@gmail.com>, Leo Yan <leo.yan@linaro.org>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, loongson-kernel@lists.loongnix.cn Subject: [PATCH v2 1/3] perf arm64: Rename create_table_from_c() to create_sc_table() Date: Mon, 29 May 2023 10:23:12 +0800 Message-Id: <1685326994-11987-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1685326994-11987-1-git-send-email-yangtiezhu@loongson.cn> References: <1685326994-11987-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8BxRrWSDHRkNzh+AA--.9081S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWruFykWryxAr47JryrWrW8tFb_yoWDuFg_CF WSgw1Du3y5Xr42vF1fGFn8ur92kw4UJ398JwsrWr9rt34SqFWDZryFva4kuF1YyFsYgrnI qrsxWr18AFs8ujkaLaAFLSUrUUUUob8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY C7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAa w2AFwI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2 jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW5 JVW7JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07jTq2NUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1767194596440147594?= X-GMAIL-MSGID: =?utf-8?q?1767194596440147594?= |
Series |
perf tools: Modify mksyscalltbl
|
|
Commit Message
Tiezhu Yang
May 29, 2023, 2:23 a.m. UTC
After commit 9854e7ad35fe ("perf arm64: Simplify mksyscalltbl"),
it has been removed the temporary C program and used shell to
generate syscall table, so let us rename create_table_from_c()
to create_sc_table() to avoid confusion.
Suggested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Sun, May 28, 2023 at 7:23 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote: > > After commit 9854e7ad35fe ("perf arm64: Simplify mksyscalltbl"), > it has been removed the temporary C program and used shell to > generate syscall table, so let us rename create_table_from_c() > to create_sc_table() to avoid confusion. > > Suggested-by: Leo Yan <leo.yan@linaro.org> > Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> > --- > tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > index 22cdf91..e530587 100755 > --- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > +++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl > @@ -19,7 +19,7 @@ if ! test -r $input; then > exit 1 > fi > > -create_table_from_c() > +create_sc_table() > { > local sc nr last_sc > > @@ -35,7 +35,7 @@ create_table() > { > echo "#include \"$input\"" > echo "static const char *syscalltbl_arm64[] = {" I know this isn't changed here, but this would be better as: echo "static const char *const syscalltbl_arm64[] = {" as the array itself, not just the strings, should never be changing. Thanks, Ian > - create_table_from_c > + create_sc_table > echo "};" > } > > -- > 2.1.0 >
diff --git a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl index 22cdf91..e530587 100755 --- a/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl +++ b/tools/perf/arch/arm64/entry/syscalls/mksyscalltbl @@ -19,7 +19,7 @@ if ! test -r $input; then exit 1 fi -create_table_from_c() +create_sc_table() { local sc nr last_sc @@ -35,7 +35,7 @@ create_table() { echo "#include \"$input\"" echo "static const char *syscalltbl_arm64[] = {" - create_table_from_c + create_sc_table echo "};" }