Message ID | 1667982547-22331-1-git-send-email-yangtiezhu@loongson.cn |
---|---|
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 l7csp217091wru; Wed, 9 Nov 2022 00:32:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM7VbuJ/NKsyYIDgxMbdCN89/EToq3Ee7uENMssuP8UFGWDqeG9F6+VEpN0qbb5o8A1ubbq3 X-Received: by 2002:a63:5246:0:b0:42b:e4a5:7252 with SMTP id s6-20020a635246000000b0042be4a57252mr49774428pgl.566.1667982750940; Wed, 09 Nov 2022 00:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667982750; cv=none; d=google.com; s=arc-20160816; b=BV1hioQAdkhbz94CZnyi5d2MNqY/YF6eepvdLtBCfiNzPZnpseTR04+vMEvBzMJYKf juNR7YW81SdYoXqI5hXvsEHi7obl5nTC1dlalb58qcE1g149KHmrIHNuwJ4d9QZEP+1K pi56Kcy/Avzm5RKjXoF21tqhJAD913+ojZZjKv82yCsB8YiQYU0Zeul+MOhyY5Rivs+d wgy9IqQ+IXlj7kKa/HAm9Da5yfi66CaaNDUL0futv+HrrZR3wP647hFACXwnRQqRrx9Q gLJvAC1LR+j2Pa6yWaILoxdp0wIY/9duL4KtXvb15udKMM/rhySmXjHFd8yLTD4CznuX kF6g== 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=xW3rqtVhxNcoft9L6lQPwz0o0G+Vx5VvGD7bxeKZlko=; b=r8Q5bT7Ak8BQp7QWnFDjbKHPuuYieOZHeoY/eMumob66tYZMOA2u+je3X4mFED9VM/ zrbcq0WgrvarQKIfbhLvpTGsqWtUhRXX+LzVgdVyr5jTyviWgAplSqifwfip4+TYBO8Z kNvcQzq9mCQ5Nzjj6UCkRDXlsxIwcUKBu1fGhntTLIot+kL+2lbSVv37P43xTIIWMmVF Lx1jaBRdg2Vy6WaesdEtAPgj5tbNh+HtwGEDPXRSaS3TWKkch9owhiTGfPNClCP9dIja ITdcgSlcTQpGTq4XmVifr6RGj9C/9bUauzHOMDqV5L7sWusI3G2hWpeV25ZulR5O3zU+ yyIg== 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 n12-20020a63a50c000000b0046fbe60747asi18168305pgf.594.2022.11.09.00.32.17; Wed, 09 Nov 2022 00:32:30 -0800 (PST) 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 S229985AbiKIIao (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 03:30:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbiKIIaS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 03:30:18 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32E0D22539; Wed, 9 Nov 2022 00:29:18 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxTtvUZGtjboEFAA--.17857S3; Wed, 09 Nov 2022 16:29:08 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxtuPTZGtjJnIPAA--.42697S2; Wed, 09 Nov 2022 16:29:08 +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> Cc: Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH v4 0/4] perf: Add more syscalls to benchmark Date: Wed, 9 Nov 2022 16:29:03 +0800 Message-Id: <1667982547-22331-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxtuPTZGtjJnIPAA--.42697S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUPjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E 87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4c8EcI0En4kS14v26r1Y6r17MxAqzxv26xkF7I0En4kS14v26r126r1D MxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1l IxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2nYFDUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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?1749006680854253858?= X-GMAIL-MSGID: =?utf-8?q?1749006680854253858?= |
Series | perf: Add more syscalls to benchmark | |
Message
Tiezhu Yang
Nov. 9, 2022, 8:29 a.m. UTC
Tiezhu Yang (4): tools x86: Keep list sorted by number in unistd_{32,64}.h perf bench syscall: Introduce bench_syscall_common() perf bench syscall: Add getpgrp syscall benchmark perf bench syscall: Add execve syscall benchmark tools/arch/x86/include/uapi/asm/unistd_32.h | 23 ++++++--- tools/arch/x86/include/uapi/asm/unistd_64.h | 23 ++++++--- tools/perf/bench/bench.h | 2 + tools/perf/bench/syscall.c | 76 +++++++++++++++++++++++++++-- tools/perf/builtin-bench.c | 2 + 5 files changed, 108 insertions(+), 18 deletions(-)
Comments
Hello, On Wed, Nov 9, 2022 at 12:29 AM Tiezhu Yang <yangtiezhu@loongson.cn> wrote: > > Tiezhu Yang (4): > tools x86: Keep list sorted by number in unistd_{32,64}.h > perf bench syscall: Introduce bench_syscall_common() > perf bench syscall: Add getpgrp syscall benchmark > perf bench syscall: Add execve syscall benchmark Have you tested it on non-x86 too? It seems you only added the syscall numbers to x86. Thanks, Namhyung > > tools/arch/x86/include/uapi/asm/unistd_32.h | 23 ++++++--- > tools/arch/x86/include/uapi/asm/unistd_64.h | 23 ++++++--- > tools/perf/bench/bench.h | 2 + > tools/perf/bench/syscall.c | 76 +++++++++++++++++++++++++++-- > tools/perf/builtin-bench.c | 2 + > 5 files changed, 108 insertions(+), 18 deletions(-) > > -- > 2.1.0 >
On 11/10/2022 02:15 AM, Namhyung Kim wrote: > Hello, > > On Wed, Nov 9, 2022 at 12:29 AM Tiezhu Yang <yangtiezhu@loongson.cn> wrote: >> >> Tiezhu Yang (4): >> tools x86: Keep list sorted by number in unistd_{32,64}.h >> perf bench syscall: Introduce bench_syscall_common() >> perf bench syscall: Add getpgrp syscall benchmark >> perf bench syscall: Add execve syscall benchmark > > Have you tested it on non-x86 too? It seems you only added the syscall > numbers to x86. > Hi Namhyung, Thank you for your reply. I tested only on x86, when build on arm64, there exists the following build error: error: ‘__NR_getpgrp’ undeclared (first use in this function) this is because __NR_getpgrp is deprecated on some archs. Sorry for that, let me use getpgid, I will test on x86_64, arm64, mips64 and loongarch64, and then send v5, thank you. Thanks, Tiezhu