2008-01-07 01:19:37 oprofile
pavithra D (INDIA)
Message: 49309 Hi All,
I am using using uclinux-2007R1-Rc1 distribution with the support of oprofile 0.9.1. I am trying to get the profiling result for mplayer application,but i am able to get only for vmlinux.Could anyone please suggest me where i am wrong.
Thanks and Regards,
pavithra
QuoteReplyEditDelete
2008-01-07 10:44:09 Re: oprofile
Mike Frysinger (UNITED STATES)
Message: 49319 oprofile at the moment only supports profiling the kernel ... there is a task open at the moment to address this
QuoteReplyEditDelete
2008-01-08 02:12:44 Re: oprofile
pavithra D (INDIA)
Message: 49347 Thank you Mike.
By default oprofile was profiling in timer mode,that time i was not able to create /dev/oprofile/0/enable files.So i did modification and now i am able to create the files but the problem is timer mode is not enabling now,i am getting results using hardware performance monitoring.So could i get any idea how could i enable timer interrupts and nmi interrupt for bf561 in uclinux environment for profiling.
Regards,
Pavithra
QuoteReplyEditDelete
2008-01-09 10:48:06 Re: oprofile
Robin Getz (UNITED STATES)
Message: 49399 Pavithra:
This is alot of work to figure out, and right now - it is low on the list of things to do.
Which codec are you interested in? I might be able to just do some quick profiling here with some other tools.
-Robin
QuoteReplyEditDelete
2008-01-10 08:23:56 Re: oprofile
pavithra D (INDIA)
Message: 49444 Hello Sir,
Thank you very much for the reply.I am using MPEG-4 codec.So please help me in profiling this application, and using mplayer optimized one.
May i know any other tools instead of oprofile to do profilin on bf561.
Thanks and Regards,
pavithra
QuoteReplyEditDelete
2008-01-10 10:05:53 Re: oprofile
Robin Getz (UNITED STATES)
Message: 49447 Pavithra:
See:
http://docs.blackfin.uclinux.org/doku.php?id=profiling
-Robin
QuoteReplyEditDelete
2008-01-10 23:45:05 Re: oprofile
pavithra D (INDIA)
Message: 49467 Hi Robin,
Thank you for the reply.I have gone through that document before starting profiling,i followed the same procedures but not able to get samples.Statistical profiling is for VDSP++.I will try my best to get the results.If you find any results please let me know.
Thanks and Regards,
pavithra
QuoteReplyEditDelete
2008-01-12 11:06:59 Re: oprofile
Robin Getz (UNITED STATES)
Message: 49534 Here are the top consumers while ffmpeg is encoding a stream from a camera to a mpeg4 stream.
% % cumulative Library:Symbol
18.35% 18.35% libavcodec.so.51:_dct_quantize_c
10.10% 28.45% libavcodec.so.51:_ff_bfin_diff_pixels
8.98% 37.43% libavcodec.so.51:_ff_bfin_fdct
4.86% 42.28% libavcodec.so.51:_encode_thread
4.55% 46.83% libavcodec.so.51:_ff_bfin_z_sad8x8
4.21% 51.04% libavcodec.so.51:_ff_estimate_p_frame_motion
4.21% 55.24% libuClibc-0.9.29.so:___GI_memcpy
3.84% 59.08% libavcodec.so.51:_ff_epzs_motion_search
3.76% 62.84% libavcodec.so.51:_ff_bfin_z_sad16x16
3.03% 65.87% libavcodec.so.51:_ff_bfin_put_pixels16uc
2.74% 68.61% libavcodec.so.51:_ff_bfin_z_put_pixels16_xy2
2.46% 71.07% libavcodec.so.51:_mpeg4_encode_blocks
2.29% 73.36% libavcodec.so.51:_ff_bfin_idct
2.22% 75.58% libavcodec.so.51:_MPV_decode_mb
2.03% 77.61% libavcodec.so.51:_ff_bfin_put_pixels8uc_nornd
1.97% 79.58% libavcodec.so.51:_ff_bfin_put_pixels16uc_nornd
1.56% 81.14% libavcodec.so.51:_ff_bfin_put_pixels8uc
1.48% 82.62% libavcodec.so.51:_mpeg4_encode_mb
1.45% 84.07% libavcodec.so.51:_ff_bfin_pix_sum
1.45% 85.52% libavcodec.so.51:_ff_bfin_get_pixels
1.31% 86.83% libavcodec.so.51:_dct_unquantize_h263_intra_c
1.16% 87.98% libavcodec.so.51:_sad_hpel_motion_search
1.10% 89.09% libavcodec.so.51:_MPV_motion
0.99% 90.08% libavcodec.so.51:_ff_h263_update_motion_val
0.95% 91.03% libavcodec.so.51:_ff_bfin_put_pixels_clamped
0.78% 91.81% libm-0.9.29.so:___udivsi3
0.65% 92.46% libavcodec.so.51:_ff_bfin_sse16
0.61% 93.08% libavcodec.so.51:__init
0.46% 93.54% libavcodec.so.51:_pix_norm1_blkfn_loopStart
0.34% 93.88% Kernel[mt9m001]:_printk
0.33% 94.20% libuClibc-0.9.29.so:___GI_memset
0.28% 94.49% libswscale.so.0:_swScale_C
0.28% 94.76% libavcodec.so.51:_draw_edges_c
0.25% 95.01% libavcodec.so.51:_bfin_pix_abs16_xy2
0.21% 95.22% libavcodec.so.51:_ff_update_block_index
0.20% 95.42% libavcodec.so.51:___floatsidf
0.19% 95.61% libavcodec.so.51:_bfin_pix_abs8
0.19% 95.80% libavcodec.so.51:___divdf3
0.18% 95.99% libavcodec.so.51:_ff_get_best_fcode
Then there is 5% of other "stuff" - which really isn't worth looking at - the kernel and the rest of userspace.
-Robin
QuoteReplyEditDelete
2008-01-15 23:41:37 Re: oprofile
pavithra D (INDIA)
Message: 49635 Hello Robin,
Thank you very much for your great help.May i know which profiler you have used to get profiling data for mplayer on BF561 using uclinuxdistR1-Rc3-2007,so that i can try out to get the profiling data.
The above is the data for encoding which is more complex than decoding,since we are giving the already encoded files(mpeg4 etc) there is no encoding that happens only decoding is required.And we are taking a mpeg file from CF and playing it.
Would you suggest me what are the modifications needed to make that profiler to work on my target and its version and would i able to get profiling for decoding using this profiler.It will be a great favour.
Thanks and Regards,
pavithra
QuoteReplyEditDelete
2008-01-16 01:22:20 Re: oprofile
Robin Getz (UNITED STATES)
Message: 49638 Pavithra:
Like I said before:
http://docs.blackfin.uclinux.org/doku.php?id=statistical_profiling
-Robin
QuoteReplyEditDelete
2008-01-16 23:24:48 Re: oprofile
pavithra D (INDIA)
Message: 49707
Hi Robin,
Thank you very much.So i can use VDSP++ for profiling.Please could you tell me which version of VDSP and JTAG are compatible with BF561. I am using VDSP++ 4.5 and we got JTAG from Analog Devices i.e ADZS-USB-ICE .Can i use it for profiling.
Regards,
pavithra
QuoteReplyEditDelete
2008-01-16 23:48:17 Re: oprofile
Robin Getz (UNITED STATES)
Message: 49710 Pavithra:
Everything is in the documentation. Go read it. I'm not going to repeat it here.
-Robin
QuoteReplyEditDelete
2008-01-16 23:51:16 Re: oprofile
pavithra D (INDIA)
Message: 49712
Thank you Robin