Martin,
First I like to express my appreciation to you for writing this up. Not
only that, but being the one person from keeping us from killing each
other ;-)
On Fri, 19 Sep 2008, Martin Bligh wrote:
Yes, we kept the chairs on the floor the whole time.
I don't remember talking about the "spool to disk" for version 1.
We still want to do this? I thought we would have overwrite mode (flight
data record), and a "throw all new data away when the producer fills the
buffer before the consumer takes" mode.
As stated in another email "8 byte aligned" words should be fine.
I was talking with Thomas about this, and we probably want (and I'm sure
Mathieu and others would agree), a...
event_handle = reserve_event(buffer_handle, event_id, length)
as well as a..
comit_event(event_handle).
Oh, and all commands should start with the namespace.
ring_buffer_alloc()
ring_buffer_free()
ring_buffer_record_event()
etc.
Ah, I thought we were going to have:
/debugfs/tracing/buffers/<name>/<buffer crap>
and each tracer have
/debugfs/tracing/<name>/<trace command crap>
This way we can easily see all the buffers in one place that are allocated
without having to see a tracer name first.
The reason I like the way I propose, is that a utility that needs to read
all the buffers, doesn't need to go into directories that don't even have
buffers. Not all tracers will allocate a buffer.
I wonder if we should make this another sub dir:
/debugfs/tracing/buffers/events/<event-name>
I can see registering events, but shouldn't we "allocate" buffers?
Sounds good,
Thanks!
-- Steve
--