debuggers.hg

changeset 22064:542e8cd16a6c

xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Aug 17 19:30:35 2010 +0100 (2010-08-17)
parents ca50b3d02b29
children 5218db847b58
files xen/common/trace.c
line diff
     1.1 --- a/xen/common/trace.c	Tue Aug 17 17:23:25 2010 +0100
     1.2 +++ b/xen/common/trace.c	Tue Aug 17 19:30:35 2010 +0100
     1.3 @@ -321,9 +321,9 @@ void __init init_trace_bufs(void)
     1.4      /* Calculate offset in u32 of first mfn */
     1.5      calc_tinfo_first_offset();
     1.6  
     1.7 -    /* t_info size fixed at 2 pages for now.  That should be big enough / small enough
     1.8 -     * until it's worth making it dynamic. */
     1.9 -    t_info = alloc_xenheap_pages(1, 0);
    1.10 +    /* t_info size is fixed for now. Currently this works great, so there
    1.11 +     * seems to be no need to make it dynamic. */
    1.12 +    t_info = alloc_xenheap_pages(get_order_from_pages(T_INFO_PAGES), 0);
    1.13  
    1.14      if ( t_info == NULL )
    1.15      {