Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 397708

Summary: Perf needs a way to display assembly for certain events
Product: [Tools] Linux Tools Reporter: Jeff Johnston <jjohnstn>
Component: perfAssignee: Roland Grunberg <rgrunber>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.2.0   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard:

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.