]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
xentrace: dynamic tracebuffer allocation
authorOlaf Hering <olaf@aepfle.de>
Thu, 17 Mar 2011 13:29:01 +0000 (13:29 +0000)
committerOlaf Hering <olaf@aepfle.de>
Thu, 17 Mar 2011 13:29:01 +0000 (13:29 +0000)
commit44671b312e89ecf3a0a26c6e3c60e0a2f53e0d9b
tree3615936aa167e0e804ef24d47062eea4b13e7653
parent547cb1849c1d6338d3141817f67c3ddd2c2beff5
xentrace: dynamic tracebuffer allocation

Allocate tracebuffers dynamically, based on the requested buffer size.
Calculate t_info_size from requested t_buf size.
Fix allocation failure path, free pages outside the spinlock.
Remove casts for rawbuf, it can be a void pointer since no math is
done.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/trace.c