| | Subject | Re: [PATCH 3/8] tracing: make trace_seq operations available for core kernel | | From | Peter Zijlstra <> | | Date | Tue, 14 Apr 2009 21:12:07 +0200 |
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.
|