Re: [PATCH v6] Unified trace buffer

From: Peter Zijlstra
Date: Fri Sep 26 2008 - 15:01:25 EST


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}.



--
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/