<?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>97</bug_id>
          
          <creation_ts>2010-06-15 22:58:20 +0000</creation_ts>
          <short_desc>create target images to contain perf/ftrace</short_desc>
          <delta_ts>2010-12-21 06:07:07 +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>VERIFIED</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="Jessica">jessica.zhang</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</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_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8911</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-06-15 22:58:20 +0000</bug_when>
    <thetext>create a tools target images (both device and qemu) to contain the following tools: gdb-server, oprofile, oprofile-server, powertop, latencytop, pref and ftrace/lttng to better support cross development work and ease of use. Also, make it configuration to add remote agent to the target image</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9131</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-07-28 18:45:58 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; create a tools target images (both device and qemu) to contain the following
&gt; tools: gdb-server, oprofile, oprofile-server, powertop, latencytop, pref and
&gt; ftrace/lttng to better support cross development work and ease of use. Also,
&gt; make it configuration to add remote agent to the target image
I have added gdb-server, oprofile, oprofile-server (in the package oprofileui), powertop, latencytop, lttng and tcf-agent into the target image.

Since Bruce will add pref and ftrace, let me re-assign the bug to him. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9256</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-08-05 14:48:53 +0000</bug_when>
    <thetext>As agreed during the F2F, perf will be done first. Followed by ftrace-cmd.
perf is a sprint 1 deliverable, and is nearly complete. We are waiting on a 
resource for ftrace-cmd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9420</commentid>
    <comment_count>3</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-08-26 01:37:51 +0000</bug_when>
    <thetext>In poky master commit 9a8b644, the target poky-image-sdk with MACHINE set to qemux86 doesn&apos;t contains the perf application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9425</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-08-26 05:55:34 +0000</bug_when>
    <thetext>My part of the bug is complete (perf/ftrace), Richard was
going to add perf into a recommends or put it in another
package list.

Has anyone checked with him ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9426</commentid>
    <comment_count>5</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-08-26 05:59:13 +0000</bug_when>
    <thetext>Yes. I&apos;ve seen the perf application was built in the tmp/work directory and also the perf was added into the task-poky-tools.bb as a recommend. But in the final poky-image-sdk, there is no perf. 

Not sure about the package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9570</commentid>
    <comment_count>6</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-02 21:41:54 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Yes. I&apos;ve seen the perf application was built in the tmp/work directory and
&gt; also the perf was added into the task-poky-tools.bb as a recommend. But in the
&gt; final poky-image-sdk, there is no perf. 
&gt; Not sure about the package.

ftrace is not in any RECOMMENDD or RDEPENDS yet.
I do see perf in meta/packages/tasks/task-poky-tools.bb:
RRECOMMENDS_task-poky-tools-profile = &quot;\
    perf&quot;
but I can&apos;t find it in qemu target image. Looks this is a bug?? Or we need to update some other place to build perf into the target?

Richard and Saul, can you please comment on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9595</commentid>
    <comment_count>7</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-09-05 19:35:26 +0000</bug_when>
    <thetext>Kevin has pinned the bug to the multiple &quot;RRECOMMENDS_task-poky-tools-profile = XXX&quot; in the file &quot;meta/packages/tasks/task-poky-tools.bb&quot;. The latter &quot;RRECOMMENDS_task-poky-tools-profile = kernel-module-oprofile&quot; overrides the original &quot;RRECOMMENDS_task-poky-tools-profile = perf&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9596</commentid>
    <comment_count>8</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-09-05 19:46:37 +0000</bug_when>
    <thetext>I&apos;ve sent the fix for this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9610</commentid>
    <comment_count>9</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-06 20:23:55 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Kevin has pinned the bug to the multiple &quot;RRECOMMENDS_task-poky-tools-profile =
&gt; XXX&quot; in the file &quot;meta/packages/tasks/task-poky-tools.bb&quot;. The latter
&gt; &quot;RRECOMMENDS_task-poky-tools-profile = kernel-module-oprofile&quot; overrides the
&gt; original &quot;RRECOMMENDS_task-poky-tools-profile = perf&quot;.

Yes, that&apos;s it. Sorry, I didn&apos;t concentrate on the bug -- I should have been able to fix it... :-)  Thanks for Kevin&apos;s fix!

&gt; (In reply to comment #5)
&gt; &gt; Yes. I&apos;ve seen the perf application was built in the tmp/work directory and
&gt; &gt; also the perf was added into the task-poky-tools.bb as a recommend. But in the
&gt; &gt; final poky-image-sdk, there is no perf. 
&gt; &gt; Not sure about the package.
&gt; ftrace is not in any RECOMMENDD or RDEPENDS yet.
However, looks ftrace (the PN is trace-cmd) has not added into any RECOMMENDD or RDEPENDS yet? Lianhao, can you use ftrace now? I suppost not. I think we need to send more more fix for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9611</commentid>
    <comment_count>10</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-09-06 20:31:25 +0000</bug_when>
    <thetext>no, the image created(commit e359e25) doesn&apos;t have the ftrace user interface &quot;trace-cmd&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9612</commentid>
    <comment_count>11</comment_count>
      <attachid>39</attachid>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-09-06 20:57:35 +0000</bug_when>
    <thetext>Created attachment 39
trace-cmd added to RRECOMMENDS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9613</commentid>
    <comment_count>12</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2010-09-06 20:58:40 +0000</bug_when>
    <thetext>The simple/obvious fix is this:

diff --git a/meta/packages/tasks/task-poky-tools.bb b/meta/packages/tasks/task-poky-tools.bb
index 581af84..e5d4200 100644
--- a/meta/packages/tasks/task-poky-tools.bb
+++ b/meta/packages/tasks/task-poky-tools.bb
@@ -44,6 +44,7 @@ RDEPENDS_task-poky-tools-profile = &quot;\
 
 RRECOMMENDS_task-poky-tools-profile = &quot;\
     perf \
+    trace-cmd \
     kernel-module-oprofile&quot;
 
 #    exmap-console
-- 

Which I attached as well. My builder is offline, so I didn&apos;t send a pull for
this, since I&apos;m hesitant to send anything as a pull request without actually
building it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10043</commentid>
    <comment_count>13</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-09-29 11:15:15 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=1e65495801ddda1f9db9158723ce8593349cd586</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10726</commentid>
    <comment_count>14</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-21 00:51:44 +0000</bug_when>
    <thetext>The tools are available and we&apos;ve been interacting with them through Eclipse plugin</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>39</attachid>
            <date>2010-09-06 20:57:35 +0000</date>
            <delta_ts>2010-09-06 20:57:35 +0000</delta_ts>
            <desc>trace-cmd added to RRECOMMENDS</desc>
            <filename>0001-trace-cmd-add-to-profiling-recommends.patch</filename>
            <type>application/octet-stream</type>
            <size>865</size>
            <attacher name="Bruce Ashfield">bruce.ashfield</attacher>
            
              <data encoding="base64">RnJvbSBhZDZmNzNlMmNlODkwMjIwYmE3ZmYzMzNiZDYxNzI3NGI2NGE1NmQ5IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBCcnVjZSBBc2hmaWVsZCA8YnJ1Y2UuYXNoZmllbGRAd2luZHJp
dmVyLmNvbT4KRGF0ZTogTW9uLCA2IFNlcCAyMDEwIDIzOjUzOjM5IC0wNDAwClN1YmplY3Q6IFtQ
QVRDSF0gdHJhY2UtY21kOiBhZGQgdG8gcHJvZmlsaW5nIHJlY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