From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753441AbaEHMqm (ORCPT ); Thu, 8 May 2014 08:46:42 -0400 Received: from mga11.intel.com ([192.55.52.93]:20888 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbaEHMql (ORCPT ); Thu, 8 May 2014 08:46:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,1010,1389772800"; d="scan'208";a="528495896" From: Alexander Shishkin To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Frederic Weisbecker , Mike Galbraith , Paul Mackerras , Stephane Eranian , Andi Kleen , Adrian Hunter , Matt Fleming Subject: Re: [PATCH v1 03/11] perf: Allow for multiple ring buffers per event In-Reply-To: <20140508124121.GU11096@twins.programming.kicks-ass.net> References: <1391683834-29868-1-git-send-email-alexander.shishkin@linux.intel.com> <1391683834-29868-4-git-send-email-alexander.shishkin@linux.intel.com> <20140507152640.GR30445@twins.programming.kicks-ass.net> <87wqdwzbxy.fsf@ashishki-desk.ger.corp.intel.com> <20140508124121.GU11096@twins.programming.kicks-ass.net> User-Agent: Notmuch/0.17+49~gaa57e9d (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Thu, 08 May 2014 15:46:36 +0300 Message-ID: <87ha50cuab.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: > On Thu, May 08, 2014 at 03:34:17PM +0300, Alexander Shishkin wrote: >> Peter Zijlstra writes: >> >> > So the aux_head/tail values should also be in the file space and not >> > start at 0 again, similar for the offsets in the AUX record. >> >> Thinking some more about it: if we keep aux_{offset,size} in userpg, >> then it would make sense to have aux_{head,tail} run from 0 to infinity >> similar to data_{head,tail}, especially considering that neither data_* >> nor aux_* pointers are file offsets anyway. > > Yeah, this might make it easier. So then the rule is *_offset + > *_{head,tail} is the actual file offset into the buffer. You mean *_offset + (*_{head,tail} % *_size) ? Regards, -- Alex