search for: conring_idx_mask

Displaying 2 results from an estimated 2 matches for "conring_idx_mask".

2012 Sep 29
5
[PATCH] xen/console: introduce a 'w' debug-key that dumps the console ring
...+ order = get_order_from_bytes(conring_size + 1); + buf = alloc_xenheap_pages(order, 0); + if ( buf == NULL ) + { + printk("unable to allocate memory!\n"); + return; + } + + c = conringc; + sofar = 0; + while ( (c != conringp) ) + { + idx = CONRING_IDX_MASK(c); + len = conringp - c; + if ( (idx + len) > conring_size ) + len = conring_size - idx; + memcpy(buf + sofar, &conring[idx], len); + sofar += len; + c += len; + } + buf[sofar] = ''\0''; + + sercon_puts(buf); + vga_pu...
2009 Mar 25
1
"xm dmesg" ring buffer size option?
I have a large system with pretty voluminous boot time messages that are exceeding the capacity of the ring buffer displayed by "xm dmesg" (i.e., the early messages are lost, and I see only the last messages). With a regular, non-Xen kernel, I use "log_buf_len=size" to enlarge the printk ring buffer size, but this boot option doesn''t seem to work for Xen. Anyone have