Sample Test Cases
trace2.pzip
Note that if you like to test these cases without pin, you have to modify userknob.h and trace.h (trace file name) manually and recompile every time you like to change the knob variable (input parameters)
Test case 1: dump out the pipeline
../../../pin -t obj-intel64/sim.so -readtrace 1 -printinst 0 -max_sim_count 0 -max_inst_count 10 -print_pipe_freq 1 -tracename trace2.pzip -o sim_10.out -- /bin/ls > dump_10.txt
dump_10.txt
sim_10.out
Test case2: execute the trace until the end
../../../pin -t obj-intel64/sim.so -readtrace 1 -printinst 0 -max_sim_count 0 -max_inst_count 0 -print_pipe_freq 0 -tracename trace2.pzip -o sim0.out -- /bin/ls > dump0.txt
dump0.txt
sim0.out
Note that the final number of instructions could be 1599560 (if you do not count the last op.)
Please note that +-10 cycles differences in the total cycle count and 0.1% of IPC difference is acceptable.
You must use the exact same command lines to test the test cases at killerbee.
Better solutions for Test case 2
Two students have discovered the problems of the above test case's outputs.
Better solution 1
dump1.txt
sim1.out
Better solution 2
dump2.txt
sim2.out
Using those better solutions, register valid information will be different also.
Note that if your code produce the dump0.txt and sim0.out, you will still receive a full credit.