X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fmemcheck.c;h=b6878500a1bb35ad196bb64d09338d7377088ebc;hb=8cd246c3830733c2850cef049a7ad153daf0dd13;hp=17894c6c825d5328583d7f3d1769432401782efc;hpb=13230ccb05189ab1a615d28d78f1a8b19858e422;p=palacios.git diff --git a/linux_module/memcheck.c b/linux_module/memcheck.c index 17894c6..b687850 100644 --- a/linux_module/memcheck.c +++ b/linux_module/memcheck.c @@ -1,3 +1,8 @@ +/* + Palacios memory allocation-checking framework + (c) Peter Dinda, 2013 + */ + #include #include #include @@ -260,7 +265,8 @@ void palacios_memcheck_free(void *addr,unsigned long size, palacios_memcheck_mem memcheck_state_t *m=find_mem_entry(addr,0,type); // don't care about the size now if (!m){ - DEBUG("MEMCHECK: FREEING UNTRACKED %s MEMORY AT 0x%p FOR %lu BYTES\n",TYPE_TO_STR(type),addr,size); + DEBUG("MEMCHECK: FREEING UNTRACKED %s MEMORY AT 0x%p FOR %lu BYTES - stack trace follows\n",TYPE_TO_STR(type),addr,size); + dump_stack(); return; }