Im new to writing pintool programs. I want to find the main function of target program with PIN. But I always got just an UnNamedImageEntryPoint with SYM_Name() and RTN_Name. I guess the lack of symbols caused this. So is there any solution for me to find main function when there's no symbols?This is My main function:
We developed a cache model for prefetching for our computer architecture course. We had to run address traces for a real application through the model to see if the prefetcher worked. These addresses traces were generated with the Pintool pinatrace on SPEC CPU2017 benchmark software. Detailed here is a short overview of an easy way to use Pintool with SPEC CPU2017 benchmarking suite.
This takes you to the config directory of SPEC CPU2017 which contains example config files which we duplicate and edit for our own system configuration. I ran this on linux x86 and intended to use the gcc compiler so I did the following :
Another approach detailed in this blog (for a different application) follows the pid of the process that is running your application through pintool. This might not be recommended for SPEC because you have to monitor when the application begins to run and then attach the process. On the other hand, it might be a great way to remove the unnecessary memory addresses at the start of the application that dont contribute to useful data.
So, anyone that has been using pintool on windows has faced the beautiful
Nmakefile that you get to use. And it only works using the Visual
Studio Command Prompt, which is basically cmd.exe with some extra
environment variables set.
3a8082e126