can't find file to patch at input line 85 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From patchwork Thu Aug 5 19:04:02 2021 |Content-Type: text/plain; charset="utf-8" |MIME-Version: 1.0 |Content-Transfer-Encoding: 8bit |X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= | |X-Patchwork-Id: 44590 |Return-Path: |X-Original-To: patchwork@sourceware.org |Delivered-To: patchwork@sourceware.org |Received: from server2.sourceware.org (localhost [IPv6:::1]) | by sourceware.org (Postfix) with ESMTP id B15723886C76 | for ; Thu, 5 Aug 2021 19:05:36 +0000 (GMT) |DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B15723886C76 |DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; | s=default; t=1628190336; | bh=s6R6yQ/OkogMkFDoYZi1WxYRiP8pvT3j7zSiHjWl1Yg=; | h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: | List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | From; | b=E6uLR4rhJElYJF35S7Uv8DSYhRc4ZkQAdOVF6ND25n8qWmHeZidZaV2yK5N6QfyJo | CRtOTFvZEcngNwXkAL64FWqWSJT7XP+XkT85MJPPFhHSmq9vK1wuIBcO6xrLeIjx+U | 4GrMrtniPS98sSQkbL2t3/YVr18VeBViwkORsodY= |X-Original-To: libc-alpha@sourceware.org |Delivered-To: libc-alpha@sourceware.org |Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk | [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) | by sourceware.org (Postfix) with ESMTPS id 32CC73858436 | for ; Thu, 5 Aug 2021 19:04:32 +0000 (GMT) |DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32CC73858436 |Received: from [127.0.0.1] (localhost [127.0.0.1]) | (Authenticated sender: tonyk) with ESMTPSA id 363781F4431D |To: Thomas Gleixner , Ingo Molnar , | Peter Zijlstra , Darren Hart , | linux-kernel@vger.kernel.org, Steven Rostedt , | Sebastian Andrzej Siewior |Subject: [PATCH 1/4] futex: Prepare for futex_wait_multiple() |Date: Thu, 5 Aug 2021 16:04:02 -0300 |Message-Id: <20210805190405.59110-2-andrealmeid@collabora.com> |X-Mailer: git-send-email 2.32.0 |In-Reply-To: <20210805190405.59110-1-andrealmeid@collabora.com> |References: <20210805190405.59110-1-andrealmeid@collabora.com> |MIME-Version: 1.0 |X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, | KAM_DMARC_STATUS, KAM_MANYTO, SPF_HELO_PASS, SPF_PASS, TXREP, | UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 |X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on | server2.sourceware.org |X-BeenThere: libc-alpha@sourceware.org |X-Mailman-Version: 2.1.29 |Precedence: list |List-Id: Libc-alpha mailing list |List-Unsubscribe: , | |List-Archive: |List-Post: |List-Help: |List-Subscribe: , | |X-Patchwork-Original-From: =?utf-8?q?Andr=C3=A9_Almeida_via_Libc-alpha?= | |From: =?utf-8?q?Andr=C3=A9_Almeida?= |Reply-To: =?utf-8?q?Andr=C3=A9_Almeida?= |Cc: Davidlohr Bueso , libc-alpha@sourceware.org, | linux-api@vger.kernel.org, mtk.manpages@gmail.com, =?utf-8?q?Andr=C3=A9_Alm?= | =?utf-8?q?eida?= , kernel@collabora.com, | krisman@collabora.com |Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |Sender: "Libc-alpha" | | |Make public functions and defines that will be used for |futex_wait_multiple() function in next commit. | |Signed-off-by: André Almeida |--- | include/linux/futex.h | 60 +++++++++++++++++++++++++++++++++++++++++++ | kernel/futex.c | 42 +----------------------------- | 2 files changed, 61 insertions(+), 41 deletions(-) | |diff --git a/include/linux/futex.h b/include/linux/futex.h |index b70df27d7e85..f7a0f4a4b5f0 100644 |--- a/include/linux/futex.h |+++ b/include/linux/futex.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 165 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/kernel/futex.c b/kernel/futex.c |index 2ecb07575055..c07cb0f747ac 100644 |--- a/kernel/futex.c |+++ b/kernel/futex.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 337 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- | |From patchwork Thu Aug 5 19:04:03 2021 |Content-Type: text/plain; charset="utf-8" |MIME-Version: 1.0 |Content-Transfer-Encoding: 8bit |X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= | |X-Patchwork-Id: 44591 |Return-Path: |X-Original-To: patchwork@sourceware.org |Delivered-To: patchwork@sourceware.org |Received: from server2.sourceware.org (localhost [IPv6:::1]) | by sourceware.org (Postfix) with ESMTP id D0646386103A | for ; Thu, 5 Aug 2021 19:06:23 +0000 (GMT) |DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0646386103A |DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; | s=default; t=1628190383; | bh=chCBTMuLs6Ist7x95Ig3pfKOc44fkHUKG1tcJw/EI4w=; | h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: | List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | From; | b=EDMlXxkLKGPBavOAbGNdGS7cRCNJnR/xkvcfJ/Sikr/WjgAZgkFk3Xv69NgV9rjqO | I5J8xSsbhSbNLL9CRD815kuvUY6PXN196t632uv4WqA3AMWKUazdIN6Nm3p3B2MyBl | EWh+IBBJYoW+Fa5l7HmviawjDcWsjutGN5KUXUTI= |X-Original-To: libc-alpha@sourceware.org |Delivered-To: libc-alpha@sourceware.org |Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk | [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) | by sourceware.org (Postfix) with ESMTPS id 141FA385DC10 | for ; Thu, 5 Aug 2021 19:04:36 +0000 (GMT) |DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 141FA385DC10 |Received: from [127.0.0.1] (localhost [127.0.0.1]) | (Authenticated sender: tonyk) with ESMTPSA id D15201F44325 |To: Thomas Gleixner , Ingo Molnar , | Peter Zijlstra , Darren Hart , | linux-kernel@vger.kernel.org, Steven Rostedt , | Sebastian Andrzej Siewior |Subject: [PATCH 2/4] futex2: Implement vectorized wait |Date: Thu, 5 Aug 2021 16:04:03 -0300 |Message-Id: <20210805190405.59110-3-andrealmeid@collabora.com> |X-Mailer: git-send-email 2.32.0 |In-Reply-To: <20210805190405.59110-1-andrealmeid@collabora.com> |References: <20210805190405.59110-1-andrealmeid@collabora.com> |MIME-Version: 1.0 |X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, | KAM_DMARC_STATUS, KAM_MANYTO, SPF_HELO_PASS, SPF_PASS, TXREP, | UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 |X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on | server2.sourceware.org |X-BeenThere: libc-alpha@sourceware.org |X-Mailman-Version: 2.1.29 |Precedence: list |List-Id: Libc-alpha mailing list |List-Unsubscribe: , | |List-Archive: |List-Post: |List-Help: |List-Subscribe: , | |X-Patchwork-Original-From: =?utf-8?q?Andr=C3=A9_Almeida_via_Libc-alpha?= | |From: =?utf-8?q?Andr=C3=A9_Almeida?= |Reply-To: =?utf-8?q?Andr=C3=A9_Almeida?= |Cc: Davidlohr Bueso , libc-alpha@sourceware.org, | linux-api@vger.kernel.org, mtk.manpages@gmail.com, =?utf-8?q?Andr=C3=A9_Alm?= | =?utf-8?q?eida?= , kernel@collabora.com, | krisman@collabora.com |Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |Sender: "Libc-alpha" | | |Add support to wait on multiple futexes. This is the interface |implemented by this syscall: | |futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, | unsigned int flags, struct timespec *timo) | |struct futex_waitv { | __u64 val; | void *uaddr; | unsigned int flags; |}; | |Given an array of struct futex_waitv, wait on each uaddr. The thread |wakes if a futex_wake() is performed at any uaddr. The syscall returns |immediately if any waiter has *uaddr != val. *timo is an optional |timeout value for the operation. The flags argument of the syscall |should be used solely for specifying the timeout clock as realtime, if |needed. Flags for shared futexes, sizes, etc. should be used on the |individual flags of each waiter. | |Returns the array index of one of the awakened futexes. There’s no given |information of how many were awakened, or any particular attribute of it |(if it’s the first awakened, if it is of the smaller index...). | |Signed-off-by: André Almeida |--- | arch/x86/entry/syscalls/syscall_32.tbl | 1 + | arch/x86/entry/syscalls/syscall_64.tbl | 1 + | include/linux/compat.h | 9 ++ | include/linux/futex.h | 15 ++ | include/uapi/asm-generic/unistd.h | 5 +- | include/uapi/linux/futex.h | 17 +++ | init/Kconfig | 7 + | kernel/Makefile | 1 + | kernel/futex.c | 182 +++++++++++++++++++++++ | kernel/futex2.c | 192 +++++++++++++++++++++++++ | kernel/sys_ni.c | 4 + | 11 files changed, 433 insertions(+), 1 deletion(-) | create mode 100644 kernel/futex2.c | |diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl |index ce763a12311c..de4053104ffa 100644 |--- a/arch/x86/entry/syscalls/syscall_32.tbl |+++ b/arch/x86/entry/syscalls/syscall_32.tbl -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 346 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl |index f6b57799c1ea..ec8659eba1f3 100644 |--- a/arch/x86/entry/syscalls/syscall_64.tbl |+++ b/arch/x86/entry/syscalls/syscall_64.tbl -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 358 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/linux/compat.h b/include/linux/compat.h |index c270124e4402..0c38adfc40a2 100644 |--- a/include/linux/compat.h |+++ b/include/linux/compat.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 385 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/linux/futex.h b/include/linux/futex.h |index f7a0f4a4b5f0..f7ba0577e0e8 100644 |--- a/include/linux/futex.h |+++ b/include/linux/futex.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 418 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h |index a9d6fcd95f42..17cebd1e9384 100644 |--- a/include/uapi/asm-generic/unistd.h |+++ b/include/uapi/asm-generic/unistd.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 435 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/include/uapi/linux/futex.h b/include/uapi/linux/futex.h |index 235e5b2facaa..daa135bdedda 100644 |--- a/include/uapi/linux/futex.h |+++ b/include/uapi/linux/futex.h -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 463 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/init/Kconfig b/init/Kconfig |index 55f9f7738ebb..4cfc315182ac 100644 |--- a/init/Kconfig |+++ b/init/Kconfig -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 481 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/kernel/Makefile b/kernel/Makefile |index 4df609be42d0..1eaf2af50283 100644 |--- a/kernel/Makefile |+++ b/kernel/Makefile -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 493 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/kernel/futex.c b/kernel/futex.c |index c07cb0f747ac..a3d4d9f52a3a 100644 |--- a/kernel/futex.c |+++ b/kernel/futex.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file kernel/futex2.c can't find file to patch at input line 884 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c |index 30971b1dd4a9..03062eb03669 100644 |--- a/kernel/sys_ni.c |+++ b/kernel/sys_ni.c -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 985 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- | |From patchwork Thu Aug 5 19:04:04 2021 |Content-Type: text/plain; charset="utf-8" |MIME-Version: 1.0 |Content-Transfer-Encoding: 8bit |X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= | |X-Patchwork-Id: 44592 |Return-Path: |X-Original-To: patchwork@sourceware.org |Delivered-To: patchwork@sourceware.org |Received: from server2.sourceware.org (localhost [IPv6:::1]) | by sourceware.org (Postfix) with ESMTP id 736273891C3B | for ; Thu, 5 Aug 2021 19:07:18 +0000 (GMT) |DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 736273891C3B |DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; | s=default; t=1628190438; | bh=KyXERyT8D5/RHYn0ijNQVDMELEIIG3iDqBzPH/Fgn6k=; | h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: | List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | From; | b=i/rwyWWrii31sOAFHsKC4jJxsvGNptzTPkhca9cjQiXJplwzEGEuSf4oBR8jvcFpu | vaV02XDd9UcE+j2INtxyG5A+bw7/uQ89NrJJeKSOV0OYp5zi6hki7xTuE92Q2WYYlD | 3OY8dHSjOUR27TAB7/8nzsCyva0v2NUeOX6VZUlQ= |X-Original-To: libc-alpha@sourceware.org |Delivered-To: libc-alpha@sourceware.org |Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) | by sourceware.org (Postfix) with ESMTPS id 274243889832 | for ; Thu, 5 Aug 2021 19:04:40 +0000 (GMT) |DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 274243889832 |Received: from [127.0.0.1] (localhost [127.0.0.1]) | (Authenticated sender: tonyk) with ESMTPSA id CCBD81F4432A |To: Thomas Gleixner , Ingo Molnar , | Peter Zijlstra , Darren Hart , | linux-kernel@vger.kernel.org, Steven Rostedt , | Sebastian Andrzej Siewior |Subject: [PATCH 3/4] selftests: futex2: Add waitv test |Date: Thu, 5 Aug 2021 16:04:04 -0300 |Message-Id: <20210805190405.59110-4-andrealmeid@collabora.com> |X-Mailer: git-send-email 2.32.0 |In-Reply-To: <20210805190405.59110-1-andrealmeid@collabora.com> |References: <20210805190405.59110-1-andrealmeid@collabora.com> |MIME-Version: 1.0 |X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, | KAM_DMARC_STATUS, KAM_MANYTO, SPF_HELO_PASS, SPF_PASS, TXREP, | UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 |X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on | server2.sourceware.org |X-BeenThere: libc-alpha@sourceware.org |X-Mailman-Version: 2.1.29 |Precedence: list |List-Id: Libc-alpha mailing list |List-Unsubscribe: , | |List-Archive: |List-Post: |List-Help: |List-Subscribe: , | |X-Patchwork-Original-From: =?utf-8?q?Andr=C3=A9_Almeida_via_Libc-alpha?= | |From: =?utf-8?q?Andr=C3=A9_Almeida?= |Reply-To: =?utf-8?q?Andr=C3=A9_Almeida?= |Cc: Davidlohr Bueso , libc-alpha@sourceware.org, | linux-api@vger.kernel.org, mtk.manpages@gmail.com, =?utf-8?q?Andr=C3=A9_Alm?= | =?utf-8?q?eida?= , kernel@collabora.com, | krisman@collabora.com |Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |Sender: "Libc-alpha" | | |Create a new file to test the waitv mechanism. Test both private and |shared futexes. Wake the last futex in the array, and check if the |return value from futex_waitv() is the right index. | |Signed-off-by: André Almeida |--- | .../selftests/futex/functional/.gitignore | 1 + | .../selftests/futex/functional/Makefile | 3 +- | .../selftests/futex/functional/futex2_waitv.c | 154 ++++++++++++++++++ | .../testing/selftests/futex/functional/run.sh | 3 + | .../selftests/futex/include/futex2test.h | 72 ++++++++ | 5 files changed, 232 insertions(+), 1 deletion(-) | create mode 100644 tools/testing/selftests/futex/functional/futex2_waitv.c | create mode 100644 tools/testing/selftests/futex/include/futex2test.h | |diff --git a/tools/testing/selftests/futex/functional/.gitignore b/tools/testing/selftests/futex/functional/.gitignore |index 0e78b49d0f2f..913ce6f91bb0 100644 |--- a/tools/testing/selftests/futex/functional/.gitignore |+++ b/tools/testing/selftests/futex/functional/.gitignore -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 994 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile |index bd1fec59e010..cb5f1bdd6678 100644 |--- a/tools/testing/selftests/futex/functional/Makefile |+++ b/tools/testing/selftests/futex/functional/Makefile -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file tools/testing/selftests/futex/functional/futex2_waitv.c can't find file to patch at input line 1168 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tools/testing/selftests/futex/functional/run.sh b/tools/testing/selftests/futex/functional/run.sh |index 11a9d62290f5..e2b4b4747368 100755 |--- a/tools/testing/selftests/futex/functional/run.sh |+++ b/tools/testing/selftests/futex/functional/run.sh -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file tools/testing/selftests/futex/include/futex2test.h patching file Documentation/userspace-api/futex2.rst can't find file to patch at input line 1423 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/Documentation/userspace-api/index.rst b/Documentation/userspace-api/index.rst |index 0b5eefed027e..dac7189d9752 100644 |--- a/Documentation/userspace-api/index.rst |+++ b/Documentation/userspace-api/index.rst -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored