resource: process: Fix to use proper attribute name 66/279766/3
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 17 Aug 2022 08:45:58 +0000 (17:45 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 18 Aug 2022 02:27:56 +0000 (11:27 +0900)
Change-Id: Icef625156eb2036672f2798f4f0d65d943e3ab6f
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/resource/resource-process.c

index 192d91e..e77d765 100644 (file)
@@ -405,7 +405,7 @@ static int process_setup_tgid(struct resource *res,
        if (!ctx)
                return -EINVAL;
 
-       include_gpu_mem = is_resource_attr_interested(res, PROCESS_GROUP_ATTR_MEM_GPU);
+       include_gpu_mem = is_resource_attr_interested(res, PROCESS_ATTR_MEM_GPU);
        total_memory = ctx->total_memory;
        memset(ctx, 0, sizeof(*ctx));
 
@@ -464,7 +464,7 @@ static int process_prepare_update(struct resource *res)
        if (!ctx)
                return -EINVAL;
 
-       include_gpu_mem = is_resource_attr_interested(res, PROCESS_GROUP_ATTR_MEM_GPU);
+       include_gpu_mem = is_resource_attr_interested(res, PROCESS_ATTR_MEM_GPU);
 
        if (taskstat_support) {
                memcpy(&ctx->prev, &ctx->curr, sizeof(struct taskstats));