From patchwork Tue May 30 09:51:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 10014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2060763vqr; Tue, 30 May 2023 02:59:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LY4uaB3DPYp1gvv85VKVlYgQcWxrxaMaprCk/tuR32+pc/8aoBYn28p1oMeOBgJUlCn78 X-Received: by 2002:a17:902:ced1:b0:1b0:6038:2982 with SMTP id d17-20020a170902ced100b001b060382982mr1628049plg.41.1685440789900; Tue, 30 May 2023 02:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685440789; cv=none; d=google.com; s=arc-20160816; b=Txzm/+fGJocYurTT83J2xv687HNNXfhi981Jp6e8oe0L5BwNo9F3AqW0nVqsnxYzP/ Hs0Hw5zN3yjSGiQr4meS8h8e1q8nDlFmOIivt2P/zvmnFqPvcgm76DARXfvOp4qJDr8d 6aYKC5fFWutSIRt8wetULRH82Ds6xSC7267oFeOH3lFqj4hzapTtKuXHW+nWiAHZX6sn KaUZkRG6HM1JNBzjnNR2bCLICahS73MCPlBBmwyEC7KD+2QIPZkmt2RlZTgoHnRDmaat u6rwKxxPuCYJw1xrBeepkUfsE1fp7WhJdMC8qQTM1ZMRmu7DkaZE5Y3aK55JFpWACPmT a0zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=V5HgITB/TjeifWYpEpQestrSrHtk3E3YPIBfMryGckM=; b=chm+SZWgWuKZUxweUHloGKnmGHGOH1CExsNwBu4reVxdizhw1QCYVFlnDAtS3G2jBo fbvqZYbz4dX8tPcI7vIvi+wZFAx3mEggK6TYcJo7bUKNkAH3LFdiPd/ujnr56289x9Gz HzsBiK/HMkEvQBLvRCwBGZGNPwuLw1c1LVtTQg4vtaV44aGRlX5HYu/ZH+76Tlq1mR5T AdPOCn4S+qUOqFLkpp1Sg0JqY6BcplzghUN26kFdzrrjn8wRMFi6+1hKw/rCLVbibeWo Ecobt47eYQq/VyddwqVWm/KJ+bILjUIHvsBdWfYeG3FpedL9e24RhiIrVako3C+wEKn3 gyxg== 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 w11-20020a170902d70b00b001b06e17610fsi232703ply.321.2023.05.30.02.59.35; Tue, 30 May 2023 02:59: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; 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 S231231AbjE3JvR (ORCPT + 99 others); Tue, 30 May 2023 05:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbjE3JvN (ORCPT ); Tue, 30 May 2023 05:51:13 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C8585F1; Tue, 30 May 2023 02:51:09 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxmPEMx3VkO4QCAA--.5719S3; Tue, 30 May 2023 17:51:08 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxWdIJx3VkkmSAAA--.12317S2; Tue, 30 May 2023 17:51:06 +0800 (CST) From: Tiezhu Yang To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter Cc: 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 Subject: [PATCH v3 0/5] perf tools: Modify mksyscalltbl Date: Tue, 30 May 2023 17:51:00 +0800 Message-Id: <1685440265-7021-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxWdIJx3VkkmSAAA--.12317S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7XrWrtr17Jw4xCF1kGrWfKrg_yoWkKrg_CF Z2q3WDG3y5Xr47tFWfGFn8uFZ7tF4jqrn8XrsrWr9xJ34SqrZrXrWYv3y8uF4YqFW8Wry3 Cr45XryUAFZ8CjkaLaAFLSUrUUUUOb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY X7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUAVWUZwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAaw2AF wI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE 14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7 AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C2 67AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8JVW5 JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBI daVFxhVjvjDU0xZFpf9x07j3txhUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767312761513443462?= X-GMAIL-MSGID: =?utf-8?q?1767312761513443462?= Thanks Alexander, Leo and Ian for your reviews and suggestions. v3: -- Add a new patch to declare syscalltbl_*[] as const for all archs, suggested by Ian. -- Add a new patch to use max_nr to define SYSCALLTBL_ARM64_MAX_ID. v2: -- Add a new patch to rename create_table_from_c() to create_sc_table(), suggested by Leo. -- Simplify the shell script, suggested by Alexander. Tiezhu Yang (5): perf tools: Declare syscalltbl_*[] as const for all archs perf arm64: Rename create_table_from_c() to create_sc_table() perf arm64: Handle __NR3264_ prefixed syscall number perf arm64: Use max_nr to define SYSCALLTBL_ARM64_MAX_ID perf LoongArch: Simplify mksyscalltbl tools/perf/arch/arm64/entry/syscalls/mksyscalltbl | 17 ++++----- .../arch/loongarch/entry/syscalls/mksyscalltbl | 40 +++++++--------------- tools/perf/arch/mips/entry/syscalls/mksyscalltbl | 2 +- .../perf/arch/powerpc/entry/syscalls/mksyscalltbl | 2 +- tools/perf/arch/s390/entry/syscalls/mksyscalltbl | 2 +- tools/perf/arch/x86/entry/syscalls/syscalltbl.sh | 2 +- tools/perf/util/syscalltbl.c | 14 ++++---- 7 files changed, 32 insertions(+), 47 deletions(-)