Re: opreport error: No sample file found
Yectli Huerta <[email protected]> Tue, 24 Sep 2019 15:27:25 -0500
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <CAGKX4Tf6u5QKh_W=3kfTJyxeJK9QE=mxgJm1HST+2edutqd8Uw@mail.gmail.com> |
On Tue, Sep 24, 2019 at 2:44 PM William Cohen <[email protected]> wrote: > > On 9/24/19 3:42 PM, Yectli Huerta wrote: > > Hi, > > > I try to use opreport but it fails because no sample file is created > > when i run the operf command. i know operf works because the > > default, cpu_clk_unhalted, works. > > Hi, > > OProfile is doing sampling. The interval of the sample is that number in the event description. Given the small number of samples for the cpu_clk_unhalted event (4 total) I would expect the br_inst_retired to very small, possibly zero. It quite possible for the toy "hello world" to get no samples at all for certain hardware events. You might use ocount to see get an actual count. It is likely less than the sample interval. > > -Will > hello, thanks, i tried it on a longer running code and it did work. thanks again. do you have any suggestions on what value to use for the count option? yah operf --event l2_rqsts:1000000:0x3f --event l2_rqsts:1000000:0xff --event l2_rqsts:1000000:0x38 --event l2_rqsts:1000000:0xf8 ./a.out $ opreport Using /home/tech/yhuerta/omp2012_blizzard/omp2012/operf_runs/all_disabled/gcc_4.8.5_32_threads/oprofile_data/samples/ for samples directory. CPU: Intel Skylake microarchitecture, speed 3e+06 MHz (estimated) Counted l2_rqsts events () with a unit mask of 0x38 (Requests from the L1/L2/L3 hardware prefetchers or Load software prefetches that miss L2 cache) count 1000000 Counted l2_rqsts events () with a unit mask of 0x3f (All requests that miss L2 cache) count 1000000 Counted l2_rqsts events () with a unit mask of 0xf8 (Requests from the L1/L2/L3 hardware prefetchers or Load software prefetches) count 1000000 Counted l2_rqsts events () with a unit mask of 0xff (All L2 requests) count 1000000 l2_rqsts:1000000| l2_rqsts:1000000| l2_rqsts:1000000| l2_rqsts:1000000| samples| %| samples| %| samples| %| samples| %| ------------------------------------------------------------------------ 5415 100.000 8772 100.000 9500 100.000 11843 100.000 md_omp_base.compsys l2_rqsts:1000000| l2_rqsts:1000000| l2_rqsts:1000000| l2_rqsts:1000000| samples| %| samples| %| samples| %| samples| %| ------------------------------------------------------------------------ 4422 81.6620 7222 82.3301 7193 75.7158 9329 78.7723 libm-2.17.so 963 17.7839 1482 16.8947 2226 23.4316 2311 19.5136 md_omp_base.compsys 29 0.5355 64 0.7296 81 0.8526 198 1.6719 no-vmlinux 1 0.0185 2 0.0228 0 0 4 0.0338 libgomp.so.1.0.0 0 0 2 0.0228 0 0 1 0.0084 libc-2.17.so > > > > [root@localhost ~]# operf --event br_inst_retired:1000000 ./a.out > > Hello World > > operf: Profiler started > > > > Profiling done. > > [root@localhost ~]# opreport > > Using /root/oprofile_data/samples/ for samples directory. > > opreport error: No sample file found: If using opcontrol for profiling, > > try running 'opcontrol --dump'; otherwise, specify a session containing > > sample files. > > > > [root@localhost ~]# operf ./a.out > > Hello World > > operf: Profiler started > > > > Profiling done. > > [root@localhost ~]# opreport > > Using /root/oprofile_data/samples/ for samples directory. > > CPU: Intel Skylake microarchitecture, speed 3e+06 MHz (estimated) > > Counted cpu_clk_unhalted events () with a unit mask of 0x00 (Core > > cycles when at least one thread on the physical core is not in halt > > state) count 100000 > > cpu_clk_unhalt...| > > samples| %| > > ------------------ > > 4 100.000 a.out > > cpu_clk_unhalt...| > > samples| %| > > ------------------ > > 3 75.0000 no-vmlinux > > 1 25.0000 ld-2.17.so > > [root@localhost ~]# > > > > could you give me some pointers? thanks > > > > yah > > > > > > _______________________________________________ > > oprofile-list mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/oprofile-list > > > -- ++++++++++++++++++++++++++++++++ Yectli Huerta HPC Systems Administrator | www.msi.umn.edu University of Minnesota Supercomputing Institute [email protected]