Sumanth Umesh
unread,Apr 17, 2024, 2:12:52 PM4/17/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sniper simulator
I am trying to simulate a multi threaded application that uses std::thread for multithreading. For sanity checking this is the c++ program I am using.
I compiled the program with
g++ thread_test.cpp -o thread_test
And ran sniper with
../../run-sniper -v -n 10 -c gainestown ./thread_test
But run into the following error
[SNIPER] Running ['/data2/sumanthu/sniper/record-trace', '-o', '/tmp/tmp0JkU8d/run_benchmarks', '-v', '--pinplay-addr-trans', '-e', '1', '-s', '0', '-r', '1', '--follow', '--routine-tracing', '--', './thread_test']
[SNIPER] Start
[SNIPER] Running ['bash', '-c', '/data2/sumanthu/sniper/lib/sniper -c /data2/sumanthu/sniper/config/base.cfg --general/total_cores=10 --general/output_dir=/data2/sumanthu/sniper/test/thread --config=/data2/sumanthu/sniper/config/nehalem.cfg --config=/data2/sumanthu/sniper/config/gainestown.cfg -g --traceinput/stop_with_first_app=true -g --traceinput/restart_apps=false -g --traceinput/stop_with_first_app=false -g --traceinput/enabled=true -g --traceinput/emulate_syscalls=true -g --traceinput/num_apps=1 -g --traceinput/trace_prefix=/tmp/tmp0JkU8d/run_benchmarks']
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using SIFT/trace-driven frontend
[SNIPER] Running full application in DETAILED mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
[SNIPER] Setting instrumentation mode to DETAILED
[RECORD-TRACE] Using the Pin frontend (sift/recorder)
[SIFT_RECORDER] Running /data2/sumanthu/sniper/pin_kit/pin -mt -injection child -xyzzy -ifeellucky -follow_execv 1 -t /data2/sumanthu/sniper/sift/recorder/obj-intel64/sift_recorder -sniper:verbose 1 -sniper:debug 0 -sniper:roi 0 -sniper:roi-mpi 0 -sniper:f 0 -sniper:d 0 -sniper:b 0 -sniper:o /tmp/tmp0JkU8d/run_benchmarks -sniper:e 1 -sniper:s 0 -sniper:r 1 -sniper:pa 0 -sniper:rtntrace 1 -sniper:stop 0 -- ./thread_test
[SIFT_RECORDER:0:0] Output = [/tmp/tmp0JkU8d/run_benchmarks.app0.th0.sift]
[SIFT_RECORDER:0:0] Response = [/tmp/tmp0JkU8d/run_benchmarks_response.app0.th0.sift]
[CONTROLLER] tid: 0 ip: 0x00000000004045b0 0 Start
[SIFT:0] Error: No such file or directory
[TRACE:0] -- DONE --
Pin app terminated abnormally due to signal 11.
The same program works fine with sniper when I don't use std::thread
Any help is appreciated