summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Hyeongsik Min [Mon, 5 Jun 2017 01:32:10 +0000 (10:32 +0900)]
Fix coding style issues detected by rule checker
Change-Id: I0b2f6237f733dc300c7fb8c0f223fc08d8cacd07
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Mon, 5 Jun 2017 00:37:11 +0000 (09:37 +0900)]
Use debugfs node for accessing GEM information
drm_proc.c was removed in linux v3.11
Change-Id: I0ff9e92dea03c654ddc0c871f9bd4388ca5afc7b
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 18 Apr 2017 15:11:23 +0000 (00:11 +0900)]
Prevent buffer overflow with sscanf
By allocating string buffer, prevent buffer overlow issue with sscanf.
Change-Id: I5655f1b7049dc457b525dfbc2d351b67616b3f88
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 18 Apr 2017 14:54:05 +0000 (23:54 +0900)]
Replace deprecated readdir_r() with readdir()
Change-Id: I88e7060aecfd0cc982fd995f66a30f643b4fd292
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Tue, 28 Feb 2017 06:27:35 +0000 (15:27 +0900)]
Fix smaps parsing logic
Memps fails to parse smaps and gets crash when kernel shows anon name
information in /proc/smaps, because kernel adds additional line to
print the information.
Instead of using fixed smaps line count, this patch checks every line
to find VMA address line.
Change-Id: I5eaad65804f9cae67bfc62b6625b4b7da0eb27aa
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 16 Feb 2017 11:17:54 +0000 (20:17 +0900)]
Fix typos
Change-Id: Ibbfd8c2418959d35b890dd53a838d7994ea60333
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 16 Feb 2017 10:11:42 +0000 (19:11 +0900)]
Surpress Svace warning
And also change type of rss variable to unsigned long
Change-Id: I2de5440c7ac8eaefc5acafb84244194e435bad14
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Thu, 10 Nov 2016 07:47:29 +0000 (16:47 +0900)]
Fix fixed value of smaps line count
Vma line was missed, so we need to add 1 on each hardcoded value.
Change-Id: I735bc0aaa312e034655534a78b456a35c5ce9fdb
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Mon, 7 Nov 2016 12:33:41 +0000 (21:33 +0900)]
Fix build warnings
Change-Id: Icf8062b8f35b788a9d58ed2a7d207ef80a98bdaa
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Hyeongsik Min [Fri, 4 Nov 2016 01:42:18 +0000 (10:42 +0900)]
Fix smaps parsing on 64bit kernel
In previous patch, there is a issue that memps truncates pathname
when it includes blank space.
Change-Id: I72770bc84c4f11b114c2dcdaad69314bacb113e4
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Minyoung, Song [Mon, 31 Oct 2016 07:28:52 +0000 (16:28 +0900)]
Fix smaps parsing issue on 64bit kernel
Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
Change-Id: Ib1b439805dab0475fce70f1fa41906691fd5790a
Hyeongsik Min [Thu, 20 Oct 2016 13:20:11 +0000 (22:20 +0900)]
Refactoring smaps parsing logic
To be compatible with various kernel version
Change-Id: Ie494cebc8581612271acb6eb584437563be1017a
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
sungguk [Wed, 6 Jul 2016 10:33:01 +0000 (19:33 +0900)]
Modified kernel version check to support 4.x kernel smaps
Change-Id: I0878424145df4920ef09d4f4b659808ddc26c874
Signed-off-by: sungguk <sungguk.na@samsung.com>
Minyoung, Song [Wed, 30 Mar 2016 02:14:32 +0000 (11:14 +0900)]
Bug fix for guaranteeing NULL-termination of strncpy
Change-Id: I8ef500d9007f0b151fcc5558cc5faab84dbb9d7c
Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
Minyoung, Song [Tue, 22 Mar 2016 03:22:43 +0000 (12:22 +0900)]
Modified licensing header
Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
Change-Id: I0388c60d0e30aa2fb5a47101a52f268d5f56ccbd
Minyoung, Song [Fri, 11 Mar 2016 01:26:44 +0000 (10:26 +0900)]
Fixed gem_info parsing logic to find and sum from all rows of gem_info
Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
Change-Id: Ia4af00cfa8542352d6bc2f9a8b096ccb8e99ce82
Hyeongsik Min [Wed, 9 Mar 2016 08:29:26 +0000 (17:29 +0900)]
Fix svace issues
Change-Id: I9182ba8d42006a5388dacad9144d9cb2b6a0b2b1
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Minyoung, Song [Tue, 8 Mar 2016 08:17:17 +0000 (17:17 +0900)]
Merged latest memps code providing swap and cgroup usage
Change-Id: I44624fa22a9bc9f9703c55d919cf1fdf5b9cca42
Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
Hyeongsik Min [Tue, 29 Dec 2015 10:30:27 +0000 (19:30 +0900)]
Fix Svace issues
15723 - DIVISION_BY_ZERO
25769 - DIVISION_BY_ZERO
25770 - DIVISION_BY_ZERO
Change-Id: Icfed0528b6891af56f51c4c7864652ae01801ef8
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
Prajwal A N [Thu, 5 Mar 2015 07:24:37 +0000 (16:24 +0900)]
Initial code commit
* memps is a tool which provides information about the memory usage of processes (RSS, PSS, memory map of process, clean and dirty pages), tmps and graphics memory usage
* Added source files and CmakeLists file
* Added packaging and license files
Change-Id: I5dc2357ff229ad876ec17919a2e9df51488b89e7
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
KyungMi Lee [Thu, 5 Mar 2015 05:10:39 +0000 (21:10 -0800)]
Initial empty repository