Now all the tracing (except for MPI) support only LD_PRELOAD base usage. If you want to add static linkage support, can refer to the TMIO/include/tmio_helper_functions.h for further information.
This feature require the support of the --wrap feature of GNU linker. For example, if you want to intercept the write function, you need to define the TMIO_STATIC_WRAP when complie, and add --warp=write flag when link. So that GNU linker would make sure all call to write become __wrap_write, make sure the TMIO intercept function is called.
Now all the tracing (except for MPI) support only
LD_PRELOADbase usage. If you want to add static linkage support, can refer to theTMIO/include/tmio_helper_functions.hfor further information.This feature require the support of the
--wrapfeature of GNU linker. For example, if you want to intercept thewritefunction, you need to define theTMIO_STATIC_WRAPwhen complie, and add--warp=writeflag when link. So that GNU linker would make sure all call towritebecome__wrap_write, make sure the TMIO intercept function is called.