Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: Discover and Uncover User's Guide Oracle Solaris Studio 12.3 Information Library |
2. Memory Error Discovery Tool (Discover)
3. Code Coverage Tool (Uncover)
Requirements for Using Uncover
Running the Instrumented Binary
Generating and Viewing the Coverage Report
Understanding the Coverage Report in the Performance Analyzer
Understanding the HTML Coverage Report
Limitations When Using Uncover
Only Annotated Code Can Be Instrumented
If you specify the -t option when you generate the coverage report from the coverage data directory, Uncover writes a coverage report to the specified ASCII (text file).
UNCOVER Code Coverage Total Functions: 95 Covered Functions: 58 Function Coverage: 61.1% Total Basic Blocks: 568 Covered Basic Blocks: 258 Basic Block Coverage: 45.4% Total Basic Block Executions: 564,812,760 Average Executions per Basic Block: 994,388.66 Total Instructions: 6,201 Covered Instructions: 3,006 Instruction Coverage: 48.5% Total Instruction Executions: 4,760,934,518 Average Executions per Instruction: 767,768.83 Number of times this program was executed: unavailable Functions sorted by metric: Exclusive Uncoverage Excl. Excl. Excl. Excl. Name Uncoverage Function Block Instr Count Covered % Covered % 13404 6004876 5464 5384 <Total> 1036 0 0 0 main 980 0 0 0 iofile 748 0 0 0 do_vforkexec 732 0 0 0 callso 708 0 0 0 do_forkexec 648 0 0 0 callsx 644 0 0 0 sigprof 644 0 0 0 sigprofh 556 0 0 0 do_chdir 548 0 0 0 correlate 492 0 0 0 do_popen 404 0 0 0 pagethrash 384 0 0 0 so_cputime 384 0 0 0 sx_cputime 348 0 0 0 itimer_realprof 336 0 0 0 ldso 304 0 0 0 hrv 300 0 0 0 do_system 300 0 0 0 do_burncpu 300 0 0 0 sx_burncpu 288 0 0 0 forkcopy 276 0 0 0 masksignals 256 0 0 0 sigprof_handler 256 0 0 0 sigprof_sigaction 216 0 0 0 do_exec 196 0 0 0 iotest 176 0 0 0 closeso 156 0 0 0 gethrustime 144 0 0 0 forkchild 144 0 0 0 gethrpxtime 136 0 0 0 whrlog 112 0 0 0 masksig 92 0 0 0 closesx 84 0 0 0 reapchildren 36 0 0 0 reapchild 32 0 0 0 doabort 8 0 0 0 csig_handler 0 1 66 72 acct_init 0 1 100 100 bounce 0 63 100 96 bounce_a 0 60 100 100 bounce-b 0 16 71 58 check_sigmask 0 1 83 77 commandline 0 1 100 98 cputime 0 1 100 98 dousleep 0 1 100 100 endcases 0 1 100 95 ext_inline_code 0 1 100 96 ext_macro_code 0 1 100 99 fitos 0 2 81 80 get_clock_rate 0 1 100 100 get_ncpus 0 1 100 100 gpf 0 1 100 100 gpf_a 0 1 100 100 gpf_b 0 10 100 93 gpf_work 0 1 100 97 icputime 0 1 100 96 inc_body 0 1 100 96 inc_brace 0 1 100 95 inc_entry 0 1 100 95 inc_exit 0 1 100 96 inc_func 0 1 100 94 inc_middle 0 1 57 72 init_micro_acct 0 1 50 43 initcksig 0 1 100 95 inline_code 0 1 100 95 macro_code 0 1 100 98 muldiv 0 6000000 100 100 my_irand 0 1 100 98 naptime 0 19 50 83 prdelta 0 21 100 100 prhrdelta 0 21 100 100 prhrvdelta 0 1 100 100 prtime 0 552 100 98 real_recurse 0 1 100 100 recurse 0 1 100 100 recursedeep 0 1 100 95 s_inline_code 0 1 100 100 sigtime 0 1 100 95 sigtime_handler 0 19 100 100 snaptod 0 1 100 100 so_init 0 2 66 75 stpwtch_alloc 0 1 100 100 stpwtch_calibrate 0 2 75 66 stpwtch_print 0 2002 100 100 stpwtch_start 0 2000 90 91 stpwtch_stop 0 1 100 100 sx_init 0 1 100 99 systime 0 3 100 95 tailcall_a 0 3 100 95 tailcall_b 0 3 100 95 tailcall_c 0 1 100 100 tailcallopt 0 1 100 97 underflow 0 21 75 71 whrvlog 0 19 100 100 wlog Instruction frequency data from experiment a.out.er Instruction frequencies of /export/home1/synprog/a.out.uc Instruction Executed () TOTAL 4760934518 (100.0) float ops 2383657378 ( 50.1) float ld st 1149983523 ( 24.2) load store 1542440573 ( 32.4) load 882693735 ( 18.5) store 659746838 ( 13.9) ------------------------------------------- Instruction Executed () Annulled In Delay Slot TOTAL 4760934518 (100.0) add 713013787 ( 15.0) 16 1501335 subcc 558774858 ( 11.7) 0 6002 br 558769261 ( 11.7) 0 0 stf 432500661 ( 9.1) 726 36299281 ldf 408226488 ( 8.6) 40 103000396 faddd 391230847 ( 8.2) 0 0 fdtos 366200726 ( 7.7) 0 0 fstod 360200000 ( 7.6) 0 0 lddf 288250336 ( 6.1) 500 282200229 stw 138028738 ( 2.9) 26002 25974065 lduw 118004305 ( 2.5) 71 94000270 ldx 68212446 ( 1.4) 0 2000 stx 68211370 ( 1.4) 7 23532716 fitod 36026002 ( 0.8) 0 0 sethi 36002986 ( 0.8) 0 228 fdtoi 30000001 ( 0.6) 0 0 fdivd 26000088 ( 0.5) 0 0 call 22250348 ( 0.5) 0 0 srl 21505246 ( 0 5) 0 21 stdf 21006038 ( 0.4) 0 0 or 19464766 ( 0.4) 0 10981277 fmuls 6004907 ( 0.3) 0 0 jmpl 6004853 ( 0.1) 0 0 save 6004852 ( 0.1) 0 0 restore 6002294 ( 0.1) 0 6004852 sub 6000019 ( 0.1) 0 0 xor 6000000 ( 0.1) 0 0 fitos 6000000 ( 0.1) 0 0 fstoi 6000000 ( 0.1) 0 0 and 6000000 ( 0.1) 0 0 andn 6000000 ( 0.1) 0 0 sll 3505225 ( 0.1) 0 0 nop 3505219 ( 0.1) 0 3505219 fxtod 7763 ( 0.0) 0 0 bpr 6000 ( 0.0) 0 0 fcmped 4837 ( 0.0) 0 0 fbr 4837 ( 0.0) 0 0 fmuld 2850 ( 0.0) 0 0 orcc 383 ( 0.0) 0 0 sra 241 ( 0.0) 0 0 ldsb 160 ( 0.0) 0 0 mulx 87 ( 0.0) 0 0 stb 31 ( 0.0) 0 0 mov 21 ( 0.0) 0 0 fdtox 15 ( 0.0) 0 0 ==========================================================