From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [RFC PATCH for 4.16 02/21] rseq: Introduce restartable sequences system call (v12) Date: Thu, 14 Dec 2017 22:20:23 +0100 Message-ID: <20171214212023.GJ3326@worktop> References: <20171214161403.30643-1-mathieu.desnoyers@efficios.com> <20171214161403.30643-3-mathieu.desnoyers@efficios.com> <12046460.34426.1513275177081.JavaMail.zimbra@efficios.com> <1537392285.34532.1513279478488.JavaMail.zimbra@efficios.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christopher Lameter Cc: Mathieu Desnoyers , "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 , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas List-Id: linux-api@vger.kernel.org On Thu, Dec 14, 2017 at 03:14:00PM -0600, Christopher Lameter wrote: > On Thu, 14 Dec 2017, Mathieu Desnoyers wrote: > > > If we port this concept to kernel-space (as I start to understand > > would be your wish), then a simple pointer store to the current > > task_struct would suffice. > > Certainly such a port would be beneficial for non x86 archs. > > But my company has extensive user space code that maintains a lot of > counters and does other tricks to get full performance out of the > hardware. Such a mechanism would also be good from user space. Why keep > the good stuff only inside the kernel? Mathieu's proposal is for userspace, _only_ userspace.