I am a newbie to Pin, and basically, I would like to use a Pintool to initialize a memory region, which can be read/write by the user process later during run time.
I would like to make the memory region on heap, as the data structure I want to initialize is relatively large. After reading the Pin manual, I am aware of Pin safecopy
which can be used for memory copy.
However, I don't know how to allocate memory on the heap, which, should be accessible by the attached client process.
Am I clear enough? Could anyone give me some help on it? Thank you!