[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-list
Subject:    Re: oprofile-0.9.7 can't open unit mask description file
From:       ljpapuga <ljubomir.papuga () gmail ! com>
Date:       2012-01-26 9:19:21
Message-ID: 33206255.post () talk ! nabble ! com
[Download RAW message or body]


Thanks for the info Paul & Maynard.
My kernel is indeed not up to date (I'm using 2.6.32), so I'll try out both
the hack and the newer kernel versions and will report how that worked.

Ljubomir.

Paul Lind wrote:
> 
> Hi Ljubomir - 
> 
> Maynard was correct, it would appear your kernel is down-rev. The earlier
> kernels that supported 1004K reported the cpu type to oprofile as 34K (a
> hack that worked with earlier versions of oprofile, which themselves did
> not support 1004K).
> 
> Starting with 2.6.35.9, the kernel correctly reports 1004K, which is then
> compatible with oprofile-0.9.7.
> 
> You can get that kernel (and more recent ones) from here:
> 
> git clone git://git.linux-mips.org/pub/scm/linux-mti
> git checkout -b linux-mti-2.6.35.9 origin/linux-mti-2.6.35.9
> 
> 
> Alternatively, you could try removing this hack in your current kernel
> (though I have not tested that this is sufficient, and I recommend that
> you use a released kernel version):
> 
> diff --git a/arch/mips/oprofile/op_model_mipsxx.c
> b/arch/mips/oprofile/op_model_mipsxx.c
> index 6504282..48879c5 100644
> --- a/arch/mips/oprofile/op_model_mipsxx.c
> +++ b/arch/mips/oprofile/op_model_mipsxx.c
> @@ -338,11 +338,8 @@ static int __init mipsxx_init(void)
> break;
> 
> case CPU_1004K:
> -#if 0
> -               /* FIXME: report as 34K for now */
> op_model_mipsxx_ops.cpu_type = "mips/1004K";
> break;
> -#endif
> 
> case CPU_34K:
> op_model_mipsxx_ops.cpu_type = "mips/34K";
> 
> 
> 
> Thanks,
> 
> 
> paul
> 
> On 1/25/12 6:38 AM, "Maynard Johnson" <maynardj@us.ibm.com> wrote:
> 
> > On 01/25/2012 08:16 AM, Colin Wernham wrote:
> > > 
> > > I also had this problem as support for mips octeon chip type is not in
> > > oprofiler.
> > > I did find a patch to add support in an old oprofile post from 2007,
> > > which
> > > got me over this.
> > > Have a search to see if an equivalent patch has been made before.
> > > Also here's the link to my patch so that you can see the places where
> > > changes need to be made for your chip:
> > > 
> > > http://old.nabble.com/-PATCH--Support-for-Cavium-Octeon-performance-count
> > > ers-td10026688.html
> > > 
> > > 
> > > ljpapuga wrote:
> > > > 
> > > > Thanks for help Colin.
> > > > 
> > > > This helps with the second part of my problem, now oprofile can read
> > > > the
> > > > unit mask descriptor file.
> > > > Unfortunately, it still aims for the 34K platform. Compiling with
> > > > --host=mipsisa32r2-timesys-linux-gnu didn't help.
> > > > I realized that oprofile parses the content of /dev/oprofile/cpu_type
> > > > file
> > > > and I can see that the cpu_type specified is indeed mips 34K. However,
> > > > /proc/cpuinfo states that my cpu has 4 1004Kc processors. Now I wonder
> > > > how
> > > > does oprofile set the parameters in this file.
> > This sounds to me like your oprofile kernel driver is back-level and does
> > not support 1004K.  What distro/kernel version are you running on?  Paul
> > Lind (on cc) can probably help determine what level you need.
> > 
> > -Maynard 
> > > > 
> > > > 
> > > > Colin Wernham wrote:
> > > > > 
> > > > > The --host needs to specify the entire arch-chip-os etc for the
> > > > > target.
> > > > > For Mips octeon I use:
> > > > > --host=mips64-octeon-linux-gnu.
> > > > > 
> > > > > Also before running ./opcontrol, make the subdirectory ./mips/1004k
> > > > > and
> > > > > copy the contents of oprofile-0.9.7/events/mips/1004k into it.
> > > > > And also set the env variable OPROFILE_EVENTS_DIR to the path to where
> > > > > your oprofile is.
> > > > > 
> > > > > Colin Wernham
> > > > > 
> > > > > 
> > > > 
> > > > 
> > 
> 
> 
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 
> 

-- 
View this message in context: \
http://old.nabble.com/oprofile-0.9.7-can%27t-open-unit-mask-description-file-tp33194903p33206255.html
 Sent from the oprofile-list mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic