Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356395 - Add ability to use the Linux "perf" tool from within Eclipse
Summary: Add ability to use the Linux "perf" tool from within Eclipse
Status: CLOSED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: perf (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Daniel Henrique Barboza CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 15:28 EDT by Corey Ashford CLA
Modified: 2012-01-11 14:18 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corey Ashford CLA 2011-08-31 15:28:59 EDT
Build Identifier: I20110613-1736

perf is a relatively new Linux command-line tool, which was developed by the Linux kernel community, and is still undergoing active development.

It would be nice to be able to use perf from within Eclipse in a similar way that the OProfile plug-in provides access to the OProfile toolset.

Reproducible: Always
Comment 1 Corey Ashford CLA 2011-08-31 17:17:44 EDT
Here's a pointer to a branch off of the linuxtools master branch containing alpha-quality perf-plugin source code.

pull from the "perf_plugin" branch of

https://github.com/cjashfor/LinuxToolsProjectPatches.git

This code was 100% written by an IBM employee, though he is no longer with IBM.  Part of the source code was derived from the existing OProfile plug-in which is already part of the Linux Tools Project.  The rest of it was written 100% by him.

We have the right to contribute it to Eclipse under the eclipse.org web site terms of use.
Comment 2 Roland Grunberg CLA 2011-09-06 15:23:57 EDT
CQ referencing this bug : https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5543
Comment 3 Corey Ashford CLA 2011-09-21 15:41:30 EDT
I can't see the IPzilla for this (since I'm not a committer).  Any news on this?
Comment 4 Andrew Overholt CLA 2011-09-27 18:45:01 EDT
The CQ has had PMC approval and is waiting on EMO (basically Mike Milinkovich) approval.  Once that's set, we can check it in with parallel IP and it can get fully reviewed in the meantime.
Comment 5 Roland Grunberg CLA 2011-10-07 14:56:36 EDT
The referenced CQ has concluded and the perf plugin has been approved.

The following minor recommendations have been made :
1.  PMSymbol.java contains the word 'hacky'...you may wish to adjust that word.
2.  feature.xml - EPL goes here!  Again, adjustment should be made.

Corey, I'm assuming you'll be the maintainer for this plugin once it gets in, but are there other people willing to submit patches/commit as well? We'd need to go through the nomination process for you to be able to commit directly.
Comment 6 Corey Ashford CLA 2011-10-07 18:58:18 EDT
(In reply to comment #5)
> Corey, I'm assuming you'll be the maintainer for this plugin once it gets in,
> but are there other people willing to submit patches/commit as well? We'd need
> to go through the nomination process for you to be able to commit directly.

I have not requested to be a maintainer of this source; I saw myself mostly as a conduit for getting this code from where it had been developed and then essentially abandoned (since the intern left IBM) to getting it upstream where Andrew and others had been waiting for it.

I'll be happy to contribute to it, though, as my time allows.
Comment 7 Daniel Henrique Barboza CLA 2011-11-01 08:36:11 EDT
Hi,

I'll make some contributions in this component to try to haste its inclusion inside linuxtools.

Any ideas/suggestions of what's need to be done?
Comment 8 Daniel Henrique Barboza CLA 2011-11-01 08:45:56 EDT
By the way the github link 

https://github.com/cjashfor/LinuxToolsProjectPatches.git

gives a 404.

Where can I find the source code?
Comment 9 Daniel Henrique Barboza CLA 2011-11-07 07:05:35 EST
I found the source code. After testing the plug-in, everything seems to work just fine. It works quite similar to the Oprofile plug-in, at least concerning output display.

I would like to know what needs to be done to contribute this tool to Linuxtools. I can assume the role of maintainer of this plug-in once it gets accepted.
Comment 10 Daniel Henrique Barboza CLA 2011-11-07 14:27:10 EST
The pull request for the Perf plug-in:

https://github.com/danielhb/linuxtools/commit/1835cbda8f0a51b18bf96ac1d05d05f93e46eb2b
Comment 11 Andrew Overholt CLA 2011-11-17 12:28:50 EST
Daniel,

If you'd like to be the maintainer and can commit to ensuring it builds and address bugs, that's great!  I guess at this point Roland could evaluate the contents of your pull request for suitability and you two can go back and forth on any changes.  Then when it's ready to go, Roland can import it and nominate you as a committer (assuming you've made a few changes and generally satisfied the requirements for being nominated (I think you've already done that, but ;) )

Roland, I'll let you take it from here.
Comment 12 Roland Grunberg CLA 2011-11-17 12:57:58 EST
The CQ referenced in Comment 2, has the zipped  sources attached so I'll probably be pulling from that (It was based on the sources from Corey's github repo). Any commits that have been made since, I can take a look at and bring into the eclipse hosted repo. I'll leave this bug open for now for tracking the progress of bringing Perf in.
Comment 13 Corey Ashford CLA 2011-11-17 13:43:11 EST
(In reply to comment #12)
> The CQ referenced in Comment 2, has the zipped  sources attached so I'll
> probably be pulling from that (It was based on the sources from Corey's github
> repo). Any commits that have been made since, I can take a look at and bring
> into the eclipse hosted repo. I'll leave this bug open for now for tracking the
> progress of bringing Perf in.

I haven't made any commits since posting the plug-in source to github.  So the zip file should be up-to-date.  My intention was to get it in the upstream tree and then start working with it there.
Comment 14 Roland Grunberg CLA 2011-11-18 11:47:07 EST
I've commited the contents of the perf.zip as submitted in the referenced CQ to master. (http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/commit/?id=9397a159f914e96a77a1bf73d3591283a4b875d9). It will not be part of the build yet. The first step would be to fix the issues that were raised in Comment #5. After that generating the necessary poms to have the plugin as part of the build (http://wiki.eclipse.org/Tycho/Reference_Card#Generating_POM_files).
Comment 15 Daniel Henrique Barboza CLA 2011-12-14 13:09:22 EST
Just bumping this bug by saying that IBM gave me legal clearance to be a maintainer, so I can take the role of maintainer of Perf as soon as Roland and Andrew thinks it's comfortable. This info was sent @ #eclipse-linux too.
Comment 16 Roland Grunberg CLA 2012-01-11 14:18:12 EST
Nomination has been proposed. Closing bug.