From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080AbYIZTqw (ORCPT ); Fri, 26 Sep 2008 15:46:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753100AbYIZTqk (ORCPT ); Fri, 26 Sep 2008 15:46:40 -0400 Received: from smtp-out.google.com ([216.239.33.17]:54687 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbYIZTqj (ORCPT ); Fri, 26 Sep 2008 15:46:39 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=message-id:date:from:to:subject:cc:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=NBcUiXZrNtyDZHUsRxZrfxeAOs8zUVnLEIwcY4UC8ZFGs5VGhS398k1UqVC40Kb2p q97hwVpXE8+Y9CBWefPrg== Message-ID: <33307c790809261246o47148443j49fee9197d18a3f1@mail.gmail.com> Date: Fri, 26 Sep 2008 12:46:23 -0700 From: "Martin Bligh" To: "Peter Zijlstra" Subject: Re: [PATCH v6] Unified trace buffer Cc: "Steven Rostedt" , LKML , "Ingo Molnar" , "Thomas Gleixner" , "Andrew Morton" , prasad@linux.vnet.ibm.com, "Linus Torvalds" , "Mathieu Desnoyers" , "Frank Ch. Eigler" , "David Wilder" , hch@lst.de, "Christoph Hellwig" , "Masami Hiramatsu" , "Steven Rostedt" , "Arnaldo Carvalho de Melo" In-Reply-To: <1222455557.16700.285.camel@lappy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080925185154.230259579@goodmis.org> <20080925185236.244343232@goodmis.org> <48DC406D.1050508@redhat.com> <1222455557.16700.285.camel@lappy.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 26, 2008 at 11:59 AM, Peter Zijlstra wrote: > On Fri, 2008-09-26 at 14:05 -0400, Steven Rostedt wrote: > >> +struct buffer_page { >> + u64 time_stamp; >> + unsigned char body[]; >> +}; >> + >> +#define BUF_PAGE_SIZE (PAGE_SIZE - sizeof(u64)) > > Since you're already using the page frame, you can stick this per page > timestamp in there as well, and get the full page for data. > > You can either use a struct page overlay like slob does, or add a u64 in > the union that contains struct {private, mapping}. What did you guys think of Mathieu's idea of sticking the buffer length in the header here, rather than using padding events? Seemed cleaner to me.