[oe] profiling howto?
Steffen Sledz
sledz at dresearch.de
Thu Feb 3 08:30:14 UTC 2011
Am 02.02.2011 13:59, schrieb Steffen Sledz:
> Am 02.02.2011 10:54, schrieb Steffen Sledz:
>> Has anybody some instructions/hints how to enable profiling
>> support for selected libs and/or binaries in OE?
>
> The local.conf.sample does contain this section:
>
> # Uncomment these to build a package such that you can use gprof to profile it.
> # NOTE: This will only work with 'linux' targets, not
> # 'linux-uclibc', as uClibc doesn't provide the necessary
> # object files. Also, don't build glibc itself with these
> # flags, or it'll fail to build.
> #
> # PROFILE_OPTIMIZATION = "-pg"
> # SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
> # LDFLAGS =+ "-pg"
>
> This seems to do the work for the complete image.
Hmmmm? Unfortunately not in all cases. Enabling the options mentioned above and making a clean build results in
| ...
| checking for .preinit_array/.init_array/.fini_array support... no
| configure: error: Need linker with .init_array/.fini_array support.
| ERROR: Function do_configure failed
NOTE: package glibc-2.9-r36.3: task do_configure: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/sledz/work/openembedded/recipes/glibc/glibc_2.9.bb do_configure failed
ERROR: Task 127 (/home/sledz/work/openembedded/recipes/glibc/glibc_2.9.bb, do_configure) failed with 256
Any ideas?
Steffen
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz at DResearch.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
More information about the Openembedded-devel
mailing list