From patchwork Fri May 19 07:17:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 96213 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1054793vqo; Fri, 19 May 2023 00:43:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MnWHvUMKV182BTMuduMUO7L66qlUotdslgBps3V2Vp6UI04Z9zegMe0QKlKOLADXckbJY X-Received: by 2002:a17:902:e808:b0:1a1:cb18:7f99 with SMTP id u8-20020a170902e80800b001a1cb187f99mr1900549plg.30.1684482200884; Fri, 19 May 2023 00:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684482200; cv=none; d=google.com; s=arc-20160816; b=CgYQpjpnclxpQDjTAOziTW6N11kIxREomnlem4fzhNkvXfQTl1nwfwIFBPoPn29o0j +HOmiBCpisEngbxqXF64DronyWJfKM4g0Y/AUQF4DlR5P20W4RN0FJskwIx1EZU+E95Y vHrUY7meRoP5Y+C20F0J2nrY6DB7ui2dnXEFZ7r69UkzAKR+X9mWw8KYnKgLqOBTM4L+ Tm4EtabUqTazXrIHxezlAKEWfUwaZJuPJQs21Eg/svbNBCLfJLDqbPnveE17Rfmmo7xw q7Sb+tAYo+DhHAKyoCqfgOaF0lSDlCbyl7ON7WJDRJWtwNcLXr+3itMaX/ld1GPKhI0B cZtQ== 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=BfuNldp14pRQssAxdwVLFngDOiiJkpNPdVccVmpBRqQ=; b=xYHfvVGZk7LQvHIfzhQTzWkXWqYY+kex705TaDA2SPJgAcS95V9f0ZM+4zNM5AiATm 4rtKcRWBMsCmVJuLR+CXP7xwBYl2UlkRTLfjj+vPQ4de/uSl/JDj+s0SmiJZ0K9h+JEK AHDmiwWejSEs8WI2WMr14neC2/pST9QoQ8O9K194QtUdRk7Yq+R7Huqf1khpgSTsEmd/ 7YpRWmVoQikkrHng6qS+/IgM8q9X2bFf0KaC3LOwSVsecfmTKWJK5dy1iaeMlXcnLf6i InervmoVZw3vp7/PbnEa6vvUqKnUw88FGQBzIXCyKp87hZQW3CPzR+T4AHOVnP8zj1k9 XSrw== 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 u16-20020a17090341d000b001aad6d5f016si3429346ple.536.2023.05.19.00.43.07; Fri, 19 May 2023 00:43:20 -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 S229531AbjESHR5 (ORCPT + 99 others); Fri, 19 May 2023 03:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbjESHRx (ORCPT ); Fri, 19 May 2023 03:17:53 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2519510EF; Fri, 19 May 2023 00:17:47 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxNPCaImdkSxkKAA--.17655S3; Fri, 19 May 2023 15:17:46 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxFLGXImdk2IhpAA--.47656S2; Fri, 19 May 2023 15:17:44 +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: Naresh Kamboju , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH] perf bench syscall: Fix __NR_execve undeclared build error Date: Fri, 19 May 2023 15:17:37 +0800 Message-Id: <1684480657-2375-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxFLGXImdk2IhpAA--.47656S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWrZw4xXrWxurWrXF1rJF18Xwb_yoWkGwb_Za 12qws7Cry8Zr9rtr15Ar4kWF1fua1UWFyvvrnagw43Cr4qqF1UGan5u3s7Jr1qkan2vr4f Ca93Xrn0vw1kKjkaLaAFLSUrUUUUYb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY C7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAa w2AFwI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2 jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWU CVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07jTq2NUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766307608071908449?= X-GMAIL-MSGID: =?utf-8?q?1766307608071908449?= The __NR_execve definition for i386 was deleted by mistake in the commit ece7f7c0507c ("perf bench syscall: Add fork syscall benchmark"), add it to fix the build error on i386. Fixes: ece7f7c0507c ("perf bench syscall: Add fork syscall benchmark") Reported-by: Linux Kernel Functional Testing Closes: https://lore.kernel.org/all/CA+G9fYvgBR1iB0CorM8OC4AM_w_tFzyQKHc+rF6qPzJL=TbfDQ@mail.gmail.com/ Tested-by: Naresh Kamboju Signed-off-by: Tiezhu Yang --- tools/arch/x86/include/uapi/asm/unistd_32.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/arch/x86/include/uapi/asm/unistd_32.h b/tools/arch/x86/include/uapi/asm/unistd_32.h index b8ddfc4..bc48a4d 100644 --- a/tools/arch/x86/include/uapi/asm/unistd_32.h +++ b/tools/arch/x86/include/uapi/asm/unistd_32.h @@ -2,6 +2,9 @@ #ifndef __NR_fork #define __NR_fork 2 #endif +#ifndef __NR_execve +#define __NR_execve 11 +#endif #ifndef __NR_getppid #define __NR_getppid 64 #endif