[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] compilation of ffmpeg with profiling enable



Yes it seams that the missing thing ...
I just discovered when creating a new Microblaze configuration that there is an option in the "Software Platform Settings" from EDK (I use version 10.1) called enable_sw_intrusive_profiling in the "OS and Libraries" section.

Hopping it will enable the staffs ...

Nicolas


2009/5/15 Jim Van Vorst <jvanvorst@xxxxxxxxx>
Doesn't compiling with gprof insert a call to mcount() at every function call entry?
You need to write a mcount function or find the gnu implementation somewhere.


From: owner-microblaze-uclinux@xxxxxxxxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Nicolas Herve
Sent: Friday, May 15, 2009 1:33 PM
To: microblaze-uclinux
Subject: [microblaze-uclinux] compilation of ffmpeg with profiling enable

First I succeed in cross-compiling and running ffmpeg-0.5 on the microblaze.
I compiled it simply with these configure option

./configure --cross-prefix=mb-linux- --arch=microblaze

and I then test on the target with the following command `ffmpeg -i foreman.264 foreman.yuv`.
The resulting file is binary equal to the one generated on the host with the same command [1].

Now I want to do some profiling on the target.
So I recompile the source with these configuration [2].

./configure --prefix=/usr/local --cross-prefix=mb-linux- --arch=microblaze --enable-gprof --build-suffix=-prof

then when making, I have the compilation errors included at end of this mail.
Any idea ?
There is no such problem on the native host compiler build with :
./configure --prefix=/usr/local --enable-gprof --build-suffix=-prof

Has anybody allready used the gprof tool with microblaze binaries ?


Nicolas

---
[1] Yes it is about 500 times slower than on the host (a Core2 Quad @1.6 GHz), but it is for an experimentation.
[2] Indeed, I use two separates build directory builds/default and builds/prof and run the configure script for here (../../configure [opts])
---


mb-linux-gcc -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavdevice -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavformat -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavcodec -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavutil -rdynamic -export-dynamic -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libpostproc -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libswscale -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavfilter -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavdevice -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavformat -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavcodec -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavutil -Wl,-Bsymbolic -p -o ffmpeg_g ffmpeg.o cmdutils.o -lavdevice-prof -lavformat-prof -lavcodec-prof -lavutil-prof -lm -ldl -ldl
ffmpeg.o: In function `opt_video_rc_override_string':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2290: undefined reference to `_mcount'
ffmpeg.o: In function `opt_video_standard':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2613: undefined reference to `_mcount'
ffmpeg.o: In function `opt_vstats_file':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:3671: undefined reference to `_mcount'
ffmpeg.o: In function `opt_audio_channels':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2602: undefined reference to `_mcount'
ffmpeg.o: In function `opt_audio_rate':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2596: undefined reference to `_mcount'
ffmpeg.o:/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2576: more undefined references to `_mcount' follow
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1