'Can I collect jump counts with perf?

Can I collect the count of jumps like in the image below? This is from callgrind, but I'd prefer using perf if it is also possible with it.

I couldn't get such information with perf record -> perf report. I tried perf record -b which seems to require sudo, but now report splits the function into many entries, and I don't quite understand what it's doing.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source