hotspot
hotspot copied to clipboard
Disassembly view: Are assembly lines expected to have near zero cycles?
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):

Are those costs "expected"?
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?
Will do, but that will take some time.