Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890AbbFQJkh (ORCPT ); Wed, 17 Jun 2015 05:40:37 -0400 Received: from jessie.kos.to ([212.47.231.226]:46985 "EHLO pilvi.kos.to" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752544AbbFQJk2 convert rfc822-to-8bit (ORCPT ); Wed, 17 Jun 2015 05:40:28 -0400 X-Greylist: delayed 393 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Jun 2015 05:40:28 EDT From: Riku Voipio To: Ingo Molnar Cc: Rusty Russell , Stephen Rothwell , Peter Zijlstra , , , , "Paul E. McKenney" Subject: Re: [PATCH] tools/perf, rbtree: Add RCU wrappers to make rbtree.h =?iso-8859-1?Q?usable_in_user-space?= Date: Wed, 17 Jun 2015 12:33:51 +0300 User-Agent: Trojita/0.5-git; Qt/5.3.2; xcb; Linux; Debian GNU/Linux 8.0 (jessie) MIME-Version: 1.0 Message-ID: <0c263691-711a-4951-a87d-4d3ec52be2e8@iki.fi> In-Reply-To: <20150617091703.GA2883@gmail.com> References: <20150617060952.GA5375@kos.to> <20150617091703.GA2883@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1949 Lines: 70 On Wednesday, June 17, 2015 12:17:04 PM EEST, Ingo Molnar wrote: > * Riku Voipio wrote: > >> Hi, >> >> The commit: >> >> commit d72da4a4d973d8a0a0d3c97e7cdebf287fbe3a99 >> Author: Peter Zijlstra >> Date: Wed May 27 11:09:36 2015 +0930 ... > > Does the patch below make things work? It does, Tested-by: Riku Voipio > This fix could go into the modules tree, as this commit came via Rusty. > > Stephen, feel free to add: > > make -C tools/perf > > to the linux-next build tests. It's always supposed to build > without failure, in > pretty much whatever x86 distro you run your build tests on. > > Thanks, > > Ingo > > > ===================> > From 62c251255f07ede8efa356d4ea9ab51827ffa0d0 Mon Sep 17 00:00:00 2001 > From: Ingo Molnar > Date: Wed, 17 Jun 2015 11:07:11 +0200 > Subject: [PATCH] tools/perf, rbtree: Add RCU wrappers to make > rbtree.h usable in user-space > > Reported-by: Riku Voipio > Signed-off-by: Ingo Molnar > --- > tools/perf/util/include/linux/rcupdate.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/tools/perf/util/include/linux/rcupdate.h > b/tools/perf/util/include/linux/rcupdate.h > new file mode 100644 > index 000000000000..3e022dd9a69b > --- /dev/null > +++ b/tools/perf/util/include/linux/rcupdate.h > @@ -0,0 +1,9 @@ > +#ifndef PERF_LINUX_RCUPDATE_H_ > +#define PERF_LINUX_RCUPDATE_H_ > + > +/* Simple trivial wrappers for now, we don't use RCU in perf > user-space (yet): */ > +#define WRITE_ONCE(var, val) ((var) = (val)) > +#define rcu_assign_pointer(ptr, val) WRITE_ONCE(ptr, val) > + > +#endif > + > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/