37 Commits

Author SHA1 Message Date
openeuler-ci-bot
b7fc8a9c29
!49 fix-specfile-error
From: @haomi0602 
Reviewed-by: @yezengruan 
Signed-off-by: @yezengruan
2022-07-22 07:15:19 +00:00
haomimi
29622d8dd1 Modify specfile-error in changelog 2022-07-22 14:52:38 +08:00
openeuler-ci-bot
8f9fca931b !37 arch: add x86 kvm exits items
From: @nocjj
Reviewed-by: @zhanghailiang_lucky
Signed-off-by: @zhanghailiang_lucky
2021-04-25 17:11:55 +08:00
nocjj
b8ade189a7 arch: add x86 kvm exits items
Support x86 arch for vmtop

Signed-off-by: nocjj <1250062498@qq.com>
2021-04-22 19:14:15 +08:00
openeuler-ci-bot
0822cc9e4c !34 Automatically generate code patches with openeuler
From: @zhendongchen
Reviewed-by: @yorifang,@yorifang,@yorifang
Signed-off-by: @yorifang,@yorifang,@yorifang
2021-03-11 21:41:27 +08:00
Euler Robot
8e5a410092 spec: Update release version with !23
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2021-03-02 21:57:30 +08:00
Euler Robot
68fb9c0c68 spec: Update patch and changelog with !23
version: unified with release version
input: add invalid opt check in input

Signed-off-by: nocjj <1250062498@qq.com>
2021-03-02 21:57:30 +08:00
Huawei Technologies Co., Ltd
b476c0362c input: add invalid opt check in input
Add invalid opt check while vmtop start with opts.

Signed-off-by: nocjj <1250062498@qq.com>
2021-03-02 21:57:30 +08:00
Huawei Technologies Co., Ltd
8aa91582e6 version: unified with release version
Currently, vmtop release version has been update to 1.1, but
version in configure.ac is still 1.0. So, update release
version to configure.ac.

Signed-off-by: nocjj <1250062498@qq.com>
2021-03-02 21:57:30 +08:00
openeuler-ci-bot
ad234883cc !28 bugfix: add check to avoid invalid ptr for strcmp
From: @nocjj
Reviewed-by: @zhendongchen
Signed-off-by: @zhendongchen
2021-01-27 11:27:35 +08:00
nocjj
5569dbffb7 bugfix: add check to avoid invalid ptr for strcmp
If len of d_name is less than ".pid", it may pass a invalid ptr
to strcmp, which will cause crash.
2021-01-27 10:43:19 +08:00
openeuler-ci-bot
1665486575 !18 sync patched from openeuler
From: @nocjj
Reviewed-by: @yorifang
Signed-off-by: @yorifang
2020-12-08 17:31:26 +08:00
nocjj
22c98b45d8 sync patches from openeuler
include:
- vcpu_stat: add remaining kvm exits items to display
- display: modify filter display to support more display fields items
- vcp_stat: add Max Scheduling Delay time items to display
- args: add -p option
- key: add page up/down key response
- 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
2020-12-07 15:35:40 +08:00
openeuler-ci-bot
0692f2599a !17 spec: change disable x86 from exclude to exclusive
From: @nocjj
Reviewed-by: @zhendongchen,@yorifang
Signed-off-by: @yorifang,@yorifang
2020-11-26 21:10:52 +08:00
nocjj
65e68ecf3f spec: change disable x86 from exclude to exclusive
change exclude to exclusive

Signed-off-by: Jiajun Chen <1250062498@qq.com>
2020-11-26 17:36:23 +08:00
openeuler-ci-bot
5476f986ff !16 spec:disable x86 build
From: @nocjj
Reviewed-by: @zhendongchen,@yorifang
Signed-off-by: @yorifang
2020-11-26 16:36:05 +08:00
nocjj
3ccb4c97f3 spec: disable x86 build in SP1 version
exclude x86 arch since vmtop is not supported in x86 yet.

Signed-off-by: Jiajun Chen <1250062498@qq.com>
2020-11-26 09:27:43 +08:00
openeuler-ci-bot
5c4be98493 !13 spec: modify source url
From: @nocjj
Reviewed-by: @yorifang
Signed-off-by: @yorifang
2020-10-12 16:50:02 +08:00
Fei Xu
91f976875d spec: modify source url
Change source url to openeuler repo, and replace tar with
openeuler/vmtop tag v1.1(which is same as v1.0.1):
wget -O vmtop-1.1.tar.gz https://gitee.com/openeuler/vmtop/repository/
archive/v1.1.tar.gz#/vmtop-1.1.tar.gz
2020-10-10 15:51:15 +08:00
openeuler-ci-bot
a8ce39272f !12 Automatically generate code patches with openeuler
From: @zhendongchen
Reviewed-by: @yorifang
Signed-off-by: @yorifang,@yorifang,@yorifang
2020-10-10 14:17:07 +08:00
Euler Robot
0654c4697a spec: Update release version with !7
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-09-28 11:57:52 +08:00
Euler Robot
b640dfbebc spec: Update patch and changelog with !7
vcpustat: modify vcpu info acquirement from debugfs
display: expand %CPU display
display: add limit to usage display
vmtop: simplify print_domain_field
2020-09-28 11:57:52 +08:00
nocjj
6535f799a3 vmtop: simplify print_domain_field
Use array to simplify print_domain_field.
2020-09-28 11:57:52 +08:00
nocjj
c37096d834 display: add limit to usage display
Because of time accuracy, the usage sometime may be more than vcpu nums.
This is a matter of precision, so add limit to these usage.
2020-09-28 11:57:52 +08:00
nocjj
be522b3b23 display: expand %CPU display
Now, %CPU's align is 6, and is not enough to display VM
that has vcpus more than 10. So expand align to 8.
2020-09-28 11:57:52 +08:00
nocjj
d8f7c63405 vcpustat: modify vcpu info acquirement from debugfs
Previous judgement to determine whether the vcpustat info matches the process is:
strstr(buf, pid) == buf + 1
But there is an exception that the kvm exit times may contain process pid string.
And then, we will calculate the delta between two defferent process.
So, modify this judgement codition.
2020-09-28 11:57:52 +08:00
openeuler-ci-bot
8ee1001f41 !10 Automatically generate code patches with openeuler
From: @zhendongchen
Reviewed-by: @yorifang
Signed-off-by: @yorifang
2020-09-22 20:49:30 +08:00
Euler Robot
57654a9e1f spec: Update release version with !6
increase release verison by one

Signed-off-by: Euler Robot <euler.robot@huawei.com>
2020-09-22 20:18:55 +08:00
Euler Robot
eef4a8d577 spec: Update patch and changelog with !6
vmtop: add -h and -v

Signed-off-by: Ruyi Chen <chenruyi2@huawei.com>
2020-09-22 20:18:48 +08:00
Ruyi Chen
f85a956b49 vmtop: add -h and -v
Signed-off-by: Ruyi Chen <chenruyi2@huawei.com>
2020-09-22 20:17:20 +08:00
openeuler-ci-bot
8d632dd07c !5 spec: Update release and changelog
From: @nocjj
Reviewed-by: @zhendongchen,@yorifang
Signed-off-by: @yorifang,@yorifang
2020-09-21 14:52:59 +08:00
nocjj
84f4b6e4b6 spec: Update release and changelog
bugfix: check unsigned number flip before getting delta
bugfix: exit vmtop when arguments are invalid
bugfix: fix %ST, %GUE, %HYP formula
display: expand row size in TEXT mode
2020-09-21 11:55:01 +08:00
openeuler-ci-bot
dc1bd70046 !2 vmtop: Show kvm exit items and add document to project
Merge pull request !2 from nocjj/master
2020-09-09 20:48:02 +08:00
nocjj
c30b9f044d vmtop: Show kvm exit items and add document to project
Update source code tar from openeuler/vmtop tag v1.0.1, and update
release number.
changes:
1.Get kvm exit data from vcpu_stat, and add related display items to vmtop.
  Related kernel patch:
   bbb5023b97
   5ae004462e
   167fbfb3d2
2.Add some shortcut key, such as 'H' to open thread mode.
3.Add README and related document to project.
2020-09-09 20:16:49 +08:00
openeuler-ci-bot
837bb489ae !1 vmtop: Introduce spec file
Merge pull request !1 from nocjj/master
2020-08-27 19:38:51 +08:00
nocjj
1698025b09 vmtop: package init
Add spec file and source code tar for project to support rpmbuild.
And source code tar comes from openeuler/vmtop's tag v1.0.
2020-08-26 10:00:58 +08:00
openeuler-ci-bot
cac7e3d72f Initial commit 2020-08-14 23:42:28 +08:00