By default, the Yocto build system strips symbols from the
binaries it packages, which makes it difficult to use some
of the tools.
- </para><para>You can prevent that by putting the following
- in your local.conf when you build the image:
+ </para><para>You can prevent that by setting the
+ <ulink url='&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_STRIP'><filename>INHIBIT_PACKAGE_STRIP</filename></ulink>
+ variable to "1" in your
+ <filename>local.conf</filename> when you build the image:
</para>
</note>
<literallayout class='monospaced'>
<para>
In particular, you'll get the most mileage out of perf if you
- profile an image built with INHIBIT_PACKAGE_STRIP = "1" in your
- local.conf.
+ profile an image built with the following in your
+ <filename>local.conf</filename> file:
+ <literallayout class='monospaced'>
+ <ulink url='&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_STRIP'>INHIBIT_PACKAGE_STRIP</ulink> = "1"
+ </literallayout>
</para>
<para>
</para>
<para>
- One way around that is to put the following in your local.conf
- when you build the image:
+ One way around that is to put the following in your
+ <filename>local.conf</filename> file when you build the image:
<literallayout class='monospaced'>
- INHIBIT_PACKAGE_STRIP = "1"
+ <ulink url='&YOCTO_DOCS_REF_URL;#var-INHIBIT_PACKAGE_STRIP'>INHIBIT_PACKAGE_STRIP</ulink> = "1"
</literallayout>
However, we already have an image with the binaries stripped,
so what can we do to get perf to resolve the symbols? Basically