Hi Wim,
When I run the fft example by putting --gdb option, the workload (that is fft) execution completes with gdb letting me set the breakpoint. How can I set the break point on the source code of sniper?
Following is the output of running the "fft" example with "--gdb" option.
naveed@naveedVM:~/repos/GraphProc/BaseSniper/sniper/test/fft$ make run
cc -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-avx2 -I/home/naveed/repos/GraphProc/BaseSniper/sniper/include -c -o fft.o fft.c
In file included from fft.c:67:0:
/home/naveed/repos/GraphProc/BaseSniper/sniper/include/sim_api.h:79:47: warning: backslash and newline separated by space [enabled by default]
__asm__ __volatile__ ( \
^
cc fft.o -lm -static -L/home/naveed/repos/GraphProc/BaseSniper/sniper/lib -pthread -o fft
../../run-sniper --gdb -n 2 -c gainestown --roi --viz -- ./fft -p 2
[SNIPER] Start
Running /home/naveed/repos/GraphProc/BaseSniper/sniper/pin_kit/intel64/bin/pinbin -mt -injection child -xyzzy -enable_vsm 0 -pause_tool 1 -t /home/naveed/repos/GraphProc/BaseSniper/sniper/lib/pin_sim -c /home/naveed/repos/GraphProc/BaseSniper/sniper/config/base.cfg --general/total_cores=2 --general/output_dir=/home/naveed/repos/GraphProc/BaseSniper/sniper/test/fft --config=/home/naveed/repos/GraphProc/BaseSniper/sniper/config/nehalem.cfg --config=/home/naveed/repos/GraphProc/BaseSniper/sniper/config/gainestown.cfg -g --general/magic=true -g --traceinput/stop_with_first_app=true -g --traceinput/restart_apps=false -g --hooks/numscripts=1 -g --hooks/script0name=/home/naveed/repos/GraphProc/BaseSniper/sniper/test/fft/
sim.scripts.py -g --hooks/script0args= -- ./fft -p 2
Reading symbols from /home/naveed/repos/GraphProc/BaseSniper/sniper/pin_kit/intel64/bin/pinbin...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00002b386d7e8d30 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
add symbol table from file "/home/naveed/repos/GraphProc/BaseSniper/sniper/lib/pin_sim.so" at
.text_addr = 0x2b386dc34dc0
.data_addr = 0x2b386e68caa0
.bss_addr = 0x2b386e68ea60
Resuming
Executing Python script /home/naveed/repos/GraphProc/BaseSniper/sniper/test/fft/
sim.scripts.py[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using Pin frontend
[SNIPER] Running pre-ROI region in CACHE_ONLY mode
[SNIPER] Running application ROI in DETAILED mode
[SNIPER] Running post-ROI region in FAST_FORWARD mode
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Enabling performance models
[SNIPER] Setting instrumentation mode to DETAILED
[SNIPER] Disabling performance models
[SNIPER] Leaving ROI after 3.57 seconds
[SNIPER] Simulated 1.1M instructions, 0.9M cycles, 1.28 IPC
[SNIPER] Simulation speed 318.3 KIPS (159.2 KIPS / target core - 6283.2ns/instr)
[SNIPER] Sampling: executed 50.23% of simulated time in detailed mode
[SNIPER] Setting instrumentation mode to FAST_FORWARD
FFT with Blocking Transpose
1024 Complex Doubles
2 Processors
65536 Cache lines
16 Byte line size
4096 Bytes per page
PROCESS STATISTICS
Computation Transpose Transpose
Proc Time Time Fraction
0 149 18 0.12081
TIMING INFORMATION
Start time : -1844408316
Initialization finish time : -1844408135
Overall finish time : -1844407986
Total time with initialization : 330
Total time without initialization : 149
Overall transpose time : 18
Overall transpose fraction : 0.12081
[Inferior 1 (process 23854) exited normally]
(gdb)
Thanks for your guidance.