<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: OProfile and Maemo (N800)</title>
	<atom:link href="http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/</link>
	<description>a hacker analysis of life</description>
	<pubDate>Thu, 20 Nov 2008 17:18:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19452</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Tue, 07 Aug 2007 15:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19452</guid>
		<description>It's some time I have done the profiling, so I may miss something, but it looks fine.

As for run options, I use something like this (I don't have the script at hand now):

opcontrol --init
opcontrol --start
opcontrol --dump
opcontrol --reset

# execute app

opcontrol --shutdown
opreport -l -t1.0 &gt; oprof.txt</description>
		<content:encoded><![CDATA[<p>It&#8217;s some time I have done the profiling, so I may miss something, but it looks fine.</p>
<p>As for run options, I use something like this (I don&#8217;t have the script at hand now):</p>
<p>opcontrol &#8211;init<br />
opcontrol &#8211;start<br />
opcontrol &#8211;dump<br />
opcontrol &#8211;reset</p>
<p># execute app</p>
<p>opcontrol &#8211;shutdown<br />
opreport -l -t1.0 > oprof.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keith</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19431</link>
		<dc:creator>keith</dc:creator>
		<pubDate>Tue, 07 Aug 2007 08:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19431</guid>
		<description>Sorry, I'm just a user of this program. Now I have the original daemonrc. The link to /media/mmc1/oprofile also works. 
I start the daemon (opcontrol --start). When I want to dump I get the message: "Unable to complete dump of oprofile data: is the oprofile daemon running?".

And oprofile data (with your original daemonrc) looks like this:

CPU: ARM11 PMU, speed 0 MHz (estimated)
Counted CPU_CYCLES events (clock cycles counter) with a unit mask of 0x00 (No unit mask) count 10000
 CPU_CYCLES:10000&#124;
  samples&#124;      %&#124;
------------------
        4 26.6667 2710.0x40032000.0x40059000
	 CPU_CYCLES:10000&#124;
	  samples&#124;      %&#124;
	------------------
	        4 100.000 anon (tgid:2710 range:0x40032000-0x40059000)
        3 20.0000 2718.0x40032000.0x40059000
	 CPU_CYCLES:10000&#124;
	  samples&#124;      %&#124;
	------------------

Is this okay, or have I done something wrong?</description>
		<content:encoded><![CDATA[<p>Sorry, I&#8217;m just a user of this program. Now I have the original daemonrc. The link to /media/mmc1/oprofile also works.<br />
I start the daemon (opcontrol &#8211;start). When I want to dump I get the message: &#8220;Unable to complete dump of oprofile data: is the oprofile daemon running?&#8221;.</p>
<p>And oprofile data (with your original daemonrc) looks like this:</p>
<p>CPU: ARM11 PMU, speed 0 MHz (estimated)<br />
Counted CPU_CYCLES events (clock cycles counter) with a unit mask of 0&#215;00 (No unit mask) count 10000<br />
 CPU_CYCLES:10000|<br />
  samples|      %|<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
        4 26.6667 2710.0&#215;40032000.0&#215;40059000<br />
	 CPU_CYCLES:10000|<br />
	  samples|      %|<br />
	&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
	        4 100.000 anon (tgid:2710 range:0&#215;40032000-0&#215;40059000)<br />
        3 20.0000 2718.0&#215;40032000.0&#215;40059000<br />
	 CPU_CYCLES:10000|<br />
	  samples|      %|<br />
	&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Is this okay, or have I done something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19381</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Mon, 06 Aug 2007 13:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19381</guid>
		<description>This is not the the original daemonrc, it contains no VMLINUX, different IMAGE_FILTER, CALLGRAPH (I don't remember about KERNEL_RANGE, I don't have the original handy now).

/var/lib/oprofile should be a link to /media/mmc1/oprofile and not a directory itself.</description>
		<content:encoded><![CDATA[<p>This is not the the original daemonrc, it contains no VMLINUX, different IMAGE_FILTER, CALLGRAPH (I don&#8217;t remember about KERNEL_RANGE, I don&#8217;t have the original handy now).</p>
<p>/var/lib/oprofile should be a link to /media/mmc1/oprofile and not a directory itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keith</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19372</link>
		<dc:creator>keith</dc:creator>
		<pubDate>Mon, 06 Aug 2007 07:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19372</guid>
		<description>Hi. 
Yes, I flashed the provieded kernel.

___DAREMONRC:___
CHOSEN_EVENTS_0=CPU_CYCLES:10000:0:1:1
CHOSEN_EVENTS_1=IFU_IFETCH_MISS:100000:0:1:1
CHOSEN_EVENTS_2=BR_INST_MISS_PRED:100000:0:1:1
NR_CHOSEN=3
SEPARATE_LIB=1
SEPARATE_KERNEL=1
SEPARATE_THREAD=0
SEPARATE_CPU=0
VMLINUX=none
IMAGE_FILTER=/home/user/MyDocs/DigitalMe
CPU_BUF_SIZE=0
CALLGRAPH=2
KERNEL_RANGE=c0023000,80046000
XENIMAGE=none

___VAR_LIB_OPROFILE___
drwxr-xr-x    2 root     root            0 Nov 30  2006 /var/lib/oprofile/

___PROC_MOUNTS___
this file is empty!</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Yes, I flashed the provieded kernel.</p>
<p>___DAREMONRC:___<br />
CHOSEN_EVENTS_0=CPU_CYCLES:10000:0:1:1<br />
CHOSEN_EVENTS_1=IFU_IFETCH_MISS:100000:0:1:1<br />
CHOSEN_EVENTS_2=BR_INST_MISS_PRED:100000:0:1:1<br />
NR_CHOSEN=3<br />
SEPARATE_LIB=1<br />
SEPARATE_KERNEL=1<br />
SEPARATE_THREAD=0<br />
SEPARATE_CPU=0<br />
VMLINUX=none<br />
IMAGE_FILTER=/home/user/MyDocs/DigitalMe<br />
CPU_BUF_SIZE=0<br />
CALLGRAPH=2<br />
KERNEL_RANGE=c0023000,80046000<br />
XENIMAGE=none</p>
<p>___VAR_LIB_OPROFILE___<br />
drwxr-xr-x    2 root     root            0 Nov 30  2006 /var/lib/oprofile/</p>
<p>___PROC_MOUNTS___<br />
this file is empty!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19011</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Tue, 31 Jul 2007 13:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-19011</guid>
		<description>Keith,

Just reinstalling the packages don't assure /root/.oprofile/daemonrc is correct. Also, have you flashed the provided kernel?

Please confirm kernel is flashed and send the contents of the following:
 - /root/.oprofile/daemonrc
 - ls -ld /var/lib/oprofile
 - /proc/mounts</description>
		<content:encoded><![CDATA[<p>Keith,</p>
<p>Just reinstalling the packages don&#8217;t assure /root/.oprofile/daemonrc is correct. Also, have you flashed the provided kernel?</p>
<p>Please confirm kernel is flashed and send the contents of the following:<br />
 - /root/.oprofile/daemonrc<br />
 - ls -ld /var/lib/oprofile<br />
 - /proc/mounts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keith</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-18999</link>
		<dc:creator>keith</dc:creator>
		<pubDate>Tue, 31 Jul 2007 08:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-18999</guid>
		<description>Hi, unfortunately I could not solve my problem (see my posting before).
Now I have (again) installed all the packages provieded at this site. That means that my deamonrc is corret. My MMC has enough space.
I have compiled the application with the "-g", so that I am able to profile the callgraph. But it doesn't work.
Could you give me a short profiling-procedure to make this work? I am really confused since I can't figure out where to search for the problem...</description>
		<content:encoded><![CDATA[<p>Hi, unfortunately I could not solve my problem (see my posting before).<br />
Now I have (again) installed all the packages provieded at this site. That means that my deamonrc is corret. My MMC has enough space.<br />
I have compiled the application with the &#8220;-g&#8221;, so that I am able to profile the callgraph. But it doesn&#8217;t work.<br />
Could you give me a short profiling-procedure to make this work? I am really confused since I can&#8217;t figure out where to search for the problem&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-14618</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Mon, 02 Jul 2007 16:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-14618</guid>
		<description>I'm using almost the same lines, just init, dump and reset more.

You should check your /root/.oprofile/daemonrc, maybe it's corrupted or incorrect. I provide a default one with my packages, also a /root/vmlinux already setup. Also look counters. Do you have a MMC with enough space, is the symlink pointing to an existing directory on MMC?

As for cpu speed not being recognized, it's just a warning message, it also happens for me and other platforms too.

Tip: try to limit data with "-t" and binary images, otherwise opreport will take forever to output data.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using almost the same lines, just init, dump and reset more.</p>
<p>You should check your /root/.oprofile/daemonrc, maybe it&#8217;s corrupted or incorrect. I provide a default one with my packages, also a /root/vmlinux already setup. Also look counters. Do you have a MMC with enough space, is the symlink pointing to an existing directory on MMC?</p>
<p>As for cpu speed not being recognized, it&#8217;s just a warning message, it also happens for me and other platforms too.</p>
<p>Tip: try to limit data with &#8220;-t&#8221; and binary images, otherwise opreport will take forever to output data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keith</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-14603</link>
		<dc:creator>keith</dc:creator>
		<pubDate>Mon, 02 Jul 2007 14:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-14603</guid>
		<description>Thanks for this nice tutorial. I installed all packages you provided. But on my N800 I don't get any results with OProfile.

$ opcontrol --start
// do sth ...
$ opcontrol --shutdown
$ opreport -gdf &#62;&#62; out.txt
// warning: /no-vmlinux could not be found

The report looks completely different than those on the OProfile Homepage. OProfile also does'nt recognize the CPU speed. Do you have any ideas?</description>
		<content:encoded><![CDATA[<p>Thanks for this nice tutorial. I installed all packages you provided. But on my N800 I don&#8217;t get any results with OProfile.</p>
<p>$ opcontrol &#8211;start<br />
// do sth &#8230;<br />
$ opcontrol &#8211;shutdown<br />
$ opreport -gdf &gt;&gt; out.txt<br />
// warning: /no-vmlinux could not be found</p>
<p>The report looks completely different than those on the OProfile Homepage. OProfile also does&#8217;nt recognize the CPU speed. Do you have any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keesj</title>
		<link>http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-10292</link>
		<dc:creator>keesj</dc:creator>
		<pubDate>Sun, 03 Jun 2007 19:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/2007/05/22/oprofile-and-maemo-n800/#comment-10292</guid>
		<description>Thanks at lot for the hard work but even better you blogged about it and now I was able to reproduce it.!

The patch did not apply clearly against the "current" CVS. So I expect I did perform the wrong patch command. anyway my first oprofile session was a big success!</description>
		<content:encoded><![CDATA[<p>Thanks at lot for the hard work but even better you blogged about it and now I was able to reproduce it.!</p>
<p>The patch did not apply clearly against the &#8220;current&#8221; CVS. So I expect I did perform the wrong patch command. anyway my first oprofile session was a big success!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.324 seconds -->
