Name: Anonymous 2010-06-26 14:10
How is valgrind able to replace the malloc functions in programs? I want to do the same thing but with socket functions.
--_ _--
||\_\__ __/_/||
|| \ \__...-----...__/ / ||
\\ _\_/ / \ \_/_ //
|_/ | | \_|
/ __ / _/ __ \
/ .-~--~-.\ / ) .-~--~-. \
| || || \____/ || || |
| `-_--_-' `-_--_-' |
| ~~ ~~ |
| ___ |
| `-' |
\ \_ \ / _/ /
\_ \_/ \_/ _/
\___ ___/
..--\__ __/--..
.~ __-~~~-----~~~-__ ~.
(__.--~ ~--.__)
VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__GET_MALLOCFUNCS, &info, 0, 0, 0, 0);