-
Notifications
You must be signed in to change notification settings - Fork 1
Static Link #7
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels