Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbbGCAas (ORCPT ); Thu, 2 Jul 2015 20:30:48 -0400 Received: from ozlabs.org ([103.22.144.67]:53041 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150AbbGCAam (ORCPT ); Thu, 2 Jul 2015 20:30:42 -0400 From: Rusty Russell To: Tejun Heo Cc: Jens Axboe , Jon Christopherson , linux-kernel@vger.kernel.org Cc: Peter Zijlstra Subject: Re: [PATCH] tools/perf, rbtree: Add RCU wrappers to make rbtree.h usable in user-space In-Reply-To: <20150702132103.GB30677@mtj.duckdns.org> References: <20150702005253.GA26440@mtj.duckdns.org> <20150702005337.GB26440@mtj.duckdns.org> <5594A9B6.2050100@jons.org> <5594AD98.4050402@jons.org> <20150702132103.GB30677@mtj.duckdns.org> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Fri, 03 Jul 2015 06:21:12 +0930 Message-ID: <87k2uiqo5b.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 50 Tejun Heo writes: > (cc'ing Rusty and lkml) Looks like Peter Zijlstra is the one to take this fix... Cheers, Rusty. > > Hello, > > On Wed, Jul 01, 2015 at 10:18:48PM -0500, Jon Christopherson wrote: >> Hello guys, >> >> One last thing .. the recent commit : 02201e3f1 ("Merge tag >> 'modules-next-for-linus' of >> git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux") broke perf tools >> compilation. I know this isnt your area, but its a simple accidental >> omission of a file. Here is the needed change to correct retrieved from the >> list: >> >> diff --git a/tools/perf/util/include/linux/rcupdate.h >> b/tools/perf/util/include/linux/rcupdate.h >> new file mode 100644 >> index 0000000..51c0f45 >> --- /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 >> + > > Rusty? > > Thanks. > > -- > tejun -- 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/