OSDN Git Service

util: add debug_memory_check_block(), debug_memory_tag()
authorBrian Paul <brianp@vmware.com>
Wed, 3 Apr 2013 19:36:50 +0000 (13:36 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Apr 2013 14:50:15 +0000 (08:50 -0600)
commit92e5e45ff1147232699be9e517c70146e6ed0291
tree57d5a076d2e036e419257f24cf36f71c4fc947e0
parenta408ea96920984ad2c5bf81f799cbb583f264105
util: add debug_memory_check_block(), debug_memory_tag()

The former just checks that the given block is valid by checking
the header and footer.

The later sets the memory block's tag.  With extra debug code, we
can use that for monitoring/checking particular allocations.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/os/os_memory_debug.h
src/gallium/auxiliary/util/u_debug_memory.c