Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp27500imm; Thu, 20 Sep 2018 13:30:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxbMD0fSY4o+jTphXWC9M9Z9QIIPFJ9YAbYXAa87AQMy46v81NYJzSD1qorm1LVcT2xpa6 X-Received: by 2002:a63:2c8e:: with SMTP id s136-v6mr39367753pgs.390.1537475422887; Thu, 20 Sep 2018 13:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537475422; cv=none; d=google.com; s=arc-20160816; b=H8pEp2msdZma9sOnqpeFXt01/Qd0Gevd+5QqV+jf5xbZXm93yv604/q42TEpSSmsai XJhOyvE++I2o1olYVZ81wsixLS9zkSmrpgfdjcWsMzJZReUVerzJFs4CulKXuob92Oi/ vNUuFSvvk/KlG7iwCsGyqyobmyT/d1aRRczPlWwM6A9+Ef8uFfWn7gnfMu3JsEuTeNsI xOVqs88mnU5T7Bq9hsX2/jh8t7iZp/vsdmAh5Q4J6TV3NLUdgoYMdfueB2DDv3YE1iHc qyOs1gDOVAsjC76AXP2+Iyk2Bgzwrstx64YlbqM9kVUL+a2ou82siULqgiHK/ITiOs0H Rvnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=kzG+NboIzdBuluY09oAw6TjK98Uz5fuD4NnreSqkGqU=; b=FDZnI1cmWknVg+YNxPn+u7XCoe/B1n6eWoAJ//7AojoX+Y8ZJJ4/x7WN2SxT48jGgx XZ51i4ZtzbNymN0YcF6FXwAtPIBQEMGmmXTMirvsvGaPYYT3w3kI1jp4/M405Cq5wq0d /b0eewHTE5iEbmQ/g5Tv6ZzR7e7z8Obc4mNdEeXrzwgk9Z9yLbNXumIiYkUJ4qrBeXo9 q9WxdJp4hECEtkfNbwl8NMMY9zEvSinCsP1OoTGYtbAIqB4iEXEYLUn1Si8Zs6o1lUgB yYCZ/Yk87FlXVHR6VmkFz3KGP5CocskCEbQbmlM4RsWVAOPj7GajyirjZtxrh8wQOyh6 QUTA== 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 u186-v6si25876563pfu.263.2018.09.20.13.30.06; Thu, 20 Sep 2018 13:30:22 -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 S2388288AbeIUCPE (ORCPT + 99 others); Thu, 20 Sep 2018 22:15:04 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:42041 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbeIUCPD (ORCPT ); Thu, 20 Sep 2018 22:15:03 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1g35a7-0006Wv-2U from joseph_myers@mentor.com ; Thu, 20 Sep 2018 13:29:47 -0700 Received: from digraph.polyomino.org.uk (137.202.0.90) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 20 Sep 2018 21:29:43 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.90_1) (envelope-from ) id 1g35a3-0005h6-3E; Thu, 20 Sep 2018 20:29:43 +0000 Date: Thu, 20 Sep 2018 20:29:43 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Mathieu Desnoyers CC: carlos , Florian Weimer , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , libc-alpha , linux-kernel , linux-api Subject: Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation In-Reply-To: <381061785.8994.1537473866841.JavaMail.zimbra@efficios.com> Message-ID: References: <20180919144438.1066-1-mathieu.desnoyers@efficios.com> <381061785.8994.1537473866841.JavaMail.zimbra@efficios.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Sep 2018, Mathieu Desnoyers wrote: > Something like this in pthreadP.h ? > > +#ifdef __NR_rseq > +#include > +#else > +#include > +#endif /* __NR_rseq. */ > > where sysdeps/unix/sysv/linux/rseq-internal.h contains the linux > implementation of rseq_register_current_thread () and > rseq_unregister_current_thread (), and sysdeps/nptl/rseq-internal.h > contains stubs. > > Am I on the right track ? It's hard to define the right abstractions for what goes where given that only Linux uses NPTL since the removal of the NaCl port. I suppose it does make logical sense for a #include of to go somewhere under sysdeps/unix/sysv/linux/. -- Joseph S. Myers joseph@codesourcery.com