<?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>3717</bug_id>
          
          <creation_ts>2013-01-14 15:56:24 +0000</creation_ts>
          <short_desc>oprofile on PPC needs libpfm</short_desc>
          <delta_ts>2013-02-05 17:48:58 +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>OE-Core</product>
          <component>kernel</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bogdan Marinescu">bogdan.a.marinescu</reporter>
          <assigned_to name="Matthew McClintock">msm-oss</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>msm-oss</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</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>28814</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-01-14 15:56:24 +0000</bug_when>
    <thetext>Starting with version 0.9.8, oprofile on PPC needs libpfm in order to compile (and work) properly if perf events are enabled in the kernel. libpfm does not yet have a recipe in oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29241</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-01-28 17:52:04 +0000</bug_when>
    <thetext>I saw that this bug was supposed to be fixed by this commit:

commit 4de6f9b17c6dd8d50ddb3050a091fae83e91bb71
Author: Matthew McClintock &lt;msm@freescale.com&gt;
Date:   Thu Jan 17 20:23:23 2013 +0000

    oprofile: backport patches to fix ppc build issues


but when doing a ppc build for the following bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3447

which essentially fixes a problem that prevents the &apos;perf events&apos; code from being built, so that it does get built, I still see this problem.

I&apos;m curious if the backported patches really fixed the problem, or it just wasn&apos;t seen because the perf events version somehow wasn&apos;t getting built, or how the perf events version got built in the failing builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29258</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2013-01-28 19:40:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I saw that this bug was supposed to be fixed by this commit:
&gt; 
&gt; commit 4de6f9b17c6dd8d50ddb3050a091fae83e91bb71
&gt; Author: Matthew McClintock &lt;msm@freescale.com&gt;
&gt; Date:   Thu Jan 17 20:23:23 2013 +0000
&gt; 
&gt;     oprofile: backport patches to fix ppc build issues
&gt; 
&gt; 
&gt; but when doing a ppc build for the following bug:
&gt; 
&gt; https://bugzilla.yoctoproject.org/show_bug.cgi?id=3447
&gt; 
&gt; which essentially fixes a problem that prevents the &apos;perf events&apos; code from
&gt; being built, so that it does get built, I still see this problem.
&gt; 
&gt; I&apos;m curious if the backported patches really fixed the problem, or it just
&gt; wasn&apos;t seen because the perf events version somehow wasn&apos;t getting built, or
&gt; how the perf events version got built in the failing builds.

Tom,

That&apos;s one patch from my series that I did not post yet. So, while it &quot;fixes&quot; so build issues it might not really fix anything.

I&apos;ve got some more patches on my master tree I&apos;m testing, but again I need to figure out how to validate/test oprofile before I can submit. See my other patches here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=mattsm/master

Again, I&apos;m swamped... not sure when I will get to this.

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29260</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-01-28 20:37:46 +0000</bug_when>
    <thetext>OK, good to know, thanks.

I&apos;ll post a couple patches shortly for bug 3447.

You can follow the examples in the oprofile section if you want something to test with:

https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling#oprofile

I just added a new section on operf, which should always be built now with the patches for 3447:

https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling#operf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29471</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-02-01 22:21:21 +0000</bug_when>
    <thetext>This is blocking builds on the Autobuilder for PPC!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29505</commentid>
    <comment_count>5</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2013-02-04 23:53:35 +0000</bug_when>
    <thetext>Patches post here: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=mattsm/master&amp;id=3a7776b96e8c558b14bb92e5fc5c0c442794862d

Still need to test on a machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29534</commentid>
    <comment_count>6</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2013-02-05 17:48:58 +0000</bug_when>
    <thetext>Patches submitted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>