summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2025-01-26 16:49:59 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2025-01-26 16:49:59 +0300
commit04816c1507b46baccd17a4bc948440b3634d5d13 (patch)
treeac5d58a45cfd27cd6f7abab990a5a66ace19e484 /scripts/gdb/linux/utils.py
parent26c0a2d93af55d30a46d5f45d3e9c42cde730168 (diff)
downloadlinux-04816c1507b46baccd17a4bc948440b3634d5d13.tar.xz
LoongArch: Add debugfs entries to switch SFB/TSO state
We need to switch SFB (Store Fill Buffer) and TSO (Total Store Order) state at runtime to debug memory management and KVM virtualization, so add two debugfs entries "sfb_state" and "tso_state" under the directory /sys/kernel/debug/loongarch. Query SFB: cat /sys/kernel/debug/loongarch/sfb_state Enable SFB: echo 1 > /sys/kernel/debug/loongarch/sfb_state Disable SFB: echo 0 > /sys/kernel/debug/loongarch/sfb_state Query TSO: cat /sys/kernel/debug/loongarch/tso_state Switch TSO: echo [TSO] > /sys/kernel/debug/loongarch/tso_state Available [TSO] states: 0 (No Load No Store) 1 (All Load No Store) 3 (Same Load No Store) 4 (No Load All Store) 5 (All Load All Store) 7 (Same Load All Store) Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions