hotspot icon indicating copy to clipboard operation
hotspot copied to clipboard

Disassembly view: Are assembly lines expected to have near zero cycles?

Open GitMensch opened this issue 2 years ago • 2 comments
trafficstars

This issue is mostly a question. Running on Debian with kernel 5.15 and perf 5.15 on this machine.

In an example recording done with perf record --call-graph dwarf,8192 -z --sample-cpu ./dice I see only two lines in Disassembly with a cost attached, but the Source view shows much more (and strangely shows an unreasonable high inclusive cost on a return line):

example disassembly

Are those costs "expected"?

GitMensch avatar Nov 28 '22 09:11 GitMensch

please attach the source code to reproduce this, as-is it's unclear whether there should be more or not. do you just have to scroll on the RHS maybe? could also be due to inlining, i.e. most of the cost is in other places potentially?

milianw avatar Nov 28 '22 11:11 milianw

Will do, but that will take some time.

GitMensch avatar Nov 28 '22 11:11 GitMensch