From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754097AbYI0SSh (ORCPT ); Sat, 27 Sep 2008 14:18:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753055AbYI0SS3 (ORCPT ); Sat, 27 Sep 2008 14:18:29 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:35300 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753018AbYI0SS3 (ORCPT ); Sat, 27 Sep 2008 14:18:29 -0400 Date: Sat, 27 Sep 2008 14:18:25 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Peter Zijlstra cc: Ingo Molnar , Linus Torvalds , Martin Bligh , Martin Bligh , linux-kernel@vger.kernel.org, Thomas Gleixner , Andrew Morton , prasad@linux.vnet.ibm.com, Mathieu Desnoyers , "Frank Ch. Eigler" , David Wilder , hch@lst.de, Tom Zanussi , Steven Rostedt Subject: Re: [RFC PATCH 1/3] Unified trace buffer In-Reply-To: <1222537829.16700.304.camel@lappy.programming.kicks-ass.net> Message-ID: References: <20080925195522.GA22248@elte.hu> <20080925201211.GA1878@elte.hu> <20080925211017.GA12689@elte.hu> <20080925214134.GA23025@elte.hu> <20080925221441.GA29060@elte.hu> <20080927171640.GA1990@elte.hu> <1222537829.16700.304.camel@lappy.programming.kicks-ass.net> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) 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 On Sat, 27 Sep 2008, Peter Zijlstra wrote: > On Sat, 2008-09-27 at 13:38 -0400, Steven Rostedt wrote: > > > It does not even implement the merge sort. That's up to the > > tracer to handle. > > You could though, as you have the timestamps.. Yep, and the first version did just that. I could add it back, but it gets interesting if we want to read from a buffer not on the same CPU, if we want to implement lockless. I started (but pushed it aside) a tracing_buffer.c layer, that would do the merges and such based on the timestamps, as well as events and event registration. It was because of you that I pulled this stuff out of the bottom ring buffer layer ;-) > > > So yes, the tracer can implement anything it wants on top of the ring > > buffer ;-) > > Mathieu seems to disagree, it would be good if he can share some > specifics so we can work on resolving those. Mathieu always disagrees ;-) Well the ring buffer interface should never interact directly with the user interface. There should always be a layer between the buffer and the user interface. This means that V2 can change drastically from V1. But I want V1 to get in now so that we can start unifying the existing tracers in the kernel. Also, I like Linus's proposal that anything bigger than a page needs to be kept outside the ring buffer and the ring buffer can simply add a pointer to it. -- Steve