author | Alberto Bertogli
<albertito@blitiri.com.ar> 2012-03-29 22:26:34 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2012-03-29 22:26:34 UTC |
parent | c5f4c471f0f0b60837e5dc8093aa639e59633b29 |
preload/posix/codegen.h | +1 | -0 |
preload/posix/modules/libc.mm.custom.c | +2 | -0 |
diff --git a/preload/posix/codegen.h b/preload/posix/codegen.h index 0999159..80b3344 100644 --- a/preload/posix/codegen.h +++ b/preload/posix/codegen.h @@ -160,6 +160,7 @@ extern int __thread _fiu_called; if (_fiu_orig_##NAME == NULL) \ _fiu_init_##NAME(); \ \ + printd("calling orig\n"); \ r = (*_fiu_orig_##NAME) PARAMSN; \ \ exit: \ diff --git a/preload/posix/modules/libc.mm.custom.c b/preload/posix/modules/libc.mm.custom.c index 4ed23e7..e94dec3 100644 --- a/preload/posix/modules/libc.mm.custom.c +++ b/preload/posix/modules/libc.mm.custom.c @@ -68,6 +68,7 @@ static void *fiu_malloc_hook(size_t size, const void *caller) goto exit; } + printd("calling orig\n"); r = malloc(size); exit: @@ -96,6 +97,7 @@ static void *fiu_realloc_hook(void *ptr, size_t size, const void *caller) goto exit; } + printd("calling orig\n"); r = realloc(ptr, size); exit: