x86/calldepth: Add ret/call counting for debug
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Sep 2022 11:11:30 +0000 (13:11 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:41:16 +0000 (16:41 +0200)
commitf5c1bb2afe93396d41c5cbdcb909b08a75b8dde4
treeea7d2c0ffd9a4c54bb865b0b3fdccbfb21f4189a
parentbbaceb189a21d7245e8063701fe10985396028f9
x86/calldepth: Add ret/call counting for debug

Add a debuigfs mechanism to validate the accounting, e.g. vs. call/ret
balance and to gather statistics about the stuffing to call ratio.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111148.204285506@infradead.org
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/callthunks.c
arch/x86/lib/retpoline.S