From be1be6939099f09f4585c6e2f1c36da9d1541fc0 Mon Sep 17 00:00:00 2001 From: lutong Date: Thu, 19 Jun 2025 15:52:27 +0800 Subject: [PATCH] bugfix:fixed display error caused by missing signal_exits field --- ...error-caused-by-missing-signal_exits.patch | 51 +++++++++++++++++++ vmtop.spec | 1 + 2 files changed, 52 insertions(+) create mode 100644 bugfix-fixed-display-error-caused-by-missing-signal_exits.patch diff --git a/bugfix-fixed-display-error-caused-by-missing-signal_exits.patch b/bugfix-fixed-display-error-caused-by-missing-signal_exits.patch new file mode 100644 index 0000000..90e018b --- /dev/null +++ b/bugfix-fixed-display-error-caused-by-missing-signal_exits.patch @@ -0,0 +1,51 @@ +From ce42a7e641ff5b4cafeb00524da86ecd115a5d55 Mon Sep 17 00:00:00 2001 +From: lutong +Date: Thu, 19 Jun 2025 15:09:32 +0800 +Subject: [PATCH 1/1] bugfix:fixed display error caused by missing signal_exits + field + +--- + src/type.h | 1 + + src/vcpu_stat.c | 1 + + src/vcpu_stat.h | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/src/type.h b/src/type.h +index 77dd696..727b54b 100644 +--- a/src/type.h ++++ b/src/type.h +@@ -108,6 +108,7 @@ struct domain { + DFX_VALUE(wfi_exit_stat), + DFX_VALUE(mmio_exit_user), + DFX_VALUE(mmio_exit_kernel), ++ DFX_VALUE(signal_exits), + DFX_VALUE(exits), + DFX_VALUE(fp_asimd_exit_stat), + DFX_VALUE(irq_exit_stat), +diff --git a/src/vcpu_stat.c b/src/vcpu_stat.c +index 1578ec4..c23480e 100644 +--- a/src/vcpu_stat.c ++++ b/src/vcpu_stat.c +@@ -28,6 +28,7 @@ struct file_item vcpu_stat_stab[] = { + {"%llu", GDF(wfi_exit_stat) }, + {"%llu", GDF(mmio_exit_user) }, + {"%llu", GDF(mmio_exit_kernel) }, ++ {"%llu", GDF(signal_exits) }, + {"%llu", GDF(exits) }, + {"%llu", GDF(fp_asimd_exit_stat) }, + {"%llu", GDF(irq_exit_stat) }, +diff --git a/src/vcpu_stat.h b/src/vcpu_stat.h +index 9b3f4c2..0697608 100644 +--- a/src/vcpu_stat.h ++++ b/src/vcpu_stat.h +@@ -21,6 +21,7 @@ GET_DELTA_FUN(wfe_exit_stat) + GET_DELTA_FUN(wfi_exit_stat) + GET_DELTA_FUN(mmio_exit_user) + GET_DELTA_FUN(mmio_exit_kernel) ++GET_DELTA_FUN(signal_exits) + GET_DELTA_FUN(exits) + GET_DELTA_FUN(fp_asimd_exit_stat) + GET_DELTA_FUN(irq_exit_stat) +-- +2.43.0 + diff --git a/vmtop.spec b/vmtop.spec index 2b1514f..c3b3994 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -40,6 +40,7 @@ Patch0029: proc-del-loop-sscanf-for-proc-pid-stat-file.patch Patch0030: utils-del-realpath-from-read_file.patch Patch0031: add-README.zh.md.-update-README.md.patch Patch0032: domain-change-method-of-getting-domain-id.patch +Patch0033: bugfix-fixed-display-error-caused-by-missing-signal_exits.patch Requires: libvirt, ncurses -- Gitee