Καλημέρα σας,
Φτάνοντας στο παράδειγμα χρήσης του simulator pintool, έχω γράψει με προσοχή την παρακάτω εντολή εκτελώντας την μέσα στο path του ~/Λήψεις/parsec-3.0/parsec_workspace το οποίο περιλαμβάνει τα executables και τα inputs. Η εντολή που εκτελώ λοιπόν είνα:
/home/giannis/Λήψεις/pin-3.2-81205-gcc-linux/pin -t /home/giannis/Λήψεις/advcomparch-2016-17-ex1-helpcode/pintool/obj-intel64/simulator.so -o my_output.out –L1c 64 –L1a 8 –L1b 64 –L2c 256 –L2a 8 –L2b 64 -TLBe 64 –TLBa 4 –TLBp 4096 -- /home/giannis/Λήψεις/parsec-3.0/parsec_workspace/executables/blackscholes 1 /home/giannis/Λήψεις/parsec-3.0/ parsec_workspace/inputs/in_64K.t
Το αποτέλεσμα που μου βγάζει είναι το εξής:
This tool represents a 2-level tlb & cache simulator.
Pin tools switches
-L1a [default 8] L1 cache associativity (1 for direct mapped) -L1b [default 64] L1 cache block size in bytes -L1c [default 32] L1 cache size in kilobytes -L2a [default 8] L2 cache associativity (1 for direct mapped) -L2b [default 64] L2 cache block size in bytes -L2c [default 256] L2 cache size in kilobytes -L2prf [default 0] Number of lines to prefetch to L2 (0 disables prefetching) -TLBa [default 4] TLB associativity (1 for direct mapped) -TLBe [default 64] TLB size in #entries -TLBp [default 4096] Page size in bytes -h [default 0] Print help message (Return failure of PIN_Init() in order to allow the tool to print help message) -help [default 0] Print help message (Return failure of PIN_Init() in order to allow the tool to print help message) -logfile [default pintool.log] The log file path and file name -o [default cslab_cache.out] specify dcache file name -unique_logfile [default 0] The log file names will contain the pid
Line information controls
-discard_line_info Discard line information for specific module. Module name should be a short name without path, not a symbolic link -discard_line_info_all [default 0] Discard line information for all modules. -dwarf_file Point pin to a different file for debug information. Syntax: app_executable:<path_to_different_fileExaple (OS X): -dwarf_file get_source_app:get_s ource_app.dSYM/Contents/Resources/DWARF/get_source_app
Symbols controls
-ignore_debug_info [default 0] Ignore debug info for the image. Symbols are taken from the symbol tables. -reduce_rtn_size_mode [default auto] Mode for RTN size reduction: delete trailing instructions after RET if there is no jump to the rtn part after the RET. Possible modes are: auto/never/always -short_name [default 0] Use the shortest name for the RTN. Names with version substrings are preferred over the same name without the substring. -support_jit_api [default 0] Enables the Jitted Functions Support -unrestricted_rtn_size [default 0] Use the unrestricted RTN size. When set the RTN size defined by the distance between RTN start to the beginning of next RTN.
Statistic switches
-profile [default 0] print amount of memory dynamically allocated but not yet freed by the tool -statistic [default 0] print general statistics
General switches (available in pin and tool)
-slow_asserts [default 0] Perform expensive sanity checks
- -reduce_rtn_size_mode [default auto] Mode for RTN size reduction: delete trailing instructions after RET if there is no jump to the rtn part after the RET. Possible modes are: auto/never/always -short_name [default 0] Use the shortest name for the RTN. Names with version substrings are preferred over the same name without the substring. -support_jit_api [default 0] Enables the Jitted Functions Support -unrestricted_rtn_size [default 0] Use the unrestricted RTN size. When set the RTN size defined by the distance between RTN start to the beginning of next RTN.
Statistic switches
-profile [default 0] print amount of memory dynamically allocated but not yet freed by the tool -statistic [default 0] print general statistics
General switches (available in pin and tool)
-slow_asserts [default 0] Perform expensive sanity checks
Είναι σωστό αυτό που μου εμφανίζει? Δεν θα έπρεπε να μου εμφανίζει κάποιο αποτέλεσμα σε output??
Ευχαριστώ.
Εστάλη από το Outlookhttp://aka.ms/weboutlook
advcomparch@lists.cslab.ece.ntua.gr