Received: by 10.213.65.68 with SMTP id h4csp593641imn; Wed, 28 Mar 2018 09:08:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+69zsphvfvbyBudqDuS9e2HHOU+z8d6e176+kbMVEzD+W7H6PJFwYCgIB/7MrW8a8GWak/ X-Received: by 2002:a17:902:8d92:: with SMTP id v18-v6mr4416096plo.21.1522253308542; Wed, 28 Mar 2018 09:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522253308; cv=none; d=google.com; s=arc-20160816; b=WxRW6gvEdMQYxSLXGABMDigCrc7VOfzbq10ReDxbBnrt9tWxRzcGzMCG3O02fBy6td PTT4nd8jyhe48FTBaHMjAaWYJn5xYdkeE12mmZ6VDhQqXGaYn4BnSmm3yeR6AupUwxbg 1H6KZCYIrZzKEQMer0WMen2cUwjNSfRCEpoG0xLIvuB9+4b2OWViDNJIOa8jOPiUhcRh C+1Z2Mi1N/8b7UGU5+TTrR+e3Me6uOGhcm5XJxjF7ynASEIP6T7vQwnKNk4Zwig6Bu7R qc+iJC84ZgQURPhxT3dPdIZaFvACwM/VrfEEwlPWIXrvt9So+5l90ri5XC85H92kNj4b A/iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=DA1qGon527ORt50WGnXOV+RYCcATJOEuKURnTFqDKGo=; b=cmqeiz9j/9AtF2mUFUa7aRhk5lQI5DxxKXyJ+/m8vuskTBW7lwnI5qguCC9/xwkHVx kHhbBa3eGQz11FfXCY4qG88JPH9QgR4tYXcZtorBl8FGFNay88PniZtsm3///f7kF+3E 4cexWjvuMAyhXNzYV8t8LrDdxHsJgmJCE+8C4yghushBBIZ6f+wnchzTr4GpfXSCR7BM aUSJjQlRqp1rYKNHJsh6hIE9DDlSGRgsE0ZGze00BiMIuKutg3xwNMQOS43a21b5+8Ag IbFpIUX7QmRRj+N3zIj4guvSOJ2ChJlBl73fZyB7PoDuIVRzTSRVO0yAaTQv5+j6yEp1 +TlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si2907139pff.274.2018.03.28.09.08.13; Wed, 28 Mar 2018 09:08:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753613AbeC1O0R (ORCPT + 99 others); Wed, 28 Mar 2018 10:26:17 -0400 Received: from mail.efficios.com ([167.114.142.138]:37074 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752876AbeC1O0P (ORCPT ); Wed, 28 Mar 2018 10:26:15 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 4372C1A84B0; Wed, 28 Mar 2018 10:26:15 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Xa039UIL39Mw; Wed, 28 Mar 2018 10:26:14 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id A52CF1A84AD; Wed, 28 Mar 2018 10:26:14 -0400 (EDT) X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fdg_MubhSmaB; Wed, 28 Mar 2018 10:26:14 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id 8954B1A84A5; Wed, 28 Mar 2018 10:26:14 -0400 (EDT) Date: Wed, 28 Mar 2018 10:26:14 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra Cc: "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Alexander Viro Message-ID: <220077125.2034.1522247174476.JavaMail.zimbra@efficios.com> In-Reply-To: <20180328112225.GT4043@hirez.programming.kicks-ass.net> References: <20180327160542.28457-1-mathieu.desnoyers@efficios.com> <20180327160542.28457-3-mathieu.desnoyers@efficios.com> <20180328112225.GT4043@hirez.programming.kicks-ass.net> Subject: Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.7_GA_1964 (ZimbraWebClient - FF52 (Linux)/8.8.7_GA_1964) Thread-Topic: rseq: Introduce restartable sequences system call (v12) Thread-Index: z6biGYBCh868zWhFRlI8XBOdAjHfoA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Mar 28, 2018, at 7:22 AM, Peter Zijlstra peterz@infradead.org wrote: > On Tue, Mar 27, 2018 at 12:05:23PM -0400, Mathieu Desnoyers wrote: >> +/* >> + * struct rseq_cs is aligned on 4 * 8 bytes to ensure it is always >> + * contained within a single cache-line. It is usually declared as >> + * link-time constant data. >> + */ >> +struct rseq_cs { >> + /* Version of this structure. */ >> + uint32_t version; >> + /* enum rseq_cs_flags */ >> + uint32_t flags; >> + LINUX_FIELD_u32_u64(start_ip); >> + /* Offset from start_ip. */ >> + LINUX_FIELD_u32_u64(post_commit_offset); >> + LINUX_FIELD_u32_u64(abort_ip); >> +} __attribute__((aligned(4 * sizeof(uint64_t)))); > > What's with the uint32_t ? The normal Linux API type is __u32 afaik. Will fix. Working on both kernel and user-space code in parallel kind of does that to the brain. ;-) Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com