[profile] add memory info in npu_stat_app accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.092508 accepted/tizen/unified/20230713.014413 tizen_8.0_m2_release
authorYelin Jeong <yelini.jeong@samsung.com>
Mon, 10 Jul 2023 02:22:06 +0000 (11:22 +0900)
committer추지호/SoC Architecture팀(SR)/삼성전자 <jiho.chu@samsung.com>
Mon, 10 Jul 2023 06:21:16 +0000 (15:21 +0900)
This patch adds memory info in npu_stat_app structure.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
include/typedef.h

index aa04988..67447be 100644 (file)
@@ -299,6 +299,16 @@ typedef enum {
 } npu_app_status;
 
 /**
+ * struct npu_mem_info - Describes memory info
+ * @alloc: Size of allocated memory in the device
+ * @freed: Size of freed memory in the device
+ */
+typedef struct {
+       uint64_t alloc;
+       uint64_t freed;
+} npu_mem_info;
+
+/**
  * @brief Description of npu request (per inference) status
  */
 typedef enum {
@@ -318,8 +328,9 @@ typedef struct {
   uint32_t num_total_reqs;
   uint32_t num_active_reqs;
 
-  uint64_t total_alloc_mem;
-  uint64_t total_freed_mem;
+       npu_mem_info reserved;
+       npu_mem_info reserved_cont;
+       npu_mem_info system;
 } npu_stat_app;
 
 typedef struct {