<html><body><div>Hello,</div><div><br></div><div>I know it is after deadline for HW7, but I just can't get it to work and I would like to finish it anyway.</div><div><br></div><div>How do you measure time in your pintool?</div><div><br></div><div>I tried to use clock_gettime, which is declared in the PIN headers, so it compiles just fine, but when I run</div><div>pin with the tool it crashes when dynamic loader cannot find implementation in the PIN CRT.</div><div><br></div><div>It writes the following error:</div><div>Unable to load home/07-pin-maderak/obj-intel64/write_throughput.so: dlopen failed: cannot locate symbol "clock_gettime" referenced by "home/07-pin-maderak/obj-intel64/write_throughput.so"...<br></div><div><br></div><div>I used the makefile from the PIN simple examples and I checked that it is linking and loading the correct libraries.<br></div><div><br></div><div>The I looked at the exported symbols of the PIN CRT libraries and could not find any mention of clock_gettime,</div><div>so is it just me and the version of PIN I downloaded or is it really not implemented?</div><div><br></div><div>Clock_gettime seemed like the right choice for the measurement we are trying to do, so I just tried to make <br></div><div>it work with no success.<br></div><div>Should I use something like rdtscp or gettimeofday ?</div><div><br></div><div>Karel Madera<br></div></body></html>