summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-02-13 07:02:56 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2025-02-13 07:02:56 +0300
commit3011b29ec5a33ec16502e687c4264d57416a8b1f (patch)
tree8c23b3979eed68ec9057bda735ee4575417726fa /tools/perf/scripts/python/gecko.py
parentd8cc4fee3f8ad21f83326ec8a6d200e04c8f0a00 (diff)
downloadlinux-3011b29ec5a33ec16502e687c4264d57416a8b1f.tar.xz
LoongArch: KVM: Set host with kernel mode when switch to VM mode
PRMD register is only meaningful on the beginning stage of exception entry, and it is overwritten with nested irq or exception. When CPU runs in VM mode, interrupt need be enabled on host. And the mode for host had better be kernel mode rather than random or user mode. When VM is running, the running mode with top command comes from CRMD register, and running mode should be kernel mode since kernel function is executing with perf command. It needs be consistent with both top and perf command. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions