aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-05-22 15:11:16 +0200
committerHelge Deller <deller@gmx.de>2023-05-24 14:23:07 +0200
commit15e64ef6520ea8702998db05b87fa5c3d3d40710 (patch)
treeb7f67430b55167a2aeae50fd95fd4d4c50e2d2f8 /scripts/gdb/linux/vmalloc.py
parentb6405f0829d7b1dd926ba3ca5f691cab835abfaa (diff)
parisc: Add lightweight spinlock checks
Add a lightweight spinlock check which uses only two instructions per spinlock call. It detects if a spinlock has been trashed by some memory corruption and then halts the kernel. It will not detect uninitialized spinlocks, for which CONFIG_DEBUG_SPINLOCK needs to be enabled. This lightweight spinlock check shouldn't influence runtime, so it's safe to enable it by default. The __ARCH_SPIN_LOCK_UNLOCKED_VAL constant has been choosen small enough to be able to be loaded by one LDI assembler statement. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions