<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>311</bug_id>
          
          <creation_ts>2010-09-13 09:19:09 +0000</creation_ts>
          <short_desc>fixes for perf</short_desc>
          <delta_ts>2010-12-21 06:07:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9766</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2010-09-13 09:19:09 +0000</bug_when>
    <thetext>perf is included in poky, but there are few things needed to make it work/work better - this bug is meant to track the problems until everything is fixed.

The first problem an unresolved library reference:

perf: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory

The fix, which I&apos;ll check in once I&apos;m set up for it, is:

diff --git a/meta/recipes-kernel/linux/linux-wrs_git.bb b/meta/recipes-kernel/li
index 34451dd..cf910e0 100644
--- a/meta/recipes-kernel/linux/linux-wrs_git.bb
+++ b/meta/recipes-kernel/linux/linux-wrs_git.bb
@@ -167,4 +167,4 @@ addtask install_perf after do_install before do_package do_d
 
 do_compile_perf[depends] =  &quot;virtual/libc:do_populate_sysroot&quot;
 do_compile_perf[depends] =+ &quot;elfutils:do_populate_sysroot&quot;
-RDEPENDS_perf += &quot;python perl&quot;
+RDEPENDS_perf += &quot;python perl elfutils&quot;

Thanks to Bruce Ashfield for point out the fix.

The next problem is that &apos;perf trace -l&apos; shows no scripts, which should be fixed by including all the files copied by &apos;perf install&apos; e.g. using prefix=/usr should put them in /usr/libexec (note that there may be a perf/tools patch needed to properly handle the new prefix).  Also probably need to install and compile against libperl-dev and python-dev in order to get support for the embedded interpreters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9767</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-09-13 12:23:53 +0000</bug_when>
    <thetext>The missing embedded interpreters part was on purpose. 
For an embedded target, those aren&apos;t always available and
keeping foot print in mind, they are skipped. If added, they need
to be optional.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10039</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-09-29 10:06:44 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=a50dd612adc6dce0af5bae35dad14d4435b5184b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>