From patchwork Fri Aug 2 19:02:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Jeanson X-Patchwork-Id: 1968489 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=tmD77Jvc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WbFgf3yt7z1yZl for ; Sat, 3 Aug 2024 05:06:54 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D0DED386075E for ; Fri, 2 Aug 2024 19:06:52 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by sourceware.org (Postfix) with ESMTPS id 55501385842C for ; Fri, 2 Aug 2024 19:03:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 55501385842C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 55501385842C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=167.114.26.122 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722625386; cv=none; b=q3yac4nw4Gy87HBdqpBpCwXgj9ZVBOSPcvgDRIEbU2XhhOccK0Zn8s4uHuyeoDrvzyca1JAc8lmgVqMdZ7wg3dQsriSbA9w2HeCt1mklZYzGKqivM1pihv/1l3apxl08pABrrxUh4mSVNBsaVskN4UtDEruWPYQ5j3EDeMVoiXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722625386; c=relaxed/simple; bh=qPsYBnF32gRLZzsnFN7VpeHAfF6ekNMvuLkqY2e8DcU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=fjriOTlm3axWoRGZ2JieharRBW3p8wURL86Suxpwgr0LdRL8MW0oUwA8XWAiL2t4DMHIV/QnIxCN8xi2vYR+nNQszLKjUZOpUAdclaNWLbPIkUj7GIqbVpm5IJULH8mLj5ghEa9cgk6NxtYmCGi7wybNE7xv9EMCRVj+1X1+o5c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1722625383; bh=qPsYBnF32gRLZzsnFN7VpeHAfF6ekNMvuLkqY2e8DcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tmD77JvcLJtC2Zx7TfJdElhPoYhH6GroYIUqLuI1cV/zQARlJ196m47VCZy+PluwB 2IxU/EmhjPttn6aM1zkZSbeWXjtcwbRuDGBxYVKqQCVubvIhInEN8AJsPz5B0RnA/0 +qu/TXfVUiZH3mLLnE16rDnDhBHzG4OfOGuusx2yuZk5NP29kGu8RGkZcjJpYS+r6W /H2EE/WFhOancS7HbQSFHh4EzwWHYkz2aTMWuzGdeKtnOG1/tNfgIVV5PtuMqYpGcZ R/OJajuGxJgvjwaXr75mIdODIEqLq+/Rt6SDQZt7/RPg7k8qNb+4fXkM2hTIpI0CJ9 1zo/3XfmhS3tQ== Received: from mj-deb12-aarch64-glibc.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4WbFbB6kXWz1FnQ; Fri, 2 Aug 2024 15:03:02 -0400 (EDT) From: Michael Jeanson To: libc-alpha@sourceware.org Cc: Michael Jeanson , Florian Weimer , Carlos O'Donell , DJ Delorie , Mathieu Desnoyers Subject: [PATCH RFC v11 17/17] Linux: Update internal copy of '' Date: Fri, 2 Aug 2024 15:02:30 -0400 Message-Id: <20240801-rseq-abi-v11-split-v11-17-b7bbc0138bfd@efficios.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240801-rseq-abi-v11-split-v11-0-b7bbc0138bfd@efficios.com> References: <20240801-rseq-abi-v11-split-v11-0-b7bbc0138bfd@efficios.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org Sync the internal copy of '' with the latest Linux kernel 'include/uapi/linux/rseq.h'. Signed-off-by: Michael Jeanson --- sysdeps/unix/sysv/linux/sys/rseq.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sysdeps/unix/sysv/linux/sys/rseq.h b/sysdeps/unix/sysv/linux/sys/rseq.h index b8afab8945..7f0c27fc42 100644 --- a/sysdeps/unix/sysv/linux/sys/rseq.h +++ b/sysdeps/unix/sysv/linux/sys/rseq.h @@ -152,6 +152,17 @@ struct rseq Inhibit instruction sequence block restart on migration for this thread. */ uint32_t flags; + /* Restartable sequences node_id field. Updated by the kernel. Read by + user-space with single-copy atomicity semantics. This field should only + be read by the thread which registered this data structure. Aligned on + 32-bit. Contains the current NUMA node ID. */ + uint32_t node_id; + /* Restartable sequences mm_cid field. Updated by the kernel. Read by + user-space with single-copy atomicity semantics. This field should only + be read by the thread which registered this data structure. Aligned on + 32-bit. Contains the current thread's concurrency ID (allocated + uniquely within a memory map). */ + uint32_t mm_cid; } __attribute__ ((__aligned__ (32))); #endif /* __GLIBC_HAVE_KERNEL_RSEQ */