util: kernel: Make getting further information from smaps files 94/276594/3
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 20 Jun 2022 11:16:27 +0000 (20:16 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 29 Jun 2022 04:21:36 +0000 (13:21 +0900)
commit9bd5bed8a45eb0a5654590a2c7be0b2c9d638d30
tree33ad6412604c0ba2edaeea84d0c28530295645c9
parent72cd9880315b9967d974e2859503561494ba447b
util: kernel: Make getting further information from smaps files

Now, kernel_get_thread_group_map_info() function can get gpu memory
information by retrieving section has the name of gpu device.

If the gpu memory information is not required, using smaps rather
harms performance, callee must specified whether gpu memory is
required, unless smaps_rollup is used if it is supported.

Change-Id: Ibe17aea337645ca6312df9472c252d962f158762
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/gpu-mem.h [new file with mode: 0644]
include/util/kernel.h
src/resource/resource-process-group.c
src/resource/resource-process.c
src/util/kernel.c