Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Steffen Sledz <sledz@dresearch.de>
To: openembedded-devel@lists.openembedded.org
Subject: Re: profiling howto?
Date: Thu, 03 Feb 2011 09:05:50 +0100	[thread overview]
Message-ID: <4D4A61DE.8070808@dresearch.de> (raw)
In-Reply-To: <4D49584D.3010502@freyther.de>

Am 02.02.2011 14:12, schrieb Holger Freyther:
> On 02/02/2011 01:59 PM, Steffen Sledz wrote:
>> Am 02.02.2011 10:54, schrieb Steffen Sledz:
>>
>> But is it possible to enable profiling for selected libs and/or binaries only?
> 
> yes, you can use the classic override system... just place _pn-PN to these
> variables or such. But be aware that if your app will call some other library
> and there are no framepointers there will be no backtrace.. same applies to
> functions written in assembly, e.g. memcpy...

Hmmmm? This doesn't seem to work. :(

If local.conf contains this
 ------------->snip<------------
 PROFILE_OPTIMIZATION = "-pg"

 SELECTED_OPTIMIZATION_pn-libsoup = "${PROFILE_OPTIMIZATION}"
 LDFLAGS_pn-libsoup =+ "-pg"

 SELECTED_OPTIMIZATION_pn-libgupnp = "${PROFILE_OPTIMIZATION}"
 LDFLAGS_pn-libgupnp =+ "-pg"

 SELECTED_OPTIMIZATION_pn-libgssdp = "${PROFILE_OPTIMIZATION}"
 LDFLAGS_pn-libgssdp =+ "-pg"
 ------------->snip<------------

after a clean build tmp.6/work/armv5te-angstrom-linux-gnueabi/libsoup-2.4-2.29.91-r0/temp/run.do_compile.7972 contains this
 ------------->snip<------------
 export TARGET_CFLAGS="-isystem/home/DRESEARCH/sledz/work/HydraIP/OE/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2"
 ------------->snip<------------

If setting the optimization params globally in local.conf to
------------->snip<------------
PROFILE_OPTIMIZATION = "-pg"
SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
LDFLAGS =+ "-pg"
------------->snip<------------

everything seems to be OK:
------------->snip<------------
export TARGET_CFLAGS="-isystem/home/DRESEARCH/sledz/work/HydraIP/OE/tmp.6/sysroots/armv5te-angstrom-linux-gnueabi/usr/include -pg"
------------->snip<------------

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@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




  reply	other threads:[~2011-02-03  8:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02  9:54 profiling howto? Steffen Sledz
2011-02-02 10:11 ` Holger Freyther
2011-02-02 11:12   ` Henning Heinold
2011-02-02 12:59 ` Steffen Sledz
2011-02-02 13:12   ` Holger Freyther
2011-02-03  8:05     ` Steffen Sledz [this message]
2011-02-03  9:00       ` Holger Freyther
2011-02-03 10:44         ` Steffen Sledz
2011-02-03  8:30   ` Steffen Sledz
2011-02-03  8:54     ` Jan Paesmans
2011-02-03 10:52       ` Steffen Sledz
2011-02-03 11:30         ` Holger Freyther
2011-02-03 11:50           ` Steffen Sledz
2011-02-03 11:53             ` Holger Freyther
2011-02-03 12:07               ` Steffen Sledz
2011-02-03 12:14                 ` Holger Freyther
2011-02-03 13:06                   ` Steffen Sledz
2011-02-03 13:10                     ` Holger Freyther
2011-02-04 12:09                       ` Steffen Sledz
2011-02-03 14:25                 ` Phil Blundell
     [not found]                 ` <1296735116.2258.44.camel@phil-desktop>
2011-02-03 14:25                   ` Phil Blundell
2011-02-03 22:34                     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D4A61DE.8070808@dresearch.de \
    --to=sledz@dresearch.de \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox