From 672c7d4127fe859fe98856562faaf360870d1cc7 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Thu, 29 Oct 2020 14:18:42 +0800 Subject: [PATCH 01/14] args: add -p option Add -p option to specify a virtual machine that vmtop monitors. Usage: vmtop -p vmid vmid means domain's id. Signed-off-by: Jiajun Chen <1250062498@qq.com> --- args-add-p-option.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/args-add-p-option.patch b/args-add-p-option.patch index 827ffb6..bd557bb 100644 --- a/args-add-p-option.patch +++ b/args-add-p-option.patch @@ -1,7 +1,7 @@ From c38bd9e30368d521554dc56cea094d6ff2312636 Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Thu, 29 Oct 2020 14:18:42 +0800 -Subject: [PATCH 2/8] args: add -p option +Subject: [PATCH] args: add -p option Add -p option to specify a virtual machine that vmtop monitors. Usage: -- Gitee From 445c8a63507a76856f63b28983f75cfb1ff13dd9 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Thu, 29 Oct 2020 15:35:37 +0800 Subject: [PATCH 02/14] key: add page up/down key response Add page up/down key response, move pagesize - 6 for beauty. Signed-off-by: Jiajun Chen <1250062498@qq.com> --- key-add-page-up-down-key-response.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key-add-page-up-down-key-response.patch b/key-add-page-up-down-key-response.patch index 147b51b..bfc6804 100644 --- a/key-add-page-up-down-key-response.patch +++ b/key-add-page-up-down-key-response.patch @@ -1,7 +1,7 @@ From 10be69aa54764c8314501fd1130d9bf8c9f859f2 Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Thu, 29 Oct 2020 15:35:37 +0800 -Subject: [PATCH 3/8] key: add page up/down key response +Subject: [PATCH] key: add page up/down key response Add page up/down key response, move pagesize - 6 for beauty. -- Gitee From 32f5538722833b494e9b524cb1d154a93a79c45b Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:23 +0800 Subject: [PATCH 03/14] spec: Update patch and changelog with !11 args: add -p option key: add page up/down key response Signed-off-by: Jiajun Chen <1250062498@qq.com> --- vmtop.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vmtop.spec b/vmtop.spec index 4b03652..5f35b19 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -27,6 +27,8 @@ Patch0016: proc-del-prc-pid-comm-read.patch Patch0017: display-del-screen-clear-after-key-response.patch Patch0018: arch-add-x86-kvm-exits-items.patch Patch0019: codestyle-del-unused-var.patch +Patch0020: args-add-p-option.patch +Patch0021: key-add-page-up-down-key-response.patch Requires: libvirt, ncurses @@ -67,6 +69,10 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Thu Oct 29 2020 Huawei Technologies Co., Ltd +- args: add -p option +- key: add page up/down key response + * Thu 14 Jan 2021 Jiajun Chen <1250062498@qq.com> -1.1-2 - vcp_stat: add Max Scheduling Delay time items to display - args: add -p option -- Gitee From 29d0e528fff26c3b6fec29553e0d5a1493d4cce0 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Thu, 29 Oct 2020 14:08:47 +0800 Subject: [PATCH 04/14] vcp_stat: add Max Scheduling Delay time items to display Add WAITmax item to display, which represent "Max Scheduling Delay". Set default width to 9 spaces, and default hidden. And WAITmax unit is ms. Signed-off-by: Jiajun Chen <1250062498@qq.com> --- vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch b/vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch index 2305af6..e89d223 100644 --- a/vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch +++ b/vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch @@ -1,7 +1,7 @@ From d7093b894ee00a11e2fdf21c859215fcf535b2de Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Thu, 29 Oct 2020 14:08:47 +0800 -Subject: [PATCH 1/8] vcp_stat: add Max Scheduling Delay time items to display +Subject: [PATCH] vcp_stat: add Max Scheduling Delay time items to display Add WAITmax item to display, which represent "Max Scheduling Delay". Set default width to 9 spaces, and default hidden. -- Gitee From 8418ca5e9522105457ee497a6ba2c77546019c91 Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:23 +0800 Subject: [PATCH 05/14] spec: Update patch and changelog with !10 vcp_stat: add Max Scheduling Delay time items to display Signed-off-by: Jiajun Chen <1250062498@qq.com> --- vmtop.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmtop.spec b/vmtop.spec index 5f35b19..d0452f2 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -29,6 +29,7 @@ Patch0018: arch-add-x86-kvm-exits-items.patch Patch0019: codestyle-del-unused-var.patch Patch0020: args-add-p-option.patch Patch0021: key-add-page-up-down-key-response.patch +Patch0022: vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch Requires: libvirt, ncurses @@ -69,6 +70,9 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Thu Oct 29 2020 Huawei Technologies Co., Ltd +- vcp_stat: add Max Scheduling Delay time items to display + * Thu Oct 29 2020 Huawei Technologies Co., Ltd - args: add -p option - key: add page up/down key response -- Gitee From 6474016a42470e202b339eb69942861d773ae8db Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Mon, 2 Nov 2020 11:36:19 +0800 Subject: [PATCH 06/14] vcpu_stat: get vcpu stat list once per display instead of per vcpu Currently, every time you get vcpu data for vcpu thread, you have to open vcpu_stat file, which is very time-consuming. If the number of vcpus is large, the display delay will be obvious. So, save vcpu stat list before every display, and get vcpu stat from list in data refreshing. And then. the vcpu_stat file will only be opened once in every display. Signed-off-by: nocjj <1250062498@qq.com> --- vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch b/vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch index 3501fe2..28d335e 100644 --- a/vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch +++ b/vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch @@ -1,8 +1,8 @@ From c5d5370affb56c3f02c6b6dbdabc28138be9522a Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Mon, 2 Nov 2020 11:36:19 +0800 -Subject: [PATCH 4/8] vcpu_stat: get vcpu stat list once per display instead of - per vcpu +Subject: [PATCH] vcpu_stat: get vcpu stat list once per display instead of per + vcpu Currently, every time you get vcpu data for vcpu thread, you have to open vcpu_stat file, which is very time-consuming. If the number of vcpus is large, the display delay will be obvious. -- Gitee From f19d0f81ec151ffe583ad6ce80de63895055bc93 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Mon, 2 Nov 2020 13:44:54 +0800 Subject: [PATCH 07/14] proc: del /prc/pid/comm read The content obtained from comm file can also be obtianed from the stat file, So there is no need to read comm file. Signed-off-by: nocjj <1250062498@qq.com> --- proc-del-prc-pid-comm-read.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc-del-prc-pid-comm-read.patch b/proc-del-prc-pid-comm-read.patch index bed0fe3..502a6ce 100644 --- a/proc-del-prc-pid-comm-read.patch +++ b/proc-del-prc-pid-comm-read.patch @@ -1,7 +1,7 @@ From 11d95f0d941825ba183115cd24ab2ea2242ed805 Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Mon, 2 Nov 2020 13:44:54 +0800 -Subject: [PATCH 5/8] proc: del /prc/pid/comm read +Subject: [PATCH] proc: del /prc/pid/comm read The content obtained from comm file can also be obtianed from the stat file, So there is no need to read comm file. -- Gitee From 5fb584ef5d6b6b6346328f7a3d899622118740f7 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Mon, 2 Nov 2020 13:47:22 +0800 Subject: [PATCH 08/14] display: del screen clear after key response Clear will cause display to refresh off, so del clear afer key response. Signed-off-by: nocjj <1250062498@qq.com> --- display-del-screen-clear-after-key-response.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display-del-screen-clear-after-key-response.patch b/display-del-screen-clear-after-key-response.patch index 8022eb7..3489f14 100644 --- a/display-del-screen-clear-after-key-response.patch +++ b/display-del-screen-clear-after-key-response.patch @@ -1,7 +1,7 @@ From 101713bbe26fc60721de1259df15232ccd6aab50 Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Mon, 2 Nov 2020 13:47:22 +0800 -Subject: [PATCH 6/8] display: del screen clear after key response +Subject: [PATCH] display: del screen clear after key response Clear will cause display to refresh off, so del clear afer key response. -- Gitee From 4744dc021fe0f2a25a8330f45ae66f00c514e88b Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:24 +0800 Subject: [PATCH 09/14] spec: Update patch and changelog with !12 vcpu_stat: get vcpu stat list once per display instead of per vcpu proc: del /prc/pid/comm read display: del screen clear after key response Signed-off-by: nocjj <1250062498@qq.com> --- vmtop.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vmtop.spec b/vmtop.spec index d0452f2..d4dcb27 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -30,6 +30,9 @@ Patch0019: codestyle-del-unused-var.patch Patch0020: args-add-p-option.patch Patch0021: key-add-page-up-down-key-response.patch Patch0022: vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch +Patch0023: vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch +Patch0024: proc-del-prc-pid-comm-read.patch +Patch0025: display-del-screen-clear-after-key-response.patch Requires: libvirt, ncurses @@ -70,6 +73,11 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Mon Nov 2 2020 Huawei Technologies Co., Ltd +- vcpu_stat: get vcpu stat list once per display instead of per vcpu +- proc: del /prc/pid/comm read +- display: del screen clear after key response + * Thu Oct 29 2020 Huawei Technologies Co., Ltd - vcp_stat: add Max Scheduling Delay time items to display -- Gitee From fac9819a5039ed17317c2fcdb75c040bb818a218 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Mon, 7 Dec 2020 15:14:02 +0800 Subject: [PATCH 10/14] codestyle: del unused var del unused var in vcpu_stat.c Signed-off-by: nocjj <1250062498@qq.com> --- codestyle-del-unused-var.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codestyle-del-unused-var.patch b/codestyle-del-unused-var.patch index 1bc157c..bc5ef72 100644 --- a/codestyle-del-unused-var.patch +++ b/codestyle-del-unused-var.patch @@ -1,7 +1,7 @@ From 6d13d03943965d0f7c923de40d243c35105d75de Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Mon, 7 Dec 2020 15:14:02 +0800 -Subject: [PATCH 8/8] codestyle: del unused var +Subject: [PATCH] codestyle: del unused var del unused var in vcpu_stat.c -- Gitee From e71e32665bec890e2327560b3efd89d59989e5d7 Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:24 +0800 Subject: [PATCH 11/14] spec: Update patch and changelog with !14 codestyle: del unused var Signed-off-by: nocjj <1250062498@qq.com> --- vmtop.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmtop.spec b/vmtop.spec index d4dcb27..7fbf0ab 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -33,6 +33,7 @@ Patch0022: vcp_stat-add-Max-Scheduling-Delay-time-items-to-disp.patch Patch0023: vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch Patch0024: proc-del-prc-pid-comm-read.patch Patch0025: display-del-screen-clear-after-key-response.patch +Patch0026: codestyle-del-unused-var.patch Requires: libvirt, ncurses @@ -73,6 +74,9 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Mon Dec 7 2020 Huawei Technologies Co., Ltd +- codestyle: del unused var + * Mon Nov 2 2020 Huawei Technologies Co., Ltd - vcpu_stat: get vcpu stat list once per display instead of per vcpu - proc: del /prc/pid/comm read -- Gitee From 73be5eb74193a4010f164841f2fe781c7468a0a6 Mon Sep 17 00:00:00 2001 From: "Huawei Technologies Co., Ltd" Date: Mon, 2 Nov 2020 19:07:29 +0800 Subject: [PATCH 12/14] arch: add x86 kvm exits items add x86 support for vmtop Signed-off-by: nocjj <1250062498@qq.com> --- arch-add-x86-kvm-exits-items.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-add-x86-kvm-exits-items.patch b/arch-add-x86-kvm-exits-items.patch index 49d70e0..6f75bff 100644 --- a/arch-add-x86-kvm-exits-items.patch +++ b/arch-add-x86-kvm-exits-items.patch @@ -1,7 +1,7 @@ From 697ed50e404408d34e19afc493e5fe8270cc3433 Mon Sep 17 00:00:00 2001 From: nocjj <1250062498@qq.com> Date: Mon, 2 Nov 2020 19:07:29 +0800 -Subject: [PATCH 7/8] arch: add x86 kvm exits items +Subject: [PATCH] arch: add x86 kvm exits items add x86 support for vmtop -- Gitee From 0e741a453c67260426f4eab2c55db78725046641 Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:24 +0800 Subject: [PATCH 13/14] spec: Update patch and changelog with !13 arch: add x86 kvm exits items Signed-off-by: nocjj <1250062498@qq.com> --- vmtop.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmtop.spec b/vmtop.spec index 7fbf0ab..e5fad27 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -34,6 +34,7 @@ Patch0023: vcpu_stat-get-vcpu-stat-list-once-per-display-instea.patch Patch0024: proc-del-prc-pid-comm-read.patch Patch0025: display-del-screen-clear-after-key-response.patch Patch0026: codestyle-del-unused-var.patch +Patch0027: arch-add-x86-kvm-exits-items.patch Requires: libvirt, ncurses @@ -74,6 +75,9 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Mon Nov 2 2020 Huawei Technologies Co., Ltd +- arch: add x86 kvm exits items + * Mon Dec 7 2020 Huawei Technologies Co., Ltd - codestyle: del unused var -- Gitee From 505bbb195e131e149a19a6a0046ecd7e2bcad8a6 Mon Sep 17 00:00:00 2001 From: Euler Robot Date: Fri, 15 Jan 2021 21:57:24 +0800 Subject: [PATCH 14/14] spec: Update release version with !11 !10 !12 !14 !13 increase release verison by one Signed-off-by: Euler Robot --- vmtop.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmtop.spec b/vmtop.spec index e5fad27..93eeb87 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -1,6 +1,6 @@ Name: vmtop Version: 1.1 -Release: 2 +Release: 3 Summary: A tool for collecting and analyzing data of virtual machine License: Mulan PSL V2 Group: Application/System -- Gitee