lkml.org 
[lkml]   [2009]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/8] tracing: make trace_seq operations available for core kernel
From
Date
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.



\
 
 \ /
  Last update: 2009-04-14 21:17    [W:0.237 / U:1.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site