Re: [PATCH 2/3] relay - make subbuf switch replaceable

From: Andrew Morton
Date: Tue Sep 23 2008 - 16:19:21 EST


On Tue, 23 Sep 2008 00:27:30 -0500
Tom Zanussi <zanussi@xxxxxxxxxxx> wrote:

> Make the relay sub-buffer switch code replaceable.
>
> With this patch, tracers now have complete control over the relay
> write (or reserve) path if they choose to do so, by implementing their
> own version of the sub-buffer switch function (switch_subbuf()), in
> addition to their own local write/reserve functions. Tracers who
> choose not to do so automatically default to the normal behavior.
>
>
> ...
>
> -EXPORT_SYMBOL_GPL(relay_switch_subbuf);
> +EXPORT_SYMBOL_GPL(switch_subbuf_default_callback);

It would be nice to keep the `relay_' prefix on the exported relay
interface? Something called `switch_subbuf_default_callback' could
belong to pretty much anywhere in the kernel.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/