Re: [PATCH] relay: add buffer-only functionality, allowing for early kernel tracing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eduard - Gabriel Munteanu
Date: Friday, April 4, 2008 - 10:06 am

On Fri, 4 Apr 2008 12:40:22 -0400
Mathieu Desnoyers <compudj@krystal.dyndns.org> wrote:
 

I wasn't referring to the kernel's users specifying the buffer on the
command line. For example, LTTng code (I'm not familiar with it) could
allocate a buffer, by itself or using a helper function, and pass it to
relay_early_open(). Of course, it could read the command line and call
that helper function, passing the size required by the user as an
argument.

Basically, I'm saying that having relay code manage a large buffer,
allocating memory from it for each of its callers, could be very
complex. It would be easier and less complex to let each tracing
subsystem allocate memory on its own, either through a static buffer or
with __get_free_pages().


Yes, it shouldn't matter to the relay interface whether the buffer was
statically or dynamically allocated. All it needs to know is where it
starts and how long it is.

BTW, I'll resubmit a modified patch soon, as suggested by Randy Dunlap.


Eduard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] relay: add buffer-only functionality, allowing for ..., Eduard - Gabriel Mun ..., (Fri Apr 4, 8:33 am)
Re: [PATCH] relay: add buffer-only functionality, allowing ..., Eduard - Gabriel Mun ..., (Fri Apr 4, 9:19 am)
Re: [PATCH] relay: add buffer-only functionality, allowing ..., Eduard - Gabriel Mun ..., (Fri Apr 4, 9:28 am)
Re: [PATCH] relay: add buffer-only functionality, allowing ..., Eduard - Gabriel Mun ..., (Fri Apr 4, 10:06 am)
Re: [PATCH] relay: add buffer-only functionality, allowing ..., Eduard - Gabriel Mun ..., (Sat Apr 5, 6:27 pm)