Received: by 10.213.65.68 with SMTP id h4csp322391imn; Wed, 28 Mar 2018 04:23:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HgUqQnhRAM6PfPZBGLP56+Gpxv0DG+ciGCSQrdAeTRNJyW+OOMaYSy1LamfVYSfH2wpHB X-Received: by 10.98.225.9 with SMTP id q9mr2642633pfh.23.1522236236578; Wed, 28 Mar 2018 04:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522236236; cv=none; d=google.com; s=arc-20160816; b=KqZPUhZhVLgw47vyC/v/tTTyKPgF3eCV1dMz0hPRfvy6pXKdKF/RlsImiL5eq+IINe xP7tVVbcgsvTLEcLWoz7mrz8DWWWIt2UL9rO9cOeX22onzLaAUDAX1j6GX4GEwHISldM +R8YOBgaHpIF7xAL+FpTsyq+pi15VD/f0xwreiG3cldBgZ3Nzfq6iW56AMBuJYc2J6qu zjSZkzV/x1lT7ixxBwSygqbsyEy5zmGyrFlqMoXRx/pBXMKxVeE46212PfzuIYZ2rdop WavoMnBiWiJsFqcaUfLL95dirRtK8VWIGYvTbhIBhtALQq5XihVBP8BjmLLJN8nQ2Kj1 S11w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=L43D5BPpmbiA1dgi9adZIPYjcvpWSD5DRrXIRSP5UhA=; b=nuv5HRyO1m8bvZxifHS4nGjdbi+o2uGN9hxdpdlkILyc3AGQ1IB9v9Qnv1shWuqqpy ahatCrRWJNV9H6DHXkrZIBwS0GSVrCRwAYfYoqTlXq5toOjo6Z/7a6RulXURlTbpX1J8 Sab2aOx2uDSwOPf+GbnMz5+KbHXxhqH+MBV8HPSyTpwcbJvVi/pAmXLTiXtcgfggTCsM tizfTTWYdCltcaqZdpQZqF3ng6uiqyshiuN92UyuGbBaQqDPMgUqKPZEnrhhl8CmZJO7 USaOcumqSUp6Xnr3N0XwQ0CgK860a2p2WNEahcBdNE4Qb3yawd8Ez0OU0kTQV4WQniZX gFHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SByRa7E7; 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 r11-v6si3486462plo.278.2018.03.28.04.23.42; Wed, 28 Mar 2018 04:23:56 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SByRa7E7; 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 S1752817AbeC1LWt (ORCPT + 99 others); Wed, 28 Mar 2018 07:22:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33634 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeC1LWo (ORCPT ); Wed, 28 Mar 2018 07:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=L43D5BPpmbiA1dgi9adZIPYjcvpWSD5DRrXIRSP5UhA=; b=SByRa7E7nMkd3QPw4IXkVNOrs qBCA/ziYESFwR45sUYk8Y3A687Mjs5kTxrkhcnAcQeEnIh2bfsmFr07Ix/tbiWFAtMu3IAqBrUQyn nXMyGcnimiN6CmJKv0Qch/haB/ZaKiPhOdsmt92mYW2mh/pMEUG28gNK5vOdzqrwhqvwBynHc+STx wpP5v1dDU6ctIO55c3KbY32+itIO+HyibZms2wU5XRxpceznc/ZONOjVlah4EeWbLXKdLUyLGuz2l rUzPmZu5C6ynD92D9TgaPdYgUbIwOHNCz+DH/N0JQ/hFU6xU3Md9SJtmvGhuGOTT1y7WAlL2fhgyE dssFumB5g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f199v-0002H3-24; Wed, 28 Mar 2018 11:22:27 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 62E91202A4A09; Wed, 28 Mar 2018 13:22:25 +0200 (CEST) Date: Wed, 28 Mar 2018 13:22:25 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Alexander Viro Subject: Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12) Message-ID: <20180328112225.GT4043@hirez.programming.kicks-ass.net> References: <20180327160542.28457-1-mathieu.desnoyers@efficios.com> <20180327160542.28457-3-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327160542.28457-3-mathieu.desnoyers@efficios.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.