I have been working on a library that interposes certain functions of a program without changing the source code of the program to retrieve statistics about memory transfers. I want to share a handy trick that I found to achieve this interposition commonly known as “ld_preload trick”.

The main advantage…

Muhammet Soytürk

Computer science PhD student at Koç University. Interested in high performance computing, computer architecture and philosophy.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store