Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37213188rwd; Tue, 11 Jul 2023 10:58:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxqoA3Az9DaJzz/qra76TAhH6NM4fmRcvBKdt4yo2EnXDJBMvzILRhFIIERd5Wl1qkYrO3 X-Received: by 2002:a17:902:f68c:b0:1b8:17e8:547e with SMTP id l12-20020a170902f68c00b001b817e8547emr20580556plg.1.1689098297993; Tue, 11 Jul 2023 10:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689098297; cv=none; d=google.com; s=arc-20160816; b=gEE7iwtVmfqesb2Z38v3kV4nNuG5soc4x3rGpudYylWsTAH7nBRoDK9WO6be7On/rJ +fuxYHdz4LV2fLMmnDDSJx4uusVssZbGlzpCV9vJqn4VUTwT1UqTCmQWv4e3KK9qqnVn diPjs4bMj4QSPcw42Jv3UuZgeR/lT5J3Auoi8QpBBfEa7UWs3DpkO0Wzp8v/NDDA+vcT NUSP7biTxX+LR2wTix7Rf+zOID8t9KpuN1OLWpuxLj6F3Ic5TdcJtCmLTe401g8/+8fE zfTIYMPPVhZeji8AQV17YG/nWlH+rtaC6fyv/OWybinRAH1pcLGqYT5oikXHymmdzxcE KvAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xO1R3EOWkAR8j8h+Gg1K5h9tdH9j14wmL3Lrc7dKIYw=; fh=VBiiTGFsQQhquVGTTr6NIygiyIwrEbtbobXMGfg4BBA=; b=iz6r/a2fnzBUXPR1sIuFRsstvFTV+hnakimJKh6wjWwGoY0RXQdW70hPJV2rg/7L41 oZGhPLg2X3IrCJTi1a2/AXUdYht3AOpibRTmJOM1ykwmY0skEh4ac5qRaMVBxS7o1xZA qqZwNEnCncCijzD7HtB7uLa5oYUqy/YJJFC7yXcDVWkVuov8R0PejRuR0QGKfZpkqUyC NFdkul2+0Tj0RdLbUZoXVIJbg/vC0Q3NkQyL5QdwwA7uEPwvVQvlCb4AGxT7wLSFII9G Ok2aiDO5nCmSKhjXgA/V1hLuofAp1Ywffs6gNg7BIUUxO1m4auwimgZnT3Ggj0Q9puvx gEUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PZNeD789; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a17090341cc00b001b9ea5f0feesi1943984ple.453.2023.07.11.10.58.05; Tue, 11 Jul 2023 10:58:17 -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=@kernel.org header.s=k20201202 header.b=PZNeD789; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231573AbjGKRYU (ORCPT + 99 others); Tue, 11 Jul 2023 13:24:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbjGKRXs (ORCPT ); Tue, 11 Jul 2023 13:23:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319C5A6; Tue, 11 Jul 2023 10:23:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AE24D61596; Tue, 11 Jul 2023 17:23:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75D7BC433C8; Tue, 11 Jul 2023 17:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689096226; bh=zRaRZODsK04vezweUZ+H0PPfgi1k3wqQi7324zxQ/28=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PZNeD789rxo/FRL8fguXIaEhIdcb3NoIGN+R9irixNbC8LsCXOFUznWzq9WmhX658 ctLKt4COOixyfu+iv7gv3l9QC8KiJ43LdgPgDcE1w2J7wMHlQWTmN6JkCU9QtffkJi ofqDiuh+IIRXiX99OJNPoCjVQaYVaBtzcSdXCqRv0PuGoSZCDfIZHVpkMCK9Y2t1GI vvkbRprIdu8vTrPKKD7IRTCrO4yEdFk+gpmFbTGc26mgSAZvKXM3tPq/RUsz8NXAKQ Vua2j8OnCVr7Lflg091O7i0d7MqnHEfpV0YZTlcSdv52fPNSg3ivTTA+lEvAAClYgQ Rul1HsweoxsXQ== Date: Tue, 11 Jul 2023 19:23:24 +0200 From: Alexey Gladkov To: Namhyung Kim Cc: LKML , Arnd Bergmann , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, Palmer Dabbelt , James.Bottomley@hansenpartnership.com, acme@kernel.org, alexander.shishkin@linux.intel.com, axboe@kernel.dk, benh@kernel.crashing.org, borntraeger@de.ibm.com, bp@alien8.de, catalin.marinas@arm.com, christian@brauner.io, dalias@libc.org, davem@davemloft.net, deepa.kernel@gmail.com, deller@gmx.de, dhowells@redhat.com, fenghua.yu@intel.com, fweimer@redhat.com, geert@linux-m68k.org, glebfm@altlinux.org, gor@linux.ibm.com, hare@suse.com, hpa@zytor.com, ink@jurassic.park.msu.ru, jhogan@kernel.org, kim.phillips@arm.com, ldv@altlinux.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux@armlinux.org.uk, linuxppc-dev@lists.ozlabs.org, luto@kernel.org, mattst88@gmail.com, mingo@redhat.com, monstr@monstr.eu, mpe@ellerman.id.au, paulus@samba.org, peterz@infradead.org, ralf@linux-mips.org, sparclinux@vger.kernel.org, stefan@agner.ch, tglx@linutronix.de, tony.luck@intel.com, tycho@tycho.ws, will@kernel.org, x86@kernel.org, ysato@users.sourceforge.jp Subject: Re: [PATCH v4 4/5] tools headers UAPI: Sync files changed by new fchmodat2 syscall Message-ID: References: <22294b3b68050a70eaaa962eff46b8672bc2f7e8.1689092120.git.legion@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 11, 2023 at 10:19:35AM -0700, Namhyung Kim wrote: > Hello, > > On Tue, Jul 11, 2023 at 9:18 AM Alexey Gladkov wrote: > > > > From: Palmer Dabbelt > > > > That add support for this new syscall in tools such as 'perf trace'. > > > > Signed-off-by: Palmer Dabbelt > > Signed-off-by: Alexey Gladkov > > --- > > tools/include/uapi/asm-generic/unistd.h | 5 ++++- > > tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl | 2 ++ > > tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 2 ++ > > tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 ++ > > tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 2 ++ > > 5 files changed, 12 insertions(+), 1 deletion(-) > > It'd be nice if you route this patch separately through the > perf tools tree. We can add this after the kernel change > is accepted. Sure. No problem. > > > > diff --git a/tools/include/uapi/asm-generic/unistd.h b/tools/include/uapi/asm-generic/unistd.h > > index dd7d8e10f16d..76b5922b0d39 100644 > > --- a/tools/include/uapi/asm-generic/unistd.h > > +++ b/tools/include/uapi/asm-generic/unistd.h > > @@ -817,8 +817,11 @@ __SYSCALL(__NR_futex_waitv, sys_futex_waitv) > > #define __NR_set_mempolicy_home_node 450 > > __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node) > > > > +#define __NR_fchmodat2 452 > > +__SYSCALL(__NR_fchmodat2, sys_fchmodat2) > > + > > #undef __NR_syscalls > > -#define __NR_syscalls 451 > > +#define __NR_syscalls 453 > > > > /* > > * 32 bit systems traditionally used different > > diff --git a/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl b/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl > > index 3f1886ad9d80..434728af4eaa 100644 > > --- a/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl > > +++ b/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl > > @@ -365,3 +365,5 @@ > > 448 n64 process_mrelease sys_process_mrelease > > 449 n64 futex_waitv sys_futex_waitv > > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > > +# 451 reserved for cachestat > > +452 n64 fchmodat2 sys_fchmodat2 > > diff --git a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl b/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl > > index a0be127475b1..6b70b6705bd7 100644 > > --- a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl > > +++ b/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl > > @@ -537,3 +537,5 @@ > > 448 common process_mrelease sys_process_mrelease > > 449 common futex_waitv sys_futex_waitv > > 450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node > > +# 451 reserved for cachestat > > +452 common fchmodat2 sys_fchmodat2 > > diff --git a/tools/perf/arch/s390/entry/syscalls/syscall.tbl b/tools/perf/arch/s390/entry/syscalls/syscall.tbl > > index b68f47541169..0ed90c9535b0 100644 > > --- a/tools/perf/arch/s390/entry/syscalls/syscall.tbl > > +++ b/tools/perf/arch/s390/entry/syscalls/syscall.tbl > > @@ -453,3 +453,5 @@ > > 448 common process_mrelease sys_process_mrelease sys_process_mrelease > > 449 common futex_waitv sys_futex_waitv sys_futex_waitv > > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node sys_set_mempolicy_home_node > > +# 451 reserved for cachestat > > +452 common fchmodat2 sys_fchmodat2 sys_fchmodat2 > > diff --git a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl b/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl > > index c84d12608cd2..a008724a1f48 100644 > > --- a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl > > +++ b/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl > > @@ -372,6 +372,8 @@ > > 448 common process_mrelease sys_process_mrelease > > 449 common futex_waitv sys_futex_waitv > > 450 common set_mempolicy_home_node sys_set_mempolicy_home_node > > +# 451 reserved for cachestat > > +452 common fchmodat2 sys_fchmodat2 > > > > # > > # Due to a historical design error, certain syscalls are numbered differently > > -- > > 2.33.8 > > > -- Rgrds, legion