Re: [PATCH 3/8] tracing: make trace_seq operations available forcore kernel

From: Peter Zijlstra
Date: Tue Apr 14 2009 - 15:14:07 EST


On Tue, 2009-04-14 at 13:23 -0400, Steven Rostedt wrote:
> +struct trace_seq {
> + unsigned char buffer[PAGE_SIZE];
> + unsigned int len;
> + unsigned int readpos;
> +};

Would not PAGE_SIZE-2*sizeof(int) be enough? That would make the struct
fit into a single page and avoid an order-1 allocation.

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