Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3427845rwd; Mon, 29 May 2023 10:14:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PwUZ97Z4UVfm+hhGVOI1KPiy/YakpP9qeVeRqHZXvwAUBbYATqHnWxKr2yTprunX6wHmo X-Received: by 2002:a17:902:db02:b0:1ae:6135:a050 with SMTP id m2-20020a170902db0200b001ae6135a050mr14965174plx.19.1685380489293; Mon, 29 May 2023 10:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685380489; cv=none; d=google.com; s=arc-20160816; b=BsQVoQ0f1vwDrAs6fkt04kFJpSRuCMHurbX9XEsAlvptg79b2H1dp9khM6vjRpxxFc G2MP/Esr7RCECibGimqA1BtVgnBUHtFlX/eAeDpeTHGI8S5xk98UP5h9Ss4+YZCk0O5z pZGKmQL1fxqeJEbfKmZsYqrcv98tOFPJFIYbJDKTGnPx0sNDaDZOlCHXvwKS4fo/00Qp 7K06U7kATmWq/Fq2Tl4DwvPVxAdUErOa9JpvcT/8f3aD3inWuFZQlXe097xWol51TMm3 wYMbvrWiTvrjw/cG4inTrqxuWoUt1VOnYnUfvb6LpA2gOHv8DnfbupAUT2BjcwwmZfX9 JQgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rwoMfWi97obMRCWCH25odgr0RjnVbHr4fnSsN464Q64=; b=Otw5L0tbYshZnyn5l7dV7qO15tHurvmAdB5FefyBnwt5RxonvO1RB2U06vuV54um6y nEzhrsE2o1rLOffJgykH8/4brzbpvqRVjRgHivjTI32JB5Z4Jm0FE49I1MamLMv66HrH thh9P7bfjiCRiCIB94x79F9j5Wbfiirt+9csfvCaq0vNGo0dSAhjGLpmzim6/tlkcnrf b0pY+pQB7pTnK/GY2PcKzH6WFzCB1rOgkTSy3tkX7KaGWsN0ySKTmDZTSAd/Wu/is6uL VtfqAxWu7LHllSBxN/qHyyKt2pb9eEqpER5PV60lhvytCnEI7uR7aK8ILuvI5Jj9EMHp OTMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=cyKzIaN5; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj3-20020a170902850300b001a63e4ff6fbsi1374807plb.178.2023.05.29.10.14.34; Mon, 29 May 2023 10:14:49 -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; dkim=pass header.i=@google.com header.s=20221208 header.b=cyKzIaN5; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjE2RFp (ORCPT + 99 others); Mon, 29 May 2023 13:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjE2RFl (ORCPT ); Mon, 29 May 2023 13:05:41 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0EDAB7 for ; Mon, 29 May 2023 10:05:39 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-3f6a6e9d90dso304371cf.0 for ; Mon, 29 May 2023 10:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685379939; x=1687971939; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rwoMfWi97obMRCWCH25odgr0RjnVbHr4fnSsN464Q64=; b=cyKzIaN5n4IEkAWYqYcz7ARQulcXV517rngzKO5u7FJbqGglnmsxa6uu0JpVvC5mv+ HrBjREOjysA+0RaOYkpC/IvflK1p+OC4ovSrIoSOFhBwOZpoyLqwdNpwf4WQZvPT+E5K 8QhHCvRhSLyw6950wYUzsNiqUiCvrd4zslDt3WbS5T7gbEpJlph9pteggyLDcdZf43I1 kk+4QiwU2zyeM3PBrmCrD6bPxgaX//2rFPiSXXt+tLIhRVy3p4WmP4EGs/PqB/P78cFu pI/Hd4rc+JQxI4TDIsJLlpP4PKP2ZW8QzMy/DSXsYD0+dqUjVOM9CyywGwyXIrlFmZdE FAkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685379939; x=1687971939; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rwoMfWi97obMRCWCH25odgr0RjnVbHr4fnSsN464Q64=; b=UsXgRJwO/D10CNvIcydk2DJh047rUJUYXzpFTOWHohiJwe8k2hNvjeetxfzYnOxka/ XK2ipn2PQhND3/xK3pJeF4itF7VEeCX16Cp4III6il3+0wGsC5NGeh0B2KrUKNyuOmYn XdGAefxn6RBD2ifKzC8TiZ6437BnzIGPgome/ZRTAt/gY4mciYDi5PeRy8oEBiroldjQ d1vyVGMIrvlruK1Hsfrz8l/mTBtMTwihKCYb9dfqTuHP4edWsBcLXsZN/mPQndnW1137 65LRVeRfx8fgqDi8w+rrmeErpu5U/BCwXqzoeNQ9oNnIDjJhV22n1xZYvy1TtUgWvWoC LbtA== X-Gm-Message-State: AC+VfDxfLP68whzF/WLbzAwOOtyOwXj79frp2HcDTsmT4PedJ8jYydpH F3t1i5uAReyunSXkb/w4t5h+4zydATNrQUG29CioBA== X-Received: by 2002:ac8:4e8a:0:b0:3f3:9b0b:8750 with SMTP id 10-20020ac84e8a000000b003f39b0b8750mr361294qtp.17.1685379938842; Mon, 29 May 2023 10:05:38 -0700 (PDT) MIME-Version: 1.0 References: <1685326994-11987-1-git-send-email-yangtiezhu@loongson.cn> <1685326994-11987-2-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1685326994-11987-2-git-send-email-yangtiezhu@loongson.cn> From: Ian Rogers Date: Mon, 29 May 2023 10:05:26 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] perf arm64: Rename create_table_from_c() to create_sc_table() To: Tiezhu Yang Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Hans-Peter Nilsson , Alexander Kapshuk , Leo Yan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 28, 2023 at 7:23=E2=80=AFPM Tiezhu Yang 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 > Signed-off-by: Tiezhu Yang > --- > 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/pe= rf/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[] =3D {" I know this isn't changed here, but this would be better as: echo "static const char *const syscalltbl_arm64[] =3D {" 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 >