Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 397708 - Perf needs a way to display assembly for certain events
Summary: Perf needs a way to display assembly for certain events
Status: CLOSED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: perf (show other bugs)
Version: 1.2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Roland Grunberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 13:50 EST by Jeff Johnston CLA
Modified: 2013-02-28 15:37 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnston CLA 2013-01-08 13:50:28 EST
At present, there is no good way to display performance output from perf for events that really pertain to assembly insns.  For example, cache misses, branch misprediction, etc... are all events that one needs to look at both the C/C++ source lines and the instructions that are generated by the compiler.

Perf currently shows the source line numbers that pertain to the data and when clicked will bring up the C/C++ Editor.  Unfortunately, the C/C++ editor doesn't display disassembly.  The only way to get this is to bring the debugger and then bring up the disassembly view.  This is very awkward.

What would be nice would be to have a view with mixed source and assembly and allow clicking on disassembly insns to point within that view.  That would allow a user to pin-point insns that were causing the problem and then be able to verify a different C sequence might result in avoiding a particular insn or combination.

Otherwise, the user would need to resort to the command line reporting tools to get the desired effect.
Comment 1 Roland Grunberg CLA 2013-02-28 15:37:25 EST
This has been reviewed and pushed https://git.eclipse.org/r/10242.