On Mon, Aug 09, 2010, John Rigby wrote:
Does ltrace do what you want?
This is what comes to my mind as well.
There is a catch: I think eglibc (in fact almost all Ubuntu packages) is built with -Bsymbolic-functions, which means that you can't intercept internal calls to memcpy() from other eglibc functions using LD_PRELOAD.
It might be more effective to instrument the eglibc source code to record what you want.