| Summary: | [opxml] reduce opxml's reliance on internal oprofile data structures | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kent Sebastian <ksebasti> |
| Component: | LinuxTools | Assignee: | OProfile Inbox <linux.oprofile-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | anna.dushistova, ksebasti, linux.oprofile-inbox, overholt, peter.liu, sgehwolf, wcohen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Kent Sebastian
*** Bug 273871 has been marked as a duplicate of this bug. *** This thread discusses using xml rather than shared library: http://marc.info/?l=oprofile-list&m=122936314525103&w=2 Another big part of opxml is grabbing the line numbers from the binaries profiled by oprofile. Elliott just pointed me to the addr2line tool (http://sourceware.org/binutils/docs/binutils/addr2line.html), part of the binutils package which could probably replace this function. Along with using only xml output, this could be a big step to removing the reliance on this native component. Revision #25379 is a step in the right direction. This eliminates the need for opxml and instead uses tools/files such as opcontrol, opreport, ophelp, addr2line, /dev/oprofile, /usr/share/oprofile to generate the xml needed to be parsed. All that's left to do would be remove the opxml dependent projects (o.e.l.oprofile.core.${arch} and the opxml source code, and update the documentation page removing references to compiling opxml).
Hi All, is the last comment still valid? Here is what I see in Oprofile#getEvents with the latest sources from trunk(rev 27185): RunnableWithProgress opxml = OprofileCorePlugin.getDefault().getOpxmlProvider().sessions(sessionList); opxml.run(null); Guess that means it's still in use... (In reply to comment #5) > Hi All, Hi, > is the last comment still valid? Yes, opxml has been removed in trunk and the upcoming 0.7 release. > Here is what I see in Oprofile#getEvents with the latest sources from trunk(rev > 27185): > RunnableWithProgress opxml = > OprofileCorePlugin.getDefault().getOpxmlProvider().sessions(sessionList); > opxml.run(null); > > Guess that means it's still in use... Actually, it's not. For trunk you shouldn't need to compile opxml anymore (though, you still need the symlink to consolehelper or equivalent). Having said that, there's still some clean-up required as mentioned in Rolands comment. Documentation has been updated and opxml sources have been removed, which should complete opxml removal. Closing. |