On 01/31/2014 01:54 PM, Jeff Johnston wrote: > Rodrigo, I tried it out locally and it works just fine, thanks. I verified > that > the count shows up if I run opreport directly in the workspace. > > Maynard, you might as well just wait until tomorrow or Monday until > our nightly build occurs. I'll add the fix to our Kepler branch so the > nightly build will pick it up and put it the result in: > http://www.eclipse.org/downloads/linuxtools/updates-nightly-kepler > which you can add as an update site (Help->Install New Software... -> Add > button). When I tried to add this update site this morning, I got the following message: Could not find http://www.eclipse.org/downloads/linuxtools/updates-nightly-kepler
I think "http://download.eclipse.org/linuxtools/updates-nightly" is the correct update site, so I tried that, and the update did work. But after Eclipse restarted, I no longer have a "Profiling Tools". I pinged my colleague, Rodrigo, on the side, and he thinks it's probably because this oprofile plug-in update has Java7 dependencies, and I'm on Java6. He updated his oprofile plug-in and said the 'count' field now works properly, so that's good enough for me. Thanks. -Maynard > From there, choose to install/update the OProfile plug-in and you should have > the fix. > > -- Jeff J. > > > ----- Original Message ----- >> From: "Rodrigo Fraxino Araujo" <rfara...@linux.vnet.ibm.com> >> To: linuxtools-dev@eclipse.org >> Sent: Friday, January 31, 2014 1:52:41 PM >> Subject: Re: [linuxtools-dev] oprofile plug-in ignores user-specified 'count' >> >> Hey Maynard, >> >> First, it would be good that you have Egit plug-in on your Eclipse, so >> install it from http://www.eclipse.org/egit/download/ >> (help->install new software, add the url from inside this webpage i >> pasted and get the packages) >> >> Then clone linuxtools master repository: >> http://wiki.eclipse.org/Linux_Tools_Project/Getting_Involved#Getting_Code >> >> After it, import (file -> import -> git -> projects from git (well >> you can add the linuxtools git url there or your local tree if you >> already cloned it) >> >> Then select the packages from Oprofile plugin (they will be inserted in >> your workspace) >> >> After they are imported, right click the project and go to run as -> >> eclipse application (or hit ctrl+f11). >> >> Please test it in the new eclipse instance that went open. >> >> Im not sure if this is the best way to do it :) >> >> Kind regards, >> Rodrigo. >> >> >> On Fri, 31 Jan 2014 12:29:55 -0600 >> Maynard Johnson <mayna...@us.ibm.com> wrote: >> >>> On 01/31/2014 12:14 PM, Rodrigo Fraxino Araujo wrote: >>>> Hi Maynard, >>>> >>>> I just reviewed a fix for that bug on >>>> https://git.eclipse.org/r/#/c/21405/ . If you could confirm it fixes >>>> the bug Ill close the bugzilla. Thanks. >>> Thanks Rodrigo. Since I'm not an Eclipse developer, I don't know how >>> I can install this fix on my system. Can you give me explicit >>> instructions? Thanks! >>> >>> -Maynard >>>> >>>> Kind regards, >>>> Rodrigo. >>>> >>>> On Fri, 31 Jan 2014 08:01:49 -0600 >>>> Maynard Johnson <mayna...@us.ibm.com> wrote: >>>> >>>>> On 01/30/2014 04:03 PM, Jeff Johnston wrote: >>>>>> Confirmed. Please open a bug. The code is getting the minCount >>>>>> when creating the event parameter for operf so that is why you are >>>>>> seeing 6000 each time. >>>>> >>>>> I opened a bug ... >>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=427121. >>>>> >>>>> -Maynard >>>>>> >>>>>> -- Jeff J. >>>>>> >>>>>> ----- Original Message ----- >>>>>>> From: "Maynard Johnson" <mayna...@us.ibm.com> >>>>>>> To: "Linux Tools developer discussions" >>>>>>> <linuxtools-dev@eclipse.org> Sent: Thursday, January 30, 2014 >>>>>>> 3:26:42 PM Subject: [linuxtools-dev] oprofile plug-in ignores >>>>>>> user-specified 'count' >>>>>>> >>>>>>> Hi, all, >>>>>>> I'm using the oprofile plug-in on Kepler. The version of the >>>>>>> OProfile Core Plug-in is 2.0.0.201309171939. The plug-in appears >>>>>>> to ignore a user-specified count value. Here are the steps to >>>>>>> reproduce: >>>>>>> >>>>>>> 1. Create a simple C project to be profiled. >>>>>>> 2. Right click on the project, select "Profiling Tools | >>>>>>> Profiling Tools Configurations". >>>>>>> 3. Create a new "Profile with OProfile" configuration. >>>>>>> 4. Under the "Global" tab, select 'operf'. >>>>>>> 5. Under the "Events" tab, uncheck the "Use default event" box, >>>>>>> check the "Enabled" box in the Ctr 0 tab, select an event (like >>>>>>> CPU_CLK_UNHALTED for Intel systems), and then edit the "Count" >>>>>>> field, specifying something like "500000". >>>>>>> 6. Click the "Apply" and "Profile" buttons. >>>>>>> >>>>>>> During the profiling session, I see a bunch of messages like >>>>>>> below spewing to every open terminal window: >>>>>>> >>>>>>> kernel:Dazed and confused, but trying to continue >>>>>>> >>>>>>> This may or may not happen when trying to reproduce the problem, >>>>>>> depending on kernel version and processor model. My system is >>>>>>> RHEL 6.4/Core 2 Duo. >>>>>>> >>>>>>> I then went into my Eclipse workspace project directory and found >>>>>>> the "oprofile_data" directory where the profile data was stored. >>>>>>> Running 'opreport' from that directory showed the profile data >>>>>>> below [1]. Note the 'count 6000' at the end of the line where >>>>>>> the event name and description are given. This value of 6000 is >>>>>>> the minimum value for the CPU_CLK_UNHALTED event. So the >>>>>>> oprofile plug-in ignored the '500000' value that I specified for >>>>>>> the 'count' value. I tried other events and got the same result >>>>>>> -- i.e., the minimum value was always used for profiling, no >>>>>>> matter what I specified in the 'count' field. BTW, you can see >>>>>>> the minimum value for each event in the output of ophelp. >>>>>>> >>>>>>> Is this a bug or am I misunderstanding something about how to >>>>>>> specify the profile configuration? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> -Maynard >>>>>>> >>>>>>> ---------------------------------------------- >>>>>>> [1] >>>>>>> [maynard@oc3431575272 memcpyt]$ opreport >>>>>>> Using /home/maynard/workspace/memcpyt/oprofile_data/samples/ for >>>>>>> samples directory. >>>>>>> >>>>>>> WARNING! Some of the events were throttled. Throttling occurs >>>>>>> when the initial sample rate is too high, causing an excessive >>>>>>> number of interrupts. Decrease the sampling frequency. Check >>>>>>> the >>>>>>> directory >>>>>>> /home/maynard/workspace/memcpyt/oprofile_data/samples/current/stats/throttled >>>>>>> for the throttled event names. >>>>>>> >>>>>>> CPU: Core 2, speed 2534 MHz (estimated) >>>>>>> Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) >>>>>>> with a unit mask of 0x00 (Unhalted core cycles) count 6000 >>>>>>> CPU_CLK_UNHALT...| >>>>>>> samples| %| >>>>>>> ------------------ >>>>>>> 2279376 100.000 memcpyt >>>>>>> CPU_CLK_UNHALT...| >>>>>>> samples| %| >>>>>>> ------------------ >>>>>>> 2089905 91.6876 libc-2.12.so >>>>>>> 147437 6.4683 memcpyt >>>>>>> 41995 1.8424 no-vmlinux >>>>>>> 39 0.0017 ld-2.12.so >>>>>>> >>>>>>> _______________________________________________ _______________________________________________ linuxtools-dev mailing list linuxtools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/linuxtools-dev